Update model card: vision and MTP sidecars
Browse files35 unmodified lines363738394041426 unmodified lines49505152535419 unmodified lines747576777879802 unmodified lines83848586878835 unmodified lines> [!IMPORTANT]> **This is a research release, not a drop-in replacement for the original checkpoint.** The experts are re-quantized to **3 bits** on top of the> vendor's NVFP4/MXFP8 weights, which costs quality (numbers below). The file loads **only in [Q-Volta](https://github.com/Q-Project-LM/q-volta)**> (not in transformers, vLLM or llama.cpp). Text only: the vision tower and the MTP head are not included. Quality on tool calling, code and long> context was **not evaluated**.## What this is6 unmodified lines|---|---:|---|| `inkling2-mini-q3a5.qv` | **9.89 GiB** | experts 3-bit (GPTQ with a Hessian shrunk towards the pooled one, group 128, 8-bit metadata); attention 5-bit; embedding / unembedding 4-bit; norms, router, conv kernels and loop gates fp16/fp32 |Calibration: 8,192 tokens of the reference model's own activations on wikitext/code text; the golden prompts and the README were not calibrated on.## Honest results19 unmodified linesEngine benchmarks (CUDA graph): decode 122 tok/s at ctx 25, 114 at 4K, 101 at 32K, 76 at 128K, 57 at 256K (decode over an unwritten cache at that position: speed only); prefill 2,764 tok/s at a 4K prompt (chunk 4096), 766 tok/s for a 256K prompt (334 s). With int4 KV the largest context that fit on the 16 GB card was about 580K tokens (15.7 of 15.8 GiB); passkey retrieval worked at 8K, 32K, 128K and 256K (one prompt each: this shows the pipeline works, not retrieval quality). CPU backend (AVX2, 32 threads): decode 11 tok/s, prefill about 70 tok/s.**Where it is weaker / not done:** no speculative decoding (the draft head's graph is not specified by the Hugging Face reference); decode is latency-bound at about a third of the bandwidth limit; the model thinks by default, so reasoning appears in `content` unless the template's thinking switch is used; one request at a time.## Usage2 unmodified linescmake -S . -B build -G Ninja -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc && ninja -C build./build/qv_server --model inkling2-mini-q3a5.qv --tokenizer tokenizer.json \--backend cuda --kv int4 --max-ctx 131072 --port 8080 # OpenAI / llama-server compatible API# CPU: --backend cpu --threads 32```Details and flags: [docs/INKLING_RUN.md](https://github.com/Q-Project-LM/q-volta/blob/main/docs/INKLING_RUN.md); Docker: [docs/DOCKER.md](https://github.com/Q-Project-LM/q-volta/blob/main/docs/DOCKER.md).35 unmodified lines363738394041426 unmodified lines49505152535455565719 unmodified lines77787980818283848586872 unmodified lines9091929394959635 unmodified lines> [!IMPORTANT]> **This is a research release, not a drop-in replacement for the original checkpoint.** The experts are re-quantized to **3 bits** on top of the> vendor's NVFP4/MXFP8 weights, which costs quality (numbers below). The file loads **only in [Q-Volta](https://github.com/Q-Project-LM/q-volta)**> (not in transformers, vLLM or llama.cpp). The vision tower and the MTP drafter are separate optional files in this repository (see below). Quality on tool calling, code and long> context was **not evaluated**.## What this is6 unmodified lines|---|---:|---|| `inkling2-mini-q3a5.qv` | **9.89 GiB** | experts 3-bit (GPTQ with a Hessian shrunk towards the pooled one, group 128, 8-bit metadata); attention 5-bit; embedding / unembedding 4-bit; norms, router, conv kernels and loop gates fp16/fp32 || `inkling2-mini-vision.qv` | 0.60 GiB | optional sidecar: the vision tower (23-layer ViT, fp16, 0.639 GB), image input through `image_url` || `inkling2-mini-mtp.qv` | 0.25 GiB | optional sidecar: the MTP block-8 drafter (5-bit matrices), exact speculative decoding |Calibration: 8,192 tokens of the reference model's own activations on wikitext/code text; the golden prompts and the README were not calibrated on.## Honest results19 unmodified linesEngine benchmarks (CUDA graph): decode 122 tok/s at ctx 25, 114 at 4K, 101 at 32K, 76 at 128K, 57 at 256K (decode over an unwritten cache at that position: speed only); prefill 2,764 tok/s at a 4K prompt (chunk 4096), 766 tok/s for a 256K prompt (334 s). With int4 KV the largest context that fit on the 16 GB card was about 580K tokens (15.7 of 15.8 GiB); passkey retrieval worked at 8K, 32K, 128K and 256K (one prompt each: this shows the pipeline works, not retrieval quality). CPU backend (AVX2, 32 threads): decode 11 tok/s, prefill about 70 tok/s.**Vision (sidecar):** image tokens = ceil(h/40) x ceil(w/40) (224x224 -> 36, 1024x1024 -> 676). Pixels match the Hugging Face processor to 1.2e-7 on PNGs (JPEG: one 8-bit level, different decoder); embeddings vs the Hugging Face fp32 tower: relative L2 2e-6..1e-5 (CPU), 5.6e-4..4.1e-3 (CUDA fp16). Encoder on the V100: 5.5 ms (224x224), 23 ms (512x512), 186 ms (1024x1024); time to first token through the server 0.22 / 0.32 / 0.71 s. With this 3-bit text model, a red square on blue and a rendered "HELLO" were described correctly in a small check; end to end the greedy tokens matched the fp32 reference for 9 of 32 steps on CUDA (31 of 32 on CPU) on one image prompt, so expect drift. No WebP/HEIC/video; GIF = first frame. Not evaluated on any benchmark.**MTP (sidecar):** the draft graph is taken from the vLLM Inkling2 implementation (the Hugging Face PR has no MTP code). Output is bit-identical to plain greedy decoding (12 of 12 checks). Speed on the V100 is text dependent: 0.55x to 1.73x over a 20-configuration matrix, about 1.25x on code at short context, and no gain on chat prose through the server (draft acceptance is low there). Depth 1 is never faster than plain; use depth 3. Enable it only if your workload is code or repetitive text.**Where it is weaker / not done:** decode is latency-bound at about a third of the bandwidth limit; the model thinks by default, so reasoning appears in `content` unless the template's thinking switch is used; concurrent requests are queued in the released engine version (multi-sequence decoding is being developed).## Usage2 unmodified linescmake -S . -B build -G Ninja -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc && ninja -C build./build/qv_server --model inkling2-mini-q3a5.qv --tokenizer tokenizer.json \--backend cuda --kv int4 --max-ctx 131072 --port 8080 # OpenAI / llama-server compatible API# images: put inkling2-mini-vision.qv next to the model (auto) or pass --vision-file; MTP: --mtp --mtp-depth 3 --mtp-file inkling2-mini-mtp.qv# CPU: --backend cpu --threads 32```Details and flags: [docs/INKLING_RUN.md](https://github.com/Q-Project-LM/q-volta/blob/main/docs/INKLING_RUN.md); Docker: [docs/DOCKER.md](https://github.com/Q-Project-LM/q-volta/blob/main/docs/DOCKER.md).
README.md+10-2