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/profile_step.py from QLNI/embeddings-are-overpriced: direct link, hf CLI and curl.
- Browser
- Download file 1.95 kB
-
https://huggingface.co/QLNI/embeddings-are-overpriced/resolve/main/code/profile_step.py
- Command line
-
hf download hf://QLNI/embeddings-are-overpriced/code/profile_step.py
-
curl -L -o profile_step.py https://huggingface.co/QLNI/embeddings-are-overpriced/resolve/main/code/profile_step.py
1.95 kB
| """Where does one training micro-step go? Arm B, micro 8 x 1024, bf16. CUDA time by operator group. | |
| python profile_step.py [--arm B] [--attn sdpa] | |
| """ | |
| import argparse, collections | |
| import numpy as np | |
| import torch | |
| from torch.profiler import profile, ProfilerActivity | |
| import train as T | |
| ap = argparse.ArgumentParser() | |
| ap.add_argument("--arm", default="B") | |
| ap.add_argument("--attn", default="sdpa") | |
| a = ap.parse_args() | |
| counts = np.load("data_smoke/unigram_counts.npy") | |
| m = T.Model(a.arm, counts, a.attn).cuda() | |
| opt = torch.optim.AdamW([p for p in m.parameters() if p.requires_grad], lr=1e-4) | |
| data = T.Data("data_smoke", 0) | |
| def step(): | |
| x = data.batch(8).cuda() | |
| with torch.autocast("cuda", dtype=torch.bfloat16): | |
| loss = m.loss(x) | |
| loss.backward() | |
| opt.step() | |
| opt.zero_grad(set_to_none=True) | |
| for _ in range(3): | |
| step() | |
| torch.cuda.synchronize() | |
| with profile(activities=[ProfilerActivity.CUDA]) as prof: | |
| for _ in range(3): | |
| step() | |
| torch.cuda.synchronize() | |
| groups = collections.Counter() | |
| for e in prof.key_averages(): | |
| t = e.self_device_time_total if hasattr(e, "self_device_time_total") else e.self_cuda_time_total | |
| k = e.key.lower() | |
| if any(s in k for s in ("flash", "attention", "fmha", "sdpa", "efficient_attention", "softmax_backward_data")): | |
| g = "attention kernels" | |
| elif any(s in k for s in ("gemm", "matmul", "mm", "cutlass", "sm90", "sm100", "sm120", "ampere", "xmma")): | |
| g = "matrix multiplies (all linears incl. readout)" | |
| elif "log_softmax" in k or "nll" in k or "cross_entropy" in k: | |
| g = "cross-entropy" | |
| elif "adam" in k or "foreach" in k: | |
| g = "optimizer" | |
| else: | |
| g = "elementwise / norms / other" | |
| groups[g] += t | |
| tot = sum(groups.values()) | |
| for g, t in groups.most_common(): | |
| print(f"{g:48s} {t / 1e3 / 3:8.1f} ms/step {t / tot * 100:5.1f}%") | |
| print(prof.key_averages().table(sort_by="self_cuda_time_total", row_limit=12)) | |