Skip to content

feat(models): add Qwen3.8-27B PARO with DFlash2 speculation - #461

Merged
spokvulcan merged 1 commit into
mainfrom
qwen38-27b-paro
Sep 3, 2026
Merged

spokvulcan merged 1 commit into
mainfrom
qwen38-27b-paro

Conversation

@spokvulcan

Copy link
Copy Markdown
Owner

Adds z-lab/Qwen3.8-27B-PARO to the agent catalog as qwen3.8-27b-paro, loaded text-only so the DFlash2 draft pairs with it. The same Text-Only Override goes on the existing qwen3.8-27b entry, whose vision claim was aspirational (the legacy layout already loaded the text class and dropped images). Vision on these checkpoints comes back with map #457 (#458, #459).

What happened along the way: the first DFlash2 run on PARO decoded garbage. The same-input QMM stacking lever accepted any QuantizedLinear subclass, so it folded PARO's RotateQuantizedLinear gate/up and q/k/v into plain stacked layers and dropped the rotations. The vendor guard is now an exact class check (with a test), and the app refuses a draft whose target depth does not match the loaded model. ADR-0058 has the addendum.

Numbers on PARO (M-series, quick bench, greedy identity MATCH):

arm tok/s
AR 21.1
DFlash2 bs8 30.8 (acceptance 53%), bs5 32.7 (62%)

Also in here: scripts/graft_mtp_head.py handles index-less single-file checkpoints, so the base MTP head grafts onto PARO. The drafter loads and pairs on the grafted checkpoint, but the HTTP engagement predictor keeps the MTP arm off on thinking-default templates (pre-existing, filed as #460). The disk footprint is about 38 GB with the Prepared Checkpoint, noted in the entry description.

Vendor: spokvulcan/mlx-swift-lm VENDOR_SHA (same-input stacking exact-class guard + test).

Manual check for the owner:

  • Models page shows "Qwen3.8-27B PARO" beside Qwen3.8-27B; downloading it pulls the DFlash2 draft too.
  • Chat with the PARO model on a text prompt streams coherent output and the log shows DFlash2 same-input stacking: target=0 draft=10 blocks.
  • Image attachments are refused for both 27B entries (text-only).

Adds z-lab/Qwen3.8-27B-PARO to the agent catalog, loaded text-only via
a new Text-Only Override so the DFlash2 draft pairs with it; the same
override goes on the uniform qwen3.8-27b entry. Vision for these
checkpoints returns with map #457.

The draft's first run on PARO decoded garbage: same-input stacking
folded RotateQuantizedLinear into plain QuantizedLinear and dropped the
rotations. The vendor guard is now exact-class (fork ddc1f66), and the
app refuses a draft whose target depth does not match the loaded model,
checked from config.json before the weights load. ADR-0058 addendum.

scripts/graft_mtp_head.py handles index-less single-file checkpoints so
the base MTP head grafts onto PARO.
@spokvulcan
spokvulcan merged commit d33674f into main Sep 3, 2026
4 of 5 checks passed
spokvulcan pushed a commit that referenced this pull request Sep 5, 2026
🤖 I have created a release *beep* *boop*
---


## [1.12.0](v1.11.1...v1.12.0) (2026-09-05)

### Highlights

DFlash2 speculative decoding on Qwen3.8-27B is a lot faster. On an M3 Max with the 4-bit model, decode went from 28 to 49 tok/s on a travel blog post, from 55 to 71 tok/s on code and from 77 to 98 tok/s on math word problems, against 23 tok/s without speculation. The round that drafts eight tokens and verifies them dropped from 68 ms to 54 ms: a leaner 4-bit matmul kernel for the eight-row verify pass, a dozen small kernels fused into single launches in the Qwen3.5 layers and the drafter, a fused attention route for the verify block, and a drafter head that scores only the part of the vocabulary that ever comes up. The generated text is unchanged on the prompts we track; the target model still decides every token.

One fix matters outside the benchmark: the app now sets `MLX_DYNSLICE_INPLACE` at launch, so speculative rows are written into the KV cache in place. Before, only the benchmark runner set it, and production copied the whole cache store on every such write, a cost that grew with the context.

For anyone building from source, `scripts/dflash2-bench.sh` runs a single DFlash2 pass on a frozen prompt in about 40 seconds after the build, with an optional token-for-token check against plain decoding; the prompts and the measured ledger live under `benchmarks/dflash2/`. The model catalog also gains Qwen3.8-27B in its PARO quantization with the same speculation (#461). The full list of changes follows.


### Features

* **bench:** DFlash2 acceptance research + prompt-hash, variant and prompt-file arms ([1d03aba](1d03aba))
* **bench:** DFlash2 fast bench, fixtures and ledger ([606e3db](606e3db))
* **models:** add Qwen3.8-27B PARO with DFlash2 speculation ([#461](#461)) ([d33674f](d33674f))


### Bug Fixes

* **app:** set MLX_DYNSLICE_INPLACE at launch ([98a1cda](98a1cda))


### Code Refactoring

* **agent:** one Raw Generation Start over the Model Session seam ([#456](#456)) ([4f345ee](4f345ee))
* **dflash2:** reduce the drafter to its fast path and move the pin (ADR-0061) ([#464](#464)) ([3cb640a](3cb640a))
* **server:** make Conversation Render a real module ([#453](#453)) ([2321017](2321017))
* **server:** one Completion Delivery script behind a Delivery Sink seam ([#455](#455)) ([75a9428](75a9428))


### Documentation

* add model parameters reference ([#462](#462)) ([9139e11](9139e11))
* point CLAUDE.md at the pr-title workflow's real path (fixes Docs Check) ([b0d6749](b0d6749))
* record the 2026-09-05 DFlash2 loop landing in the fork docs ([fda975b](fda975b))


### Miscellaneous Chores

* **deps:** move the mlx-swift pins to 6058402 and the vendor to 0647cf9 ([a4bff95](a4bff95))
* **deps:** re-pin mlx-swift-lm to upstream e3d4a20 ([d37fc13](d37fc13))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant