Qwen3.81-27B-NVFP4
NVFP4 (W4A4) quantized build of Qwen3.81-27B, a 50/50 linear parameter-average of two siblings of the same Qwen3.5-family base:
Qwen3.8-27B (shared base)
├── DaisyRose-27B (fine-tune A)
├── sabi-noema (fine-tune B — Qwen3.5 hybrid linear-attention, multimodal)
└── → Qwen3.81-27B = (A + B) / 2, bf16 → NVFP4 quant → this model
- Merged model (bf16):
vince62s/Qwen3.81-27B(54.7 GB, 1184 tensors, 3 shards) - This repo: NVFP4, 19 GB — runs natively on Blackwell (RTX 5090 etc.) via vLLM ≥ 0.31
Layer-delta analysis (what was measured before merging)
Before merging, the two fine-tunes were compared tensor-by-tensor against their common base in fp32, streamed from safetensors with no full-model load. For every tensor t: ΔD = D(t) − base(t), ΔS = S(t) − base(t), then tensors were grouped (per text layer 000–063, vision groups, embeddings+lm_head, mtp/other) and aggregated.
1. Structural validation. All three models share an identical 1184-tensor skeleton; a strict check of every tensor's dtype and shape ran first (abort on any shape mismatch — none found). The only structural asymmetry was dtype-only (bf16 vs fp32 scale-like tensors), and a small set of tensors present only in DaisyRose was inventoried and handled separately.
2. The two fine-tunes moved in essentially orthogonal directions. The cosine similarity between ΔD and ΔS is ≈ 0 for nearly every layer (|cos| < 0.003 for all 64 text layers; e.g. embeddings_and_lm_head cos = −0.0001). The two fine-tunes are not two points along one training path — they are truly divergent soups, which is exactly the regime where parameter averaging adds rather than cancels knowledge.
3. Delta magnitudes by depth. Both fine-tunes drift more in mid-depth layers: |ΔS| grows from 0.44 (embeddings) to a peak of ~0.51 around layers 24–33, then decays to ~0.26 at the deepest layers; |ΔD| follows the same shape with smaller amplitude (peak ~0.37 at layers 16–26, → 0.28–0.30 late). sabi-noema is the stronger mover overall (norm ~0.44–0.50 vs ~0.34–0.37 for DaisyRose).
4. The 50/50 average is variance-preserving here. For orthogonal deltas, the merged deviation norm is |ΔD + ΔS|/2 = ½·sqrt(|ΔD|² + |ΔS|²) ≈ 0.30 per layer — i.e. the merge retains ~100% of the combined fine-tune signal (uniform-weight averaging never loses combined signal for orthogonal deltas; it loses up to 50% only when deltas are parallel). No layer displayed the "harmful" regime (large positive cosine), so no per-layer reweighting was applied — plain linear averaging everywhere.
Merge procedure
- Streaming merge (one tensor resident at a time), fp32 arithmetic, output cast back to bf16:
out = (D(t) + S(t)) / 2. - Identical-tensor shortcut: the entire vision tower is bit-identical between the two fine-tune deltas (ΔD = ΔS = 0) — vision weights pass through unchanged.
- Byte-balanced sharding into 3 safetensors shards + regenerated index; 1184/1184 tensors verified post-merge.
- No permutation/alignment issues: both fine-tunes share exact tensor naming and ordering, so the delta analysis doubles as a merge alignment check.
NVFP4 quantization (this repo)
RadixArk/DaisyRose-style recipe, executed with llmcompressor 0.15.0 oneshot:
| Setting | Value |
|---|---|
| Scheme | NVFP4 (W4A4), group size 16, tensor_group strategy |
| Weight observer | memoryless minmax, fp8 e4m3 scales |
| Activation quant | W4A4, static scales collected during calibration |
| Calibration | 512 samples × 2048 ctx from a local chat+code jsonl mix (~525-sample set) |
| Sequential pipeline | layer-by-layer streaming to GPU, CPU offload — never needs full 52 GB in VRAM |
| Keep in bf16 | lm_head + full vision tower (model.visual.*) |
| Output | 19 GB, nvfp4-pack-quantized format |
Result: ~2.9× smaller than the bf16 merge, with native 4-bit matmul on Blackwell. Verified with a vLLM generation smoke test (loglikelihood + CoT gates) before upload.
Usage (vLLM)
vllm serve vince62s/Qwen3.81-27B-NVFP4 \
--served-model-name qwen3.81 \
--reasoning-parser qwen3 \
--max-model-len 32768 # scale to available KV; 49k fits a 32GB-5090 at util 0.88
- Chat template follows the Qwen3.5 thinking format;
enable_thinkingdefaults to on with xhigh reasoning effort. - Sampling (
generation_config.json):temperature: 1.0,top_p: 0.95,top_k: 20. - Multimodal:
image_token_id 248056, architectureQwen3_5ForConditionalGeneration.
Evaluation (informal, single-GPU local runs)
| Benchmark | Setting | Result |
|---|---|---|
| GPQA Diamond (mirror, 198 q) | lm-eval 0.4.13, loglikelihood | 43.9% |
| GPQA Diamond (CoT gate, 10 q) | generative, temp 0.6 | 9/10 |
| GPQA Diamond (CoT gate, 10 q) | generative, temp 1.0 (server sampling) | 8/10 |
| Terminal-Bench 2.1 (89 tasks, pass@1 best-of) | harbor + terminus-2, 172k ctx | 59/89 (66.3%) — see below |
Terminal-Bench notes for reproducibility: Terminus-2 must be told the true context window via --ak model_info={"max_input_tokens":40000,"max_output_tokens":8192} — otherwise it assumes ~1M tokens, overflows a 49k server, and wedges in a summarization retry loop. With the fix, episodes self-trim and complete.
Terminal-Bench 2.1 — full 89-task suite (final, 2026-11-24)
Harbor + terminus-2 agent, vLLM 0.31.0 on a single RTX 5090, --max-model-len 172032, fp8 KV cache, TRITON_ATTN backend, --max-num-seqs 1, agent-timeout ×6, model_info={"max_input_tokens":180000,"max_output_tokens":8192}. Best attempt per task across all runs (40k/88k/160k/180k context tiers). Baseline "lottolabs" = btbtyler09/Qwen3.8-27B-GPTQ-4bit at reasoning-effort xhigh (their published 62/89).
Score: this model 59/89 (66.3%) vs lottolabs baseline 62/89 (69.7%). 74 tasks agree; ▲ 6 tasks pass only for this model (adaptive-rejection-sampler, financial-document-processor, large-scale-text-editing, mteb-retrieve, tune-mjcf, winning-avg-corewars); ▼ 9 tasks pass only for the baseline (db-wal-recovery, feal-linear-cryptanalysis, model-extraction-relu-logits, mteb-leaderboard, polyglot-rust-c, qemu-alpine-ssh, schemelike-metacircular-eval, train-fasttext, write-compressor). TMO = agent-timeout attempt, CONN = connection-refused during a power-outage window.
| # | Task | Ours | Lottolabs (out-tok) | Δ | Last attempt | Ctx | Last out-tok |
|---|---|---|---|---|---|---|---|
| 1 | adaptive-rejection-sampler | ✅ | ❌ 64,392 | ▲ | 2026-11-20 08-44-05 | 40000 | 138,330 |
| 2 | bn-fit-modify | ✅ | ✅ 25,259 | = | 2026-11-20 08-44-05 | 40000 | 14,692 |
| 3 | break-filter-js-from-html | ✅ | ✅ 59,179 | = | 2026-11-20 08-44-05 | 40000 | 59,075 |
| 4 | build-cython-ext | ✅ | ✅ 54,590 | = | 2026-11-19 22-15-35 | 40000 | 50,122 |
| 5 | build-pmars | ✅ | ✅ 36,550 | = | 2026-11-20 18-01-54 | 88000 | 15,412 |
| 6 | build-pov-ray | ❌ | ❌ 35,461 | = | 2026-11-20 18-01-54 | 88000 | 351,598 |
| 7 | caffe-cifar-10 | ✅ | ✅ 154,600 | = | 2026-11-20 18-01-54 | 88000 | 47,892 |
| 8 | cancel-async-tasks | ✅ | ✅ 56,362 | = | 2026-11-20 15-29-18 | 40000 | 17,286 |
| 9 | chess-best-move | ❌ | ❌ 80,207 | = | 2026-11-20 18-01-54 | 88000 | 80,651 |
| 10 | circuit-fibsqrt | ✅ | ✅ 262,507 | = | 2026-11-22 07-53-34 | 88000 | 159,992 |
| 11 | cobol-modernization | ✅ | ✅ 171,955 | = | 2026-11-20 08-44-05 | 40000 | 14,874 |
| 12 | code-from-image | ✅ | ✅ 57,905 | = | 2026-11-21 08-20-40 | 88000 | 8,232 |
| 13 | compile-compcert | ✅ | ✅ 153,768 | = | 2026-11-21 08-20-40 | 88000 | 29,496 |
| 14 | configure-git-webserver | ✅ | ✅ 22,840 | = | 2026-11-21 08-20-40 | 88000 | 11,369 |
| 15 | constraints-scheduling | ✅ | ✅ 16,559 | = | 2026-11-21 08-20-40 | 88000 | 10,690 |
| 16 | count-dataset-tokens | ✅ | ✅ 7,526 | = | 2026-11-21 08-20-40 | 88000 | 11,566 |
| 17 | crack-7z-hash | ✅ | ✅ 151,023 | = | 2026-11-19 22-15-35 | 40000 | 21,862 |
| 18 | custom-memory-heap-crash | ✅ | ✅ 114,593 | = | 2026-11-21 08-20-40 | 88000 | 99,017 |
| 19 | db-wal-recovery | ❌ | ✅ 93,897 | ▼ | 2026-11-22 07-53-34 | 88000 | 22,883 |
| 20 | distribution-search | ✅ | ✅ 26,983 | = | 2026-11-21 08-20-40 | 88000 | 37,425 |
| 21 | dna-assembly | ❌ | ❌ 283,766 | = | 2026-11-21 08-20-40 | 88000 | 36,959 |
| 22 | dna-insert | ❌ | ❌ 28,661 | = | 2026-11-21 08-20-40 | 88000 | 16,166 |
| 23 | extract-elf | ❌ | ❌ 38,435 | = | 2026-11-21 10-22-57 | 88000 | 17,634 |
| 24 | extract-moves-from-video | ❌ | ❌ 730,936 | = | 2026-11-20 18-01-54 | 88000 | 43,824 |
| 25 | feal-differential-cryptanalysis | ✅ | ✅ 69,122 | = | 2026-11-23 17-05-33 | 180000 | 222,208 |
| 26 | feal-linear-cryptanalysis | ❌ | ✅ 85,513 | ▼ | 2026-11-23 17-05-33 | 180000 | 363,557 TMO |
| 27 | filter-js-from-html | ❌ | ❌ 30,549 | = | 2026-11-21 10-22-57 | 88000 | 62,391 |
| 28 | financial-document-processor | ✅ | ❌ 19,054 | ▲ | 2026-11-22 07-53-34 | 88000 | 41,001 |
| 29 | fix-code-vulnerability | ✅ | ✅ 15,408 | = | 2026-11-21 11-30-48 | 88000 | 9,065 |
| 30 | fix-git | ✅ | ✅ 17,032 | = | 2026-11-21 11-30-48 | 88000 | 24,328 |
| 31 | fix-ocaml-gc | ✅ | ✅ 53,102 | = | 2026-11-21 10-22-57 | 88000 | 20,426 |
| 32 | gcode-to-text | ❌ | ❌ 399,397 | = | 2026-11-22 07-53-34 | 88000 | 2,453 |
| 33 | git-leak-recovery | ✅ | ✅ 2,604 | = | 2026-11-21 11-30-48 | 88000 | 7,786 |
| 34 | git-multibranch | ✅ | ✅ 18,981 | = | 2026-11-21 11-38-18 | 88000 | 26,313 |
| 35 | gpt2-codegolf | ❌ | ❌ 140,533 | = | 2026-11-20 18-01-54 | 88000 | 142,997 TMO |
| 36 | headless-terminal | ✅ | ✅ 81,531 | = | 2026-11-21 11-38-18 | 88000 | 14,169 |
| 37 | hf-model-inference | ✅ | ✅ 5,344 | = | 2026-11-21 11-38-18 | 88000 | 6,533 |
| 38 | install-windows-3.11 | ❌ | ❌ 382,206 | = | 2026-11-21 11-38-18 | 88000 | 67,529 |
| 39 | kv-store-grpc | ✅ | ✅ 8,099 | = | 2026-11-19 17-28-15 | ? | 10,678 |
| 40 | large-scale-text-editing | ✅ | ❌ 212,105 | ▲ | 2026-11-21 11-38-18 | 88000 | 94,871 |
| 41 | largest-eigenval | ✅ | ✅ 501,978 | = | 2026-11-21 11-38-18 | 88000 | 10,845 |
| 42 | llm-inference-batching-scheduler | ✅ | ✅ 110,788 | = | 2026-11-21 11-38-18 | 88000 | 32,439 |
| 43 | log-summary-date-ranges | ✅ | ✅ 6,756 | = | 2026-11-21 11-38-18 | 88000 | 9,464 |
| 44 | mailman | ✅ | ✅ 104,256 | = | 2026-11-19 22-15-35 | 40000 | 107,137 |
| 45 | make-doom-for-mips | ❌ | ❌ 760,249 | = | 2026-11-22 07-53-34 | 88000 | 266,223 TMO |
| 46 | make-mips-interpreter | ❌ | ❌ 396,825 | = | 2026-11-22 07-53-34 | 88000 | 473,158 TMO |
| 47 | mcmc-sampling-stan | ✅ | ✅ 28,444 | = | 2026-11-20 18-01-54 | 88000 | 23,845 |
| 48 | merge-diff-arc-agi-task | ✅ | ✅ 28,215 | = | 2026-11-21 15-18-36 | 88000 | 20,526 |
| 49 | model-extraction-relu-logits | ❌ | ✅ 135,466 | ▼ | 2026-11-21 15-18-36 | 88000 | 11,929 |
| 50 | modernize-scientific-stack | ✅ | ✅ 9,086 | = | 2026-11-21 15-18-36 | 88000 | 7,861 |
| 51 | mteb-leaderboard | ❌ | ✅ 62,334 | ▼ | 2026-11-21 15-18-36 | 88000 | 28,408 |
| 52 | mteb-retrieve | ✅ | ❌ 19,691 | ▲ | 2026-11-21 15-18-36 | 88000 | 16,103 |
| 53 | multi-source-data-merger | ✅ | ✅ 13,277 | = | 2026-11-21 15-18-36 | 88000 | 9,310 |
| 54 | nginx-request-logging | ✅ | ✅ 9,282 | = | 2026-11-21 15-18-36 | 88000 | 30,475 |
| 55 | openssl-selfsigned-cert | ✅ | ✅ 11,340 | = | 2026-11-21 15-18-36 | 88000 | 9,721 |
| 56 | overfull-hbox | ✅ | ✅ 57,898 | = | 2026-11-19 22-15-35 | 40000 | 33,961 |
| 57 | password-recovery | ✅ | ✅ 15,930 | = | 2026-11-21 15-18-36 | 88000 | 54,540 |
| 58 | path-tracing | ❌ | ❌ 899,372 | = | 2026-11-20 18-01-54 | 88000 | 120,933 TMO |
| 59 | path-tracing-reverse | ❌ | ❌ 1,112,548 | = | 2026-11-23 17-05-33 | 180000 | 264,621 TMO |
| 60 | polyglot-c-py | ✅ | ✅ 19,724 | = | 2026-11-21 17-19-45 | 88000 | 20,516 |
| 61 | polyglot-rust-c | ❌ | ✅ 156,473 | ▼ | 2026-11-23 17-05-33 | 180000 | 338,139 TMO |
| 62 | portfolio-optimization | ✅ | ✅ 30,917 | = | 2026-11-21 17-19-45 | 88000 | 6,013 |
| 63 | protein-assembly | ❌ | ❌ 94,442 | = | 2026-11-21 17-19-45 | 88000 | 35,620 |
| 64 | prove-plus-comm | ✅ | ✅ 3,391 | = | 2026-11-21 17-19-45 | 88000 | 21,099 |
| 65 | pypi-server | ✅ | ✅ 47,263 | = | 2026-11-19 17-28-15 | ? | 30,377 |
| 66 | pytorch-model-cli | ✅ | ✅ 85,866 | = | 2026-11-21 17-19-45 | 88000 | 13,165 |
| 67 | pytorch-model-recovery | ✅ | ✅ 35,193 | = | 2026-11-21 17-19-45 | 88000 | 16,812 |
| 68 | qemu-alpine-ssh | ❌ | ✅ 125,399 | ▼ | 2026-11-24 02-16-59 | 180000 | 56,555 |
| 69 | qemu-startup | ❌ | ❌ 141,471 | = | 2026-11-21 17-19-45 | 88000 | 20,628 |
| 70 | query-optimize | ❌ | ❌ 13,579 | = | 2026-11-21 17-19-45 | 88000 | 20,872 |
| 71 | raman-fitting | ❌ | ❌ 100,660 | = | 2026-11-21 17-19-45 | 88000 | 46,290 |
| 72 | regex-chess | ❌ | ❌ 64,000 | = | 2026-11-21 17-19-45 | 88000 | 585,931 |
| 73 | regex-log | ✅ | ✅ 63,972 | = | 2026-11-21 17-19-45 | 88000 | 52,616 |
| 74 | reshard-c4-data | ✅ | ✅ 53,577 | = | 2026-11-21 17-19-45 | 88000 | 17,179 |
| 75 | rstan-to-pystan | ✅ | ✅ 81,272 | = | 2026-11-21 17-19-45 | 88000 | 29,850 |
| 76 | sam-cell-seg | ✅ | ✅ 87,111 | = | 2026-11-22 07-53-34 | 88000 | 31,610 |
| 77 | sanitize-git-repo | ✅ | ✅ 15,141 | = | 2026-11-21 17-19-45 | 88000 | 17,885 |
| 78 | schemelike-metacircular-eval | ❌ | ✅ 485,246 | ▼ | 2026-11-24 02-16-59 | 180000 | 367,396 TMO |
| 79 | sparql-university | ✅ | ✅ 17,123 | = | 2026-11-21 17-19-45 | 88000 | 38,067 |
| 80 | sqlite-db-truncate | ✅ | ✅ 47,932 | = | 2026-11-22 07-53-34 | 88000 | 81,097 |
| 81 | sqlite-with-gcov | ✅ | ✅ 6,075 | = | 2026-11-19 22-15-35 | 40000 | 4,748 |
| 82 | torch-pipeline-parallelism | ❌ | ❌ 91,274 | = | 2026-11-21 17-19-45 | 88000 | 21,376 |
| 83 | torch-tensor-parallelism | ✅ | ✅ 63,098 | = | 2026-11-19 17-28-15 | ? | 19,198 |
| 84 | train-fasttext | ❌ | ✅ 76,335 | ▼ | 2026-11-22 21-58-22 | 160000 | 108,415 |
| 85 | tune-mjcf | ✅ | ❌ 223,404 | ▲ | 2026-11-21 17-19-45 | 88000 | 46,699 |
| 86 | video-processing | ❌ | ❌ 133,040 | = | 2026-11-21 17-19-45 | 88000 | 94,046 |
| 87 | vulnerable-secret | ✅ | ✅ 10,129 | = | 2026-11-21 17-19-45 | 88000 | 26,371 |
| 88 | winning-avg-corewars | ✅ | ❌ 1,381,455 | ▲ | 2026-11-21 17-19-45 | 88000 | 292,264 |
| 89 | write-compressor | ❌ | ✅ 194,790 | ▼ | 2026-11-24 02-16-59 | 180000 | 307,037 TMO |
Output-length comparison on agreeing tasks (last attempt per task)
| Agreement set | n | Ours out-tok | Lottolabs out-tok | out ratio | Ours in-tok | Lottolabs in-tok | in ratio |
|---|---|---|---|---|---|---|---|
| Both pass | 53 | 1,727,235 | 3,208,456 | 0.54× | 19,372,951 | 201,738,333 | 0.10× |
| Both fail | 21 | 2,771,900 | 5,957,611 | 0.47× | 53,931,941 | 283,243,002 | 0.19× |
| All 74 agreeing tasks | 74 | 4,499,135 | 9,166,067 | 0.49× | 73,304,892 | 484,981,335 | 0.15× |
On tasks where both models reach the same verdict, this model needs roughly half the output tokens (0.49×) and ~15% of the input tokens of the GPTQ baseline — a systematic efficiency property of the merged+NVFP4 checkpoint, not a pass/fail artifact.
Intent
Qwen3.81 combines DaisyRose-27B's agentic/terminal strengths with sabi-noema's hybrid-attention reasoning base in one open 27B checkpoint, published in both bf16 and NVFP4. Analysis scripts (analyze_deltas.py, merge_models.py, quantize_nvfp4.py) replicate every step above with no additional tooling beyond torch, safetensors and llmcompressor.