LakoMoor commited on
Commit
7799e14
·
verified ·
1 Parent(s): 4e1f59c

Update model card: vision and MTP sidecars

Browse files
Files changed (1) hide show
  1. README.md +10 -2
README.md CHANGED
@@ -36,7 +36,7 @@ tags:
36
  > [!IMPORTANT]
37
  > **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
38
  > 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)**
39
- > (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
40
  > context was **not evaluated**.
41
 
42
  ## What this is
@@ -49,6 +49,9 @@ This repository holds a text-only conversion in Q-Volta's single-file **`.qv`**
49
  |---|---:|---|
50
  | `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 |
51
 
 
 
 
52
  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.
53
 
54
  ## Honest results
@@ -74,7 +77,11 @@ Top-1 over 32 greedy tokens vs the reference on four prompts: 32/32, 32/32, 32/3
74
 
75
  Engine 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.
76
 
77
- **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.
 
 
 
 
78
 
79
  ## Usage
80
 
@@ -83,6 +90,7 @@ git clone https://github.com/Q-Project-LM/q-volta && cd q-volta
83
  cmake -S . -B build -G Ninja -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc && ninja -C build
84
  ./build/qv_server --model inkling2-mini-q3a5.qv --tokenizer tokenizer.json \
85
  --backend cuda --kv int4 --max-ctx 131072 --port 8080 # OpenAI / llama-server compatible API
 
86
  # CPU: --backend cpu --threads 32
87
  ```
88
  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).
 
36
  > [!IMPORTANT]
37
  > **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
38
  > 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)**
39
+ > (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
40
  > context was **not evaluated**.
41
 
42
  ## What this is
 
49
  |---|---:|---|
50
  | `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 |
51
 
52
+ | `inkling2-mini-vision.qv` | 0.60 GiB | optional sidecar: the vision tower (23-layer ViT, fp16, 0.639 GB), image input through `image_url` |
53
+ | `inkling2-mini-mtp.qv` | 0.25 GiB | optional sidecar: the MTP block-8 drafter (5-bit matrices), exact speculative decoding |
54
+
55
  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.
56
 
57
  ## Honest results
 
77
 
78
  Engine 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.
79
 
80
+ **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.
81
+
82
+ **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.
83
+
84
+ **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).
85
 
86
  ## Usage
87
 
 
90
  cmake -S . -B build -G Ninja -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc && ninja -C build
91
  ./build/qv_server --model inkling2-mini-q3a5.qv --tokenizer tokenizer.json \
92
  --backend cuda --kv int4 --max-ctx 131072 --port 8080 # OpenAI / llama-server compatible API
93
+ # 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
94
  # CPU: --backend cpu --threads 32
95
  ```
96
  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).