Text Generation
Safetensors
GGUF
English
embeddings-are-overpriced
frozen-embedding
binary-codes
ternary
bitnet
gemma-3
small-language-model
cpu-inference
research
Instructions to use QLNI/embeddings-are-overpriced with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use QLNI/embeddings-are-overpriced with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf QLNI/embeddings-are-overpriced:Q4_K_M # Run inference directly in the terminal: llama cli -hf QLNI/embeddings-are-overpriced:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf QLNI/embeddings-are-overpriced:Q4_K_M # Run inference directly in the terminal: llama cli -hf QLNI/embeddings-are-overpriced:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf QLNI/embeddings-are-overpriced:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QLNI/embeddings-are-overpriced:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf QLNI/embeddings-are-overpriced:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QLNI/embeddings-are-overpriced:Q4_K_M
Use Docker
docker model run hf.co/QLNI/embeddings-are-overpriced:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use QLNI/embeddings-are-overpriced with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QLNI/embeddings-are-overpriced" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "QLNI/embeddings-are-overpriced", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/QLNI/embeddings-are-overpriced:Q4_K_M
- Ollama
How to use QLNI/embeddings-are-overpriced with Ollama:
ollama run hf.co/QLNI/embeddings-are-overpriced:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use QLNI/embeddings-are-overpriced with Docker Model Runner:
docker model run hf.co/QLNI/embeddings-are-overpriced:Q4_K_M
- Lemonade
How to use QLNI/embeddings-are-overpriced with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QLNI/embeddings-are-overpriced:Q4_K_M
Run and chat with the model
lemonade run user.embeddings-are-overpriced-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Download code/export_arm_a.py from QLNI/embeddings-are-overpriced: direct link, hf CLI and curl.
- Browser
- Download file 1.52 kB
-
https://huggingface.co/QLNI/embeddings-are-overpriced/resolve/main/code/export_arm_a.py
- Command line
-
hf download hf://QLNI/embeddings-are-overpriced/code/export_arm_a.py
-
curl -L -o export_arm_a.py https://huggingface.co/QLNI/embeddings-are-overpriced/resolve/main/code/export_arm_a.py
1.52 kB
| """Export arm A (learned table, Gemma 3 270M shape) to Hugging Face Gemma3ForCausalLM format, then to GGUF for llama.cpp. | |
| Checked: HF export reproduces our training model's logits exactly (max difference 0.0). | |
| python export_arm_a.py finals/A/step_07820.pt export/armA_hf | |
| python bench/llama.cpp/convert_hf_to_gguf.py export/armA_hf --outfile export/armA-f16.gguf --outtype f16 | |
| llama-quantize export/armA-f16.gguf export/armA-Q8_0.gguf Q8_0 (and Q4_K_M) | |
| """ | |
| import sys, shutil, numpy as np, torch, train | |
| from transformers import AutoConfig, AutoTokenizer, Gemma3ForCausalLM | |
| from huggingface_hub import hf_hub_download | |
| ckpt, out = sys.argv[1], sys.argv[2] | |
| counts = np.load("data/unigram_counts.npy") | |
| m = train.Model("A", counts).eval() | |
| m.load_state_dict(torch.load(ckpt, map_location="cpu", weights_only=False)["model"]) | |
| hf = Gemma3ForCausalLM(AutoConfig.from_pretrained("google/gemma-3-270m")).eval() | |
| hf.model.load_state_dict({k[len("body."):]: v for k, v in m.state_dict().items() if k.startswith("body.")}, strict=True) | |
| hf.tie_weights() | |
| ids = torch.tensor([[2, 651, 6037, 576, 1385, 603]]) | |
| with torch.no_grad(): | |
| d = float((m.logits(m.hidden(ids)) - hf(input_ids=ids).logits).abs().max()) | |
| assert d < 1e-3, d | |
| hf.save_pretrained(out, safe_serialization=True) | |
| AutoTokenizer.from_pretrained("google/gemma-3-270m").save_pretrained(out) | |
| shutil.copy(hf_hub_download("google/gemma-3-270m", "tokenizer.model"), f"{out}/tokenizer.model") # the GGUF converter needs it | |
| print("exported", out, "| max logit diff", d) | |