Instructions to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF 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 hyperionaidev/Ling-mini-2.0-tvbox-GGUF 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 hyperionaidev/Ling-mini-2.0-tvbox-GGUF # Run inference directly in the terminal: llama cli -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF # Run inference directly in the terminal: llama cli -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF # Run inference directly in the terminal: ./build/bin/llama cli -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Use Docker
docker model run hf.co/hyperionaidev/Ling-mini-2.0-tvbox-GGUF
- Llama new
- LM Studio
- Jan
- vLLM
How to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hyperionaidev/Ling-mini-2.0-tvbox-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hyperionaidev/Ling-mini-2.0-tvbox-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/hyperionaidev/Ling-mini-2.0-tvbox-GGUF
- Ollama
How to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF with Ollama:
ollama run hf.co/hyperionaidev/Ling-mini-2.0-tvbox-GGUF
- Unsloth Desktop
- Pi
How to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "hyperionaidev/Ling-mini-2.0-tvbox-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF with Docker Model Runner:
docker model run hf.co/hyperionaidev/Ling-mini-2.0-tvbox-GGUF
- Lemonade
How to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Run and chat with the model
lemonade run user.Ling-mini-2.0-tvbox-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use hyperionaidev/Ling-mini-2.0-tvbox-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "hyperionaidev/Ling-mini-2.0-tvbox-GGUF" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Ling-mini-2.0 (16B MoE): TV-box GGUF (Q2_K experts, 60K head)
This is the exact file that runs Ling-mini-2.0 at 5.1 tok/s in real chat on a Xiaomi TV Box S (3rd Gen). That box has 4ร Cortex-A55 and 1 GB of usable RAM. Ling-mini-2.0 has 16.3 B parameters (1.4 B active) and 256 experts of ~1 MB each. They are paged from flash on demand.
From the ๐ค smolmaxxing project. The full write-up is in EXPERIMENT.md ยง20.
โ ๏ธ This file needs the patched llama.cpp from the smolmaxxing repo. It has a pruned output head (60,000 of 157,184 vocabulary rows plus an
output_idstensor). Stock llama.cpp, LM Studio and Ollama will not load it. See Run.
The file
| File | lm2-q2-h60.gguf, 5.49 GB |
| SHA-256 | c089aeb0e5989bf8ecf38eb74bc6bb781f0acbe1ccf326bc8c5b7838d8c2e8d7 |
| Source | bartowski/inclusionAI_Ling-mini-2.0-GGUF, Q4_K_M plus its imatrix |
| Experts | Requantized to Q2_K with bartowski's imatrix |
| Everything else | Q4_K, copied from the source |
| Output head | 60,000 rows (data/head-ids-ling-60k.txt), chosen by token frequency on an English + multilingual corpus. Prompts can still use every token; the model can only generate tokens in the head. |
| Context | 32,768 tokens in the metadata; run at 1,024 on the TV |
Measured on the TV box
| Setting | Quality (bits/byte, lower is better) | Real chat |
|---|---|---|
| Default: top-8 experts, pool 43, bias 0.3, prefetch, repeat penalty | 1.054 | 5.1 tok/s (5.0 on ~600-word answers, 0/6 looped) |
| Top-6 experts, bias 0.25 | 1.090 | 5.3 tok/s |
- Quality is English perplexity on a fixed 22 KB text, converted to bits per byte so models with different tokenizers compare fairly.
- Compared with smaller models: this model is bigger but not better. Moon-Beam-8B-A1B scores 0.996 at 7.2 tok/s on the same box, and Bonsai-8B 0.974.
- RAM: ~1.13 GB RSS in headless mode. On flash: the GGUF plus a 5.3 GB repack cache.
- Where the time goes: of a ~190 ms token, ~85 ms is spent waiting for expert reads from flash.
Next to the other sizes
This model is the 16B MoE row. The best file of every size class is in hyperionaidev. The scoreboard has the full table and the kernels and memory tricks behind each step.
Run
Build the patched llama.cpp first. It's llama.cpp at 8642541 with patches/llama.cpp-v0.8.0-tvbox.patch applied; Quick start has the exact steps. Then run:
# Low-RAM setup (what the TV runs): expert pager, cache-aware routing, warm start, pre-gated prefetch.
# moe-warm-ling.txt is in this repo. The repack cache is written on the first run.
GGML_MOE_PAGER=1 GGML_MOE_POOL=43 GGML_MOE_BIAS=0.3 LLAMA_MOE_USED=8 \
GGML_MOE_PREFETCH_K=6 GGML_MOE_PREFETCH_AHEAD=2 \
GGML_MOE_WARM=moe-warm-ling.txt GGML_REPACK_CACHE=cache/lmq2 \
llama-server -m lm2-q2-h60.gguf -t 3 -c 1024 -ub 4 -b 64 -ctk q8_0 -ctv q8_0 -fa on -cram 0 \
--repeat-penalty 1.15 --repeat-last-n 256
On a machine with RAM to spare, drop the environment variables: the patched llama-server -m lm2-q2-h60.gguf loads every expert normally. On the TV box, MODEL=lm2-q2-h60.gguf tv-llm-ui/start.sh in the repo does all of this, including a headless mode that frees Android's RAM.
License and credits
- License: MIT, the same as the original model.
- Model: inclusionAI/Ling-mini-2.0.
- Source quantization and imatrix: bartowski.
- Runtime: llama.cpp (MIT) plus the smolmaxxing patch.
- Downloads last month
- 648
We're not able to determine the quantization variants.
Model tree for hyperionaidev/Ling-mini-2.0-tvbox-GGUF
Base model
inclusionAI/Ling-mini-base-2.0