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/prep_data.py from QLNI/embeddings-are-overpriced: direct link, hf CLI and curl.
- Browser
- Download file 2.89 kB
-
https://huggingface.co/QLNI/embeddings-are-overpriced/resolve/main/code/prep_data.py
- Command line
-
hf download hf://QLNI/embeddings-are-overpriced/code/prep_data.py
-
curl -L -o prep_data.py https://huggingface.co/QLNI/embeddings-are-overpriced/resolve/main/code/prep_data.py
2.89 kB
| """Training data for the paper: FineWeb-Edu (sample-10BT), Gemma tokenizer (262,144 tokens), uint32 shards. | |
| 2.05B training tokens + 10M validation tokens, documents separated by <eos>. Also writes the token counts used | |
| for the unigram prior (counted on the training tokens only). | |
| python prep_data.py --out data [--train 2.05e9] [--val 1e7] | |
| """ | |
| import argparse, pathlib, time | |
| import numpy as np | |
| from datasets import load_dataset | |
| from transformers import AutoTokenizer | |
| SHARD = 100_000_000 | |
| def main(): | |
| ap = argparse.ArgumentParser() | |
| ap.add_argument("--out", default="data") | |
| ap.add_argument("--train", type=float, default=2.05e9) | |
| ap.add_argument("--val", type=float, default=1e7) | |
| a = ap.parse_args() | |
| out = pathlib.Path(a.out) | |
| out.mkdir(parents=True, exist_ok=True) | |
| tok = AutoTokenizer.from_pretrained("google/gemma-3-270m") | |
| eos = tok.eos_token_id | |
| need_val, need_train = int(a.val), int(a.train) | |
| ds = load_dataset("HuggingFaceFW/fineweb-edu", "sample-10BT", split="train", streaming=True) | |
| counts = np.zeros(262144, np.int64) | |
| buf = np.empty(SHARD + 1_000_000, np.uint32) | |
| n_buf, shard, done_val, total, t0, batch = 0, 0, False, 0, time.time(), [] | |
| def write(arr, name): | |
| np.save(out / name, arr) | |
| print(time.strftime("%H:%M:%S"), f"wrote {name} ({len(arr) / 1e6:.0f}M tokens)", flush=True) | |
| for ex in ds: | |
| batch.append(ex["text"]) | |
| if len(batch) < 512: | |
| continue | |
| for ids in tok(batch, add_special_tokens=False)["input_ids"]: | |
| ids.append(eos) | |
| buf[n_buf:n_buf + len(ids)] = ids | |
| n_buf += len(ids) | |
| batch = [] | |
| if not done_val and n_buf >= need_val: | |
| write(buf[:need_val].copy(), "val.npy") | |
| rest = buf[need_val:n_buf].copy() | |
| buf[:len(rest)] = rest | |
| n_buf, done_val = len(rest), True | |
| elif done_val and n_buf >= SHARD: | |
| take = min(SHARD, need_train - total) | |
| arr = buf[:take].copy() | |
| counts += np.bincount(arr, minlength=262144) | |
| write(arr, f"train_{shard:03d}.npy") | |
| shard, total = shard + 1, total + take | |
| rest = buf[SHARD:n_buf].copy() | |
| buf[:len(rest)] = rest | |
| n_buf = len(rest) | |
| if total >= need_train: | |
| break | |
| print(f" {total / 1e9:.2f}B / {need_train / 1e9:.2f}B {total / (time.time() - t0) / 1e6:.2f}M tok/s", flush=True) | |
| if total < need_train and n_buf: | |
| arr = buf[:min(n_buf, need_train - total)].copy() | |
| counts += np.bincount(arr, minlength=262144) | |
| write(arr, f"train_{shard:03d}.npy") | |
| total += len(arr) | |
| np.save(out / "unigram_counts.npy", counts) | |
| print(time.strftime("%H:%M:%S"), f"done: {total / 1e9:.3f}B train tokens in {time.time() - t0:.0f} s", flush=True) | |
| if __name__ == "__main__": | |
| main() | |