Download README.md from YTan2000/Inkling-2-Mini-TQT: direct link, hf CLI and curl.
- Browser
- Download file 3.4 kB
-
https://huggingface.co/YTan2000/Inkling-2-Mini-TQT/resolve/main/README.md
- Command line
-
hf download hf://YTan2000/Inkling-2-Mini-TQT/README.md
-
curl -L -o README.md https://huggingface.co/YTan2000/Inkling-2-Mini-TQT/resolve/main/README.md
license: apache-2.0
base_model: thinkingmachines/Inkling-2-Mini
base_model_relation: quantized
tags:
- tqllm
- tqt
- moe
- gguf
Inkling-2-Mini TQT (tqLLM)
TQT is a 4-bit / 3-bit trellis-coded format for the routed experts of
thinkingmachines/Inkling-2-Mini, made for 16 GB and 24 GB
GPUs and DGX Spark. Each file in this repo is an overlay: it holds the routed experts in TQT plus 8-bit (Q8_0)
copies of the embedding, LM head and attention projections (in tqt-16gb-dense, the attention projections are TQT too). Everything else is read from the official checkpoint.
TQT quantization by Scoobylolo.
Required runtime
tqLLM 1.8.0 or newer (Docker ytan2000/tqllm:1.9.2; 1.9.0 keeps more experts resident on 16 GB cards). Other engines cannot read the TQT tensor types (GGUF types 306 / 308).
Files
| file | size | experts | for | KLD vs BF16 | same top-1 token |
|---|---|---|---|---|---|
tqt-4bit/tqt_experts.gguf |
14.08 GB | all layers 4-bit | 24 GB cards, DGX Spark | 0.0064 | 96.9 % |
tqt-16gb/tqt_experts.gguf |
13.06 GB | 4-bit and 3-bit layers | 16 GB cards | 0.0093 | 96.2 % |
tqt-16gb-dense/tqt_experts.gguf |
12.81 GB | as tqt-16gb, attention q / k / v / o also TQT |
16 GB cards, fastest | 0.0113 | 96.2 % |
Quality: full-vocabulary KLD and top-1 agreement against the official model's BF16 outputs, 16 held-out texts (8,768 positions). For scale, the official model's own BF16 vs F32-attention outputs differ by KLD 0.0024 / top-1 98.2 %.
Use
# 1. the official checkpoint
huggingface-cli download thinkingmachines/Inkling-2-Mini --local-dir Inkling-2-Mini
# 2. one overlay, next to it as tqt_experts.gguf
huggingface-cli download YTan2000/Inkling-2-Mini-TQT tqt-16gb/tqt_experts.gguf --local-dir .
mv tqt-16gb/tqt_experts.gguf Inkling-2-Mini/tqt_experts.gguf
# 3. serve (OpenAI-compatible)
tqserve --model Inkling-2-Mini --jinja --np 1 --context 32768
tqserve --model Inkling-2-Mini --jinja --np 1 --context 32768 --exact off # faster: 8-bit attention + LM head
# with incoai's DFlash2 drafter (huggingface.co/incoai/Inkling-2-Mini-DFlash2); drafted output equals plain output
tqserve --model Inkling-2-Mini --jinja --np 1 --context 32768 --exact off -md Inkling-2-Mini-DFlash2
tqLLM loads tqt_experts.gguf automatically when it is in the model folder; remove it to run the official weights.
Speed
Decode tok/s, one request, greedy, no drafter, tqLLM 1.8.0 candidates. Context 1K / 8K / 32K.
| GPU | file | exact | --exact off |
|---|---|---|---|
| RTX 5060 Ti 16 GB | tqt-16gb-dense |
71.3 / 56.4 / 43.3 | 73.2 / 69.4 / 55.0 |
| RTX 5060 Ti 16 GB | tqt-16gb |
58.9 / 38.4 / 31.0 | 71.0 / 63.4 / 50.1 |
| RTX 5060 Ti 16 GB | tqt-4bit |
54.0 / 27.2 / 24.6 | 68.9 / 48.3 / 38.0 |
| DGX Spark (GB10) | tqt-4bit |
38.0 / 36.6 / 32.1 | 44.9 / 42.7 / 36.6 |
With the DFlash2 drafter, RTX 5060 Ti 16 GB, tqt-16gb-dense, --exact off, 300 tokens: chat 121.9, code 117.2,
translate 100.6 tok/s.
On a 16 GB card the smaller file keeps more experts on the GPU, which is where its speed comes from.
License
Apache-2.0, as the parent model (thinkingmachines/Inkling-2-Mini) and the runtime (turbo-tan/tqllm).