Qwen3.8-27B UD-Q4_K_XL for NInfer v3
Target build: RTX 3090 (24 GB, SM86) · Qwen3.8-27B UD-Q4_K_XL (5.14 bits/weight) · NInfer v3 · RK4V4 KV cache · original MTP head · optional GPU-resident vision.
This build targets long-context inference on a single RTX 3090: fit a 27B model using a compact ~5.14-bit/weight text quantization and RK4V4 KV cache, with vision available when image input is needed. In one field experiment, a 24 MP image was admitted with approximately 225.5K tokens resident in a 240K-token pool, using 23,274 MiB of 24,576 MiB VRAM.
Both variants derive from the same Unsloth Dynamic Q4_K_XL GGUF and target the pinned iamwavecut/ninfer-all runtime, commit b2913b65e1e09819047638a5beeb1365f7003880, on RTX 3090 / SM86.
These are NInfer containers, not Transformers-loadable checkpoints.
At a glance
- Intended profile: one RTX 3090 / 24 GB card, RK4V4 KV cache, long-context text inference, and optional GPU-resident vision.
- Text variant: independently audited text conversion, original MTP head, and the numerical campaigns documented below.
- Vision variant: packaged and smoke-tested for text generation with GPU-resident vision.
Files
| File | Components | Exact file size | Validation scope |
|---|---|---|---|
Qwen3.8-27B-UD-Q4_K_XL-text-mtp.ninfer |
Text + original MTP | 17,578,088,192 B | Text conversion independently audited; measured text campaigns below |
Qwen3.8-27B-UD-Q4_K_XL-text-vision-mtp.ninfer |
Text + vision + original MTP | 17,873,902,592 B | Vision assembled by the pinned recipe. |
The vision variant adds approximately 282 MiB of vision payload. Its source, mmproj-Qwen3.8-27B-Q8_0.gguf, was re-encoded, not byte-preserved: the pinned recipe uses grouped Q4/Q5/Q6/Q8 vision formats and BF16 small tensors. Text and MTP derive from the same source GGUF and recipe; this is not a new text quantization. This packaging pass makes no binary-level claim that the text payloads in the two variants are identical.
Field note: vision at high context (2026-10-21)
A full-resolution 24 MP JPEG (6000×4000, 24 MiB on disk) was submitted as a chat image to a server whose 240K-token pool already held a live conversation. At request time, engine statistics showed approximately 225.5K resident tokens (3,523 × 64-token blocks): about 209K for the conversation plus 16,347 prompt tokens for the image. The engine's resize/tiling mapped the 24 MP image to roughly 16.3K tokens.
The request was admitted without OOM or planner rejection; process VRAM was 23,274 MiB out of 24,576 MiB. A targeted four-point description (subject, pose, object color, lighting) captured all major elements correctly. A repeated request in the same session hit the prefix cache: 16,340 of 16,347 tokens cached.
Quick start
1. Start a conservative text-only server
This example uses a bounded 8,192-token shared KV pool:
./ninfer-serve ./model/Qwen3.8-27B-UD-Q4_K_XL-text-mtp.ninfer \
--host 127.0.0.1 --port 8080 \
--max-context 8192 --kv-capacity 8192 --max-concurrency 1 \
--prefill-chunk 1024 --kv-dtype rk4v4 --host-cache-mib 0 \
--spec mtp --draft-tokens 3 --full-draft-head --ngram-draft-tokens 0
The API endpoint is http://127.0.0.1:8080/v1.
2. Enable vision when using the vision variant
Select Qwen3.8-27B-UD-Q4_K_XL-text-vision-mtp.ninfer and explicitly add:
--vision --vision-residency resident
--vision-cpu is a separate option with different latency and memory behavior.
Benchmark map
The following experiments answer different questions and use different references.
| Experiment | Question | Reference / comparison | Main scope |
|---|---|---|---|
| B6/R6 native three-way | How do three NInfer artifacts compare on the same next-token targets? | XL vs official vs Warlax | 6,144 suffix targets per artifact; BF16 KV |
| Stored-weight fidelity | How does the imported XL artifact's stored-weight behavior compare in a common evaluator? | Original BF16 reference; published Warlax comparator | llama.cpp, BF16 KV, 49,140 targets; historical partial-divergence convention |
| Native XL execution | What changes when the XL artifact actually runs in NInfer? | Historical original BF16 reference | XL under BF16, RK4V4, and RK8V4 KV |
| KV-codec effect | How much do RK4V4 and RK8V4 differ with XL weights held constant? | Same XL model in NInfer with BF16 KV | Complete KL over 248,077 public vocabulary IDs |
| PPL / generation profiles | What are the measured perplexity and throughput trade-offs? | Same XL weights across selected KV / output profiles | Teacher-forced PPL plus repeated short-generation campaigns |
Latest result: native three-way comparison (B6/R6, 2026-10-25)
This is a native NInfer comparison of three artifacts on the same RTX 3090 / SM86 and pinned runtime.
Aggregate suffix PPL
| Artifact | Global PPL | Relative to XL |
|---|---|---|
| XL UD-Q4_K_XL | 5.7509823450 | Reference |
| Warlax 3090 | 5.8286151024 | +1.3499043% |
| Official | 5.8441636198 | +1.6202671% |
PPL by domain
Each domain contributes 1,024 scored targets.
| Domain | XL | Official | Warlax |
|---|---|---|---|
| English Wikipedia | 7.799454 | 7.922352 | 7.814678 |
| Chinese Wikipedia | 23.847426 | 24.334505 | 23.899917 |
| arXiv | 4.434527 | 4.428608 | 4.462514 |
| GitHub code | 3.423396 | 3.444038 | 3.461327 |
| Local code | 2.447977 | 2.481073 | 2.457185 |
| Synthetic chat | 5.234011 | 5.461133 | 5.531267 |
XL had the lowest measured PPL in five of six domains. The official artifact was slightly lower on arXiv, while XL was lower than Warlax in all six domains. This is a result on the tested corpus and does not establish a universal ranking.
Pairwise distribution agreement
The comparisons below measure agreement and divergence on the same target positions. KL values are in nats; both directions are shown because KL is asymmetric. Top-1 agreement.
| Pair (left / right) | Top-1 agreement | Mean KL left → right | Mean KL right → left | KL P99 left → right | KL P99 right → left |
|---|---|---|---|---|---|
| XL / Official | 5,679 / 6,144 (92.431641%) | 0.0299855103 | 0.0304530741 | 0.2348573553 | 0.2490051127 |
| XL / Warlax | 5,753 / 6,144 (93.636068%) | 0.0244918266 | 0.0239991542 | 0.2055617861 | 0.2050912544 |
| Official / Warlax | 5,618 / 6,144 (91.438802%) | 0.0415912012 | 0.0408668311 | 0.3302502547 | 0.3437901913 |
1. Stored-weight fidelity, evaluated in llama.cpp
The text variant (Qwen3.8-27B-UD-Q4_K_XL-text-mtp.ninfer) was exported with codes, scales, and small tensors audited, then evaluated in the same unmodified llama.cpp build with BF16 KV against the original BF16 reference. Six domains, 12 chunks of 8,192, and 49,140 unique targets.
| Metric | XL import | Published native comparator |
|---|---|---|
| Historical KLD99 ↓ | 0.073837 | 0.210481 |
| RMS next-token Δp, probability units ↓ | 0.03341 | 0.04916 |
| Top-1 agreement ↑ | 96.817% | 94.196% |
| Historical divergence mean ↓ | 0.016418 | 0.034094 |
Comparator: WarlaxZ/Qwen3.8-27B-NInfer-3090, archived file SHA256 7f2a0086a071ee932c66106e1552d118a85cfec8ddef13c67a54cd64abb39706.
2. Native XL execution against the historical original reference
| Native XL KV | Historical KLD99 ↓ | RMS Δp, probability points ↓ | Top-1 agreement ↑ |
|---|---|---|---|
| BF16 | 0.078364 | 3.4611 | 96.4245% |
| RK4V4 | 0.106144 | 3.9056 | 95.7163% |
| RK8V4 | 0.085659 | 3.4443 | 96.1844% |
3. Native KV-codec effect with XL weights held constant
Here the reference is the same quantized XL artifact running in NInfer with BF16 KV. These are complete-KL comparisons over the 248,077 public token IDs, using stable FP64 normalization of captured BF16 logits. Do not mix these values with the historical-reference tables above.
| Input length | KV codec | Complete KLD99 ↓ | RMS Δp, probability points ↓ | Top-1 agreement ↑ |
|---|---|---|---|---|
| 8K | RK4V4 | 0.058588 | 3.1465 | 96.8030% |
| 8K | RK8V4 | 0.041680 | 3.0328 | 97.5376% |
| 16K suffix | RK4V4 | 0.047327 | 2.2187 | 97.1306% |
| 16K suffix | RK8V4 | 0.031364 | 1.9422 | 97.5824% |
| ~64K suffix | RK4V4 | 0.048567 | 2.2294 | 97.1591% |
| ~64K suffix | RK8V4 | 0.032993 | 1.8815 | 97.5417% |
Each row covers 49,140 targets across six domains. Long runs score the final 8,190 targets per domain, not every position; those inputs contain 64,553–65,479 tokens. The 8K cohort uses two independent windows per domain. Cohorts differ, so no monotonicity claim with context length is made.
Native perplexity and generation trade-offs
These tests use the same XL weights with native causal teacher forcing and no MTP or vision in PPL scoring. Global PPL is exp(total NLL / total targets), not the mean of domain PPLs.
PPL by input cohort
| Input cohort | BF16 KV | RK4V4 | RK8V4 | Scored targets per codec |
|---|---|---|---|---|
| 16K | 4.237231 | 4.249427 | 4.243958 | 98,298 |
| ~64K | 4.130109 | 4.142559 | 4.137045 | 391,000 |
Repeated RK4V4 vs NVFP4 profiles
Separate N=3 repeated campaigns on the same fixed corpus compared RK4V4 and NVFP4. PPL was 4.249427 for RK4V4 and 4.244016 for NVFP4, against a BF16-KV baseline of 4.237231; these values repeated exactly.
Generation conditions: MTP3/full-head, no prefix reuse, greedy decoding with thinking off, ABBA order, six 128-token generations per case/codec/campaign, and short prompts.
| Codec | Prose throughput | Code throughput |
|---|---|---|
| RK4V4 | 79.247 ± 0.780 tok/s | 114.360 ± 1.731 tok/s |
| NVFP4 | 70.784 ± 0.675 tok/s | 106.959 ± 1.228 tok/s |
Model and conversion details
Source and conversion
Source GGUF: unsloth/Qwen3.8-27B-GGUF, file Qwen3.8-27B-UD-Q4_K_XL.gguf, 17,559,178,144 bytes.
- Converter:
ninfer-v3 - Recipe:
qwen3_8_27b_gguf - Conversion environment: CPU-only PyTorch 2.14.1+cpu
- Text conversion: approximately 10 seconds, excluding environment/input setup
- Official frontend revision:
Qwen/Qwen3.8-27B@1d4bf0f2ff6012fd82039f2fa52739d0dd7c60c0 - Chat template: the template embedded in the source GGUF.
Architecture
- Parameters: 27,320,697,856
- Hidden size: 5,120
- Text layers: 64 (48 gated-DeltaNet + 16 full attention)
- Vocabulary: 248,320 physical IDs / 248,077 public IDs
- GQA: 24 query heads / 4 KV heads; head dimension 256
- MTP: original one-layer MTP head
- Declared model context: 262,144 tokens — configuration metadata.
Files and provenance
- SHA256SUMS: verified full-file hashes for the sanitized distribution files.
- artifact-manifest.json: portable text conversion descriptor.
- artifact-manifest-vision.json: portable vision descriptor.
- publication-manifest.json: sizes, component sets, measured/distributed file hashes, payload hashes, and manifest hashes.
- release-verification.json: measured-to-distributed artifact mapping, header-only sanitization, and bounded load-smoke evidence.
- NOTICE: attribution, modification notices, and vision-provenance limit.
- measurements.json: selected full-precision aggregates, per-domain results, metric conventions, and source-summary hashes.
License and attribution
Apache-2.0, with the official base-model license retained byte-for-byte in LICENSE and modification/attribution notices in NOTICE.
Sources and attribution: Qwen/Qwen3.8-27B, unsloth/Qwen3.8-27B-GGUF, and the conversion tool iamwavecut/ninfer-all.