Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9a846eb
Provider: recognize the qwen4_moe model types on the native Qwen4 paths
jonathan308 Dec 4, 2026
260b25d
Provider: qualify Qwen4-35B-A3B on the native Qwen4 paths
jonathan308 Dec 4, 2026
9d8831f
Provider: Qwen4-35B-A3B reasoning efforts
jonathan308 Dec 4, 2026
ec9f6cc
Provider: serve Qwen4-35B-A3B from Qwen's compat tokenizer and template
jonathan308 Dec 4, 2026
b7695ee
Provider: n-gram table residency setting for native Qwen4 models
jonathan308 Dec 4, 2026
ac90933
Docs: Qwen4-35B-A3B support reference and n-gram residency
jonathan308 Dec 4, 2026
9c4ba53
Provider: Qwen4-35B-A3B clips take the Qwen video caps
jonathan308 Dec 4, 2026
940aac3
SDK pin: qwen4-a3b/qual for Qwen4-35B-A3B
jonathan308 Dec 4, 2026
628ca73
Provider: Qwen4 n-gram residency follows the SDK's named switch
jonathan308 Dec 4, 2026
7a804bc
Provider: opt-in native encoder for Qwen4-35B-A3B prompts
jonathan308 Dec 4, 2026
b26d92d
Provider: native Qwen4 images reserve their own KV
jonathan308 Dec 4, 2026
2ab2d0a
Docs: Qwen4-35B-A3B video caps, image reservation, encoder and new sw…
jonathan308 Dec 4, 2026
0e21d19
Docs: inference architecture for the Qwen4-35B-A3B video caps, image …
jonathan308 Dec 4, 2026
759c2b1
SDK pin: qwen4-a3b/qual 56ac31fc
jonathan308 Dec 4, 2026
07e30dd
Qwen4: install the target's default batching when no explicit choice …
jonathan308 Dec 4, 2026
2825acc
Benchmark: optional solo references for runtime concurrency rows
jonathan308 Dec 4, 2026
2a3819d
Benchmark: optional long first row for runtime concurrency
jonathan308 Dec 4, 2026
3fe11f9
Benchmark: long-row records per row
jonathan308 Dec 4, 2026
990f427
SDK pin: qwen4-a3b/integration 1f60dec2
jonathan308 Dec 4, 2026
2f3e8f0
Provider: Qwen4-35B-A3B prompts from the native encoder by default
jonathan308 Dec 4, 2026
b0b6ce1
Tests: mark the throwing request builder in Qwen4MoEVideoBudgetTests
jonathan308 Dec 4, 2026
08e5424
Provider: the native Qwen4 encoder reuses a scope's repeated segments
jonathan308 Dec 4, 2026
80b9b45
Pin mlx-swift-lm to Qwen4 integration 1099889f
jonathan308 Dec 4, 2026
d5cedac
Pin mlx-swift-lm to Qwen4 integration aa6e3672
jonathan308 Dec 4, 2026
f08d69e
Provider: forward the reviewed Qwen4 kill switches to the service
jonathan308 Dec 4, 2026
c56d836
Docs: native Qwen4 kill switches in the service
jonathan308 Dec 4, 2026
01d8222
Pin mlx-swift-lm to Qwen4 integration 30f1eca7
jonathan308 Dec 4, 2026
26da99a
Provider: add the newer SDK Qwen4 switches to the reviewed kill-switc…
jonathan308 Dec 4, 2026
e83c873
Pin mlx-swift-lm to main 64a6f34f (Qwen4-35B-A3B #584 + #586) and ali…
GumbiiDigital Dec 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.d/qwen4-35b-a3b-video-budget.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Qwen4-35B-A3B video budget

- `qwen4-35b-a3b` clips take the Qwen 3.5-family video caps (32 frames a clip, 4,096 visual tokens a request) instead of the checkpoint's own sampling (up to 768 frames and 12,288 visual tokens a clip). The SDK's `Qwen4ExpProcessor` reads them; `DARKBLOOM_QWEN_VIDEO_MAX_FRAMES` / `_MAX_TOKENS` tune them and `DARKBLOOM_QWEN4_VIDEO_BUDGET=0` keeps the checkpoint's sampling. The LaunchAgent forwards the new switch.
7 changes: 7 additions & 0 deletions changelog.d/qwen4-35b-a3b.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
### Qwen4-35B-A3B on the native Qwen4 stack

- `qwen4-35b-a3b` (served artifact `EigenLabs/Qwen4-35B-A3B-MLX-4bit-mtp`, alias `mlx-community/Qwen4-35B-A3B-oQ4e-mtp`) serves on one Mac like Flash-Next: paged KV, complete SSD prefix checkpoints, embedded MTP with exact acceptance, continuous batching, tools with native call framing, images and video. Its native 1,048,576-token context is advertised with no cap; omitted sampling knobs take its `generation_config.json` (temperature 1.0, top-p 0.95, top-k 20).
- Efforts map to its template's `low`, `high` and `xhigh` while thinking (`medium` renders `high`, `max` renders `xhigh`) and to `off` with thinking off, for `qwen4_moe` and `qwen4_moe_text`; `reasoning_effort_vectors.json` carries the cases.
- Media is served only for the qualified IDs with the published geometry (text 2,048 x 40 layers, `qwen4_moe_vision` tower 27 x 1,152, out 2,048).
- The model is served from Qwen's compat `tokenizer.json` and `chat_template.jinja`; a snapshot without them is skipped at discovery and refused at load with a clear error. Its `Qwen4Tokenizer` class name loads as byte-level BPE.
- The n-gram table stays in memory by default (35.2 GB of weights quoted); `[backend] qwen4_ngram_residency_by_model = { "qwen4-35b-a3b" = "ssd" }` or `DARKBLOOM_QWEN4_PLE_SSD_OFFLOAD=1` reads its rows from SSD (22.4 GB of weights quoted plus the loading allowance). The LaunchAgent now forwards `DARKBLOOM_QWEN4_PLE_SSD_OFFLOAD`; a value `provider.toml` projected is never written into the service plist.
3 changes: 3 additions & 0 deletions changelog.d/qwen4-a3b-sdk-pin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### SDK pin for Qwen4-35B-A3B

- `libs/mlx-swift-lm` moves from `dev`'s `70183a70` to `Layr-Labs/mlx-swift-lm` `main` `64a6f34f` (PRs `#584` and `#586`, atop Muse Glimmer `#579`): `qwen4_moe` / `qwen4_moe_text` native model registration, the A3B kernels (expert-indexed QMV at 256 experts, hyper-connection projection, GQA 8 sparse attention, prefill tiles and strided KV), bit-exact decode/verify/prefill fusions, multi-row batching (paged multi-row vector-SDPA, rows-adjacent MoE/QSA folds, non-concatenated FP32 GDN row states, token-minor HC multi-row, multi-row router GEMV), multi-row MTP cohorts with acceptance break-even gating and prompt-mirror rollback/drop fixes, the n-gram table's memory/SSD residency with GPU shard gather (`memory` default for `qwen4_moe*`, `ssd` default for `qwen4_exp*`), the native `Qwen4ChatEncoder`, the reserved-token mask in the `qwen4_moe` heads (`DARKBLOOM_QWEN4_RESERVED_TOKEN_MASK=0` turns it off), `Qwen4ExpProcessor`'s video caps and per-image token counts, and the Responses API's `text.format` (`DARKBLOOM_RESPONSES_TEXT_FORMAT=0` ignores it). Flash-Next keeps its kernels and outputs. Target provider release: `0.10.23`.
3 changes: 3 additions & 0 deletions changelog.d/qwen4-encoder-token-cache.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Native Qwen4 encoder reuses repeated segments

- The native Qwen4-35B-A3B encoder reuses the token IDs of long segments (message contents, tool schemas, tool results) it tokenized before in the same prompt-cache scope, so a re-sent conversation is not tokenized again (a 72K-token prompt took about 120 ms); prompts are unchanged. `DARKBLOOM_QWEN4_ENCODER_TOKEN_CACHE=0` turns it off; the LaunchAgent forwards it.
3 changes: 3 additions & 0 deletions changelog.d/qwen4-image-kv-reservation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Native Qwen4 images reserve their own KV

- A native Qwen4 media request's KV reservation charges each inline image the visual tokens the loaded processor's resize gives it (plus its two delimiters) instead of a flat 1,024: a Qwen4-35B-A3B image may render up to 16,384 tokens (3000x2000: 5,828). An image whose size can't be read keeps the flat charge; `DARKBLOOM_QWEN4_IMAGE_GEOMETRY_RESERVATION=0` keeps it for every request, and the LaunchAgent forwards it.
5 changes: 5 additions & 0 deletions changelog.d/qwen4-kill-switch-passthrough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Native Qwen4 kill switches reach the installed service

- The LaunchAgent now forwards the reviewed native Qwen4 kill switches (`Qwen4KillSwitches.all`: the multirow, MTP, decode, verify, prefill, n-gram table and logits switches, the five per-model MTP defaults and `DARKBLOOM_QWEN4_BATCHED_QSA`), only at a value that restores the earlier path (`0`, or `0`/`false`/`no`/`off` where the SDK reads those). Diagnostics such as `DARKBLOOM_QWEN4_MTP_ROUND_LOG`, non-exact opt-ins such as `DARKBLOOM_QWEN4_QSA_NAX` and values that turn a path on are not forwarded.
- A kernel or fusion kill switch at its restoring value or default no longer drops reviewed serving profiles; the switches that change how many rows batch or speculate (`DARKBLOOM_QWEN4_BATCHED_QSA`, `_MULTIROW`, `_COMPANY_INVARIANT_PREFILL`, `_MTP_COHORTS`, `_MTP_ROW_WIDTHS`) still do.
- Thirteen more switches join the list: the multirow GDN step, MoE, QSA and QMV folds, `DARKBLOOM_QWEN4_INDEX_ROW_BATCH`, `DARKBLOOM_QWEN4_HC_WIDE_SPLIT`, `DARKBLOOM_QWEN4_GDN_PACKED`, the capacity switches `DARKBLOOM_QWEN4_WIDE_PREFILL`, `DARKBLOOM_QWEN4_MTP_CHAINED_BASELINE` and `DARKBLOOM_CBV2_MTP_CHAINED_PROBE`, and three whose `1` brings back a removed rule (`DARKBLOOM_QWEN4_MTP_D3_BUMP`, `DARKBLOOM_QWEN4_MTP_COPY_ROUNDS_AS_SAMPLES`, `DARKBLOOM_QWEN_GDN_FROZEN_TREE_WALK`), forwarded only at `1`/`true`/`yes`/`on`.
3 changes: 3 additions & 0 deletions changelog.d/qwen4-native-encoder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Native Qwen4-35B-A3B prompt encoder

- `qwen4_moe` prompts (text, media and counts) now come from the SDK's `Qwen4ChatEncoder`, a port of the model's `encoding_qwen4.py`, instead of the compat `chat_template.jinja`: each segment is tokenized on its own, message data never becomes control tokens, and tools and earlier calls keep the request's member order. `DARKBLOOM_QWEN4_NATIVE_ENCODER=0` restores the template route; the LaunchAgent forwards it. Token IDs are as exact as the resolved BPE (swift-transformers 1.3.3: 568 of the 672 golden cases; 1.4.0's Tokenizers: all), and closer to the reference than the template route in every measured case.
3 changes: 3 additions & 0 deletions changelog.d/qwen4-ngram-residency-switch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Qwen4 n-gram residency: the SDK's named switch

- `DARKBLOOM_QWEN4_PLE_RESIDENCY` (`memory` or `ssd`), which the SDK resolves before `DARKBLOOM_QWEN4_PLE_SSD_OFFLOAD`, is an operator's override of `qwen4_ngram_residency_by_model` and is forwarded by the LaunchAgent. A loaded native Qwen4 model logs the n-gram residency it reports beside the one its memory was quoted for.
12 changes: 9 additions & 3 deletions docs/architecture/inference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Provider inference engine

> Last updated: 2026-12-03
> Last updated: 2026-12-04

How a chat-completion request is served inside the `darkbloom` provider
process: one in-process engine (`mlx-swift-lm`
Expand Down Expand Up @@ -5946,7 +5946,9 @@ requests 1 %), so `auto` requests, which return calls as generated, are left as
does (`QwenVL.positionVideoGrids`). Per-model caps
(`provider-swift/Sources/ProviderCore/Inference/Vision/MediaIngest+VideoBudget.swift`):
the four Qwen builds (`EigenLabs/Qwen3.8-27B-4bit-mtp`, `Qwen3.5-9B`,
`qwen3.5-35b-a3b`, `qwen3.6-35b-a3b-vl-mtp-mxfp8`) sample up to 32 frames a clip,
`qwen3.5-35b-a3b`, `qwen3.6-35b-a3b-vl-mtp-mxfp8`) and Qwen4-35B-A3B's IDs (whose
`Qwen4ExpProcessor` reads `processing.video`; `DARKBLOOM_QWEN4_VIDEO_BUDGET=0` keeps its
checkpoint's sampling) sample up to 32 frames a clip,
and a request's clips share 4,096 visual tokens (one per 32×32 px of a frame pair;
no frame above a still image's 1,280). `DARKBLOOM_QWEN_VIDEO_MAX_FRAMES` (1–64) and
`DARKBLOOM_QWEN_VIDEO_MAX_TOKENS` (256–16,384) replace them. Other Qwen3VL-processor
Expand All @@ -5965,7 +5967,10 @@ requests 1 %), so `auto` requests, which return calls as generated, are left as
request's decode memory and its KV (1,024 tokens per image; a Qwen request
past its image budget at most the budget's 16,384, or 256 an image once an
override above 64 images floors the share, plus a quarter,
`projectedImageTokens`) before any decode. A reservation that doesn't fit is refused as a retryable 503 with
`projectedImageTokens`; a native Qwen4 image is charged its own visual tokens
from its header size through the loaded processor's resize plus two delimiters,
`Qwen4ImageReservation`, `DARKBLOOM_QWEN4_IMAGE_GEOMETRY_RESERVATION=0` restoring
the flat charge) before any decode. A reservation that doesn't fit is refused as a retryable 503 with
the reason `media_memory_unavailable`, as MiMo's media reservation is, so
the coordinator sends the request elsewhere without a capacity strike or a
budget clamp.
Expand Down Expand Up @@ -6024,6 +6029,7 @@ records tiny-model correctness and remaining release gates.
| `qwen3_5` | Dense Qwen 3.5/3.8, recurrent state | Embedded MTP head; complete streamed SSD checkpoints on native contiguous or segmented paged KV; explicit paging requires observed native types; resident bank is opt-in |
| `qwen3_5_moe` | Qwen 3.5/3.6 MoE, recurrent state | Same complete-checkpoint and segmented-native paging gates as dense Qwen |
| `qwen3_vl_moe` | Qwen3-VL MoE wrapper | Served via CBv2 adapter + vision prefill; paged KV supports its positioned wrapper attention. Prefix reuse, compiled decode, packed prefill and MTP capabilities remain disabled. |
| `qwen4_moe`, `qwen4_moe_text` | Qwen4-35B-A3B | The native Qwen4 stack (as `qwen4_exp`) with its own media geometry, effort levels, prompts from the SDK's segment-wise `Qwen4ChatEncoder` through the tokenizer bridge (`LocalTokenizerLoader`; `DARKBLOOM_QWEN4_NATIVE_ENCODER=0` restores the compat template), reserved-token mask and resident-by-default n-gram table (a loaded model logs its residency against its quote, `ModelContainerLoading`). The SDK's kill switches reach an installed service at their restoring value; kernel switches keep reviewed serving profiles, capacity switches drop them ([kill switches](../reference/configuration.md#native-qwen4-kill-switches-in-the-service)). Identity, quotes and limits are in the [support reference](../reference/qwen4-35b-a3b-support.md) |
| `qwen4_exp`, `qwen4_exp_text` | Native Flash-Next candidate | Native QSA/GDN/HC/MoE with SSD PLE, retained embedded MTP, qualified image/video processing and identity-bound complete prefix state. Exact identity, capability limits and qualification are in the [support reference](../reference/qwen4-next-support.md) |
| `inkling2_loop` | Inkling 2 Mini | Native looped target (`Inkling2Model`, `Inkling2VLM`) on paged KV only, with a 48-slot cache, still-image input, Transformers-filter template, effort table, later system messages rendered in place as user turns when `DARKBLOOM_INKLING_LATER_SYSTEM_AS_USER=1` (`Inkling2PromptContract.normalizeSystemMessages`; off by default), its own output channels (`Inkling2OutputChannels`) and a separate DSpark drafter; see the [provider contract reference](../reference/inkling2-mini-support.md) |
| `nemotron_h` | Nemotron 3.5 Lightning | Advertisement is limited to `EngineV2SupportedModels.isNemotron35ListingModelID`, not every checkpoint sharing this type. Native Mamba/MoE/attention target; `nemotron35LightningModelID` is target-only and `nemotron35LightningMTPModelID` retains the embedded head. Listing eligibility is not registry publication or performance qualification |
Expand Down
3 changes: 2 additions & 1 deletion docs/architecture/prefix-cache.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# KV cache layouts and prefix caching

> Last updated: 2026-12-03
> Last updated: 2026-12-04

How the provider lays out a request's KV cache, how it decides whether a
previously computed prefix can be reused, and where reusable state lives:
Expand Down Expand Up @@ -68,6 +68,7 @@ for these exact fleet/candidate identities, not family names, aliases or substri
- `prism-ml/Ternary-Bonsai-2-9B-mlx-2bit` (separate 9B policy)
- `EigenLabs/Ternary-Bonsai-2-9B-MLX-2bit` (same separate 9B policy)
- The [owned Flash-Next candidate](../reference/qwen4-next-support.md#identity-and-serving-policy)
- The [Qwen4-35B-A3B identities](../reference/qwen4-35b-a3b-support.md#identity-and-serving-policy) (`Qwen4ModelIdentity.Build.qwen4MoE35BA3B`), with the same complete Qwen4 checkpoints
- The served [Inkling 2 Mini identities](../reference/inkling2-mini-support.md#identity-and-serving-policy) (`Inkling2ModelIdentity.servedModelIDs`)

Every other ID, including unlisted Qwen artifacts, Gemma 8-bit and unknown
Expand Down
9 changes: 7 additions & 2 deletions docs/developer/serving-performance-qualification.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Qualify a serving performance profile

> Last updated: 2026-11-24
> Last updated: 2026-12-04

This procedure prepares an exact model/runtime/hardware profile for code review.
It never installs a profile or changes a running provider. The deadline catalog
Expand Down Expand Up @@ -76,7 +76,12 @@ collects new GPU measurements or changes runtime behavior.
production factory, validating its owned root and exact ephemeral-key setting
before cache construction. Only that validated pair is exempted for fixture
resolution; ordinary production callers receive no exemption from environment
settings alone. All other runtime overrides remain ineligible.
settings alone. All other runtime overrides remain ineligible, except the
reviewed native Qwen4 kernel and fusion kill switches at their restoring
value or default (`Qwen4KillSwitches.keepsServingProfile`, listed in the
[configuration reference](../reference/configuration.md#native-qwen4-kill-switches-in-the-service)):
they restore launches that produce the same tokens at the same widths. The
switches that change how many rows batch or speculate stay ineligible.
- Include SSD prefix staging in any future cooled-profile qualification. A
request's own staging advances the whole-Mac activity epoch and invalidates
its earlier quiescence proof; current admission then uses ordinary rates.
Expand Down
18 changes: 16 additions & 2 deletions docs/developer/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,19 @@ of an ordinary serving default or of full-model performance.

### Inkling 2 Mini contract tests

Qwen4-35B-A3B's template checks (`Qwen4MoETemplateParityTests`,
`Qwen4CompatTokenizerTests`, `Qwen4MoEFootprintTests`) need no weights or GPU.
They read the served compat template pinned in
`provider-swift/Tests/ProviderCoreTests/Fixtures/Qwen4MoE/` (provenance and
hashes in its README) and its `template_parity_vectors.json`, which
`scripts/generate-qwen4-moe-template-vectors.py` writes from Qwen's reference
encoder (`--encoding`, pinned by hash) and, with `--template`, checks against
Jinja2:

```bash
swift test --skip-build --filter 'Qwen4MoE|Qwen4CompatTokenizer|Qwen4NgramResidency'
```

`Inkling2PromptContractTests`, `Inkling2OutputChannelsTests`,
`Inkling2ToolStreamRouterTests` and `Inkling2DSparkArtifactTests` need no weights
or GPU. They read the unmodified upstream template, configuration and tokenizer
Expand Down Expand Up @@ -1710,12 +1723,13 @@ Super's refusal of two efforts that differ through `SuperHTTPErrors` and
an unknown `reasoning.effort`, through the real application (it needs Metal,
so it runs in CI).

`fixtures/prompt-contract/v1/reasoning_effort_vectors.json` (446 cases) is
`fixtures/prompt-contract/v1/reasoning_effort_vectors.json` (516 cases) is
also this repository's, and it is the contract with the coordinator: every
family's reading of every effort, in both fields and other spellings (a
non-ASCII `HİGH` among them), with the field an unknown effort is refused in,
and cases for every type that reasons. It also lists the sets the table keeps:
the types that reason, the Qwen 3.5 template family's, the types whose effort
the types that reason, the Qwen 3.5 template family's, Qwen4-35B-A3B's
template types, the types whose effort
sets a thinking switch, and the concrete Qwen 3.8 builds. It is generated,
never edited by hand: `scripts/generate-reasoning-effort-vectors.py` restates
the tables in `ReasoningEffort.swift` and writes it, and running the script
Expand Down
3 changes: 2 additions & 1 deletion docs/provider/cli-reference.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Provider CLI reference

> Last updated: 2026-12-03
> Last updated: 2026-12-04

Reference for the `darkbloom` command-line tool: every subcommand and flag, the
files and identifiers it creates, the `provider.toml` keys it reads with their
Expand Down Expand Up @@ -4351,6 +4351,7 @@ override `provider.toml` for one process, are in
| `[backend] engine_v2_kv_checkpoint_quantization_by_model."nvidia-nemotron-3.5-super"` | absent: `native` | Nemotron Super's managed slot gives its own entry a built-in `native` default, so a cache hit restores exactly what a cold prefill computes; the global `engine_v2_kv_checkpoint_quantization` does not apply to Super. An explicit entry or `DARKBLOOM_CBV2_CHECKPOINT_QUANTIZATION` selects a profile ([Super's durable checkpoints](../reference/ssd-kv-cache.md#complete-checkpoint-payload)). |
| `[backend] mtp_mode` | `auto` | Written by `darkbloom beta enable|disable mtp` |
| `[backend] mtp_acceptance` | unset (resolves to `exact` for every model since 0.10.18) | `exact` / `typical` draft acceptance for eligible sampled target-prefix requests. `typical` keeps a draft when the target's filtered probability for it is above `min(1, 0.2 * exp(-H))` (`H` = the target row's entropy in nats); sampled output is approximate, not distribution-exact. Greedy requests never change. Native MiMo remains exact and does not apply this preference. This setting does not enable disabled MTP or widen eligibility. Parsing ignores case and surrounding whitespace; unknown values warn and resolve to `exact` (`provider-swift/Sources/ProviderCore/Inference/MTP/MTPAcceptancePolicy.swift`, `resolve`) |
| `[backend] qwen4_ngram_residency_by_model` | `{}` (written only when set) | Qualified native Qwen4 model ID to `memory` or `ssd`: where its n-gram table lives. Projected into `DARKBLOOM_QWEN4_PLE_SSD_OFFLOAD` before models are scanned, so quotes and loads agree; an operator's value of that variable wins, and a map one value cannot honour keeps every default (`provider-swift/Sources/ProviderCore/Config/Qwen4NgramResidency.swift`, `projection`; [configuration](../reference/configuration.md#native-qwen4-n-gram-residency)) |
| `[backend] mtp_acceptance_by_model` | `{}` | Exact model ID to acceptance string; overrides `mtp_acceptance` for that model. An unknown override resolves to `exact`, not the global value. Same eligibility and native MiMo exclusion as above (`MTPAcceptancePolicy.resolve`) |
| `[backend.model_autopilot] enabled` | `false` | Experimental cached-inventory enrollment/consent, not activation; nonempty verified inventory is required, and only a live lease enables residency control (`provider-swift/Sources/ProviderCore/Autopilot/ModelAutopilotSettings.swift`) |
| `[backend.model_autopilot] min_dwell_seconds` | `1800` | Minimum residence before Autopilot replacement; runtime clamps to `60...86400` (`ModelAutopilotSettings.effectiveMinDwellSeconds`) |
Expand Down
7 changes: 6 additions & 1 deletion docs/provider/hardware-requirements.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Provider hardware requirements

> Last updated: 2026-11-18
> Last updated: 2026-12-04

Reference for what a Mac needs to run the `darkbloom` provider: the minimum
requirements, the chip families the provider distinguishes, which catalog
Expand Down Expand Up @@ -302,6 +302,11 @@ hardware serviceability or full-context operation.

The [Flash-Next candidate](../reference/qwen4-next-support.md)
keeps learned PLE tables SSD-backed even when request prefix caching is off.
[Qwen4-35B-A3B](../reference/qwen4-35b-a3b-support.md#n-gram-table-residency-and-memory)
keeps its 12,800,286,720-byte n-gram table resident by default (35,215,477,491
bytes of weights, quoted with the ordinary allowance) and takes SSD rows as an
option (22,415,190,771 bytes resident plus the native loading allowance); see
[n-gram residency](../reference/configuration.md#native-qwen4-n-gram-residency).
`Qwen4ExpMmapFootprint.excludedBytes` validates safetensor payload ranges before
subtracting offloaded bytes from the scanner's native-weight loading estimate
(`provider-swift/Sources/ProviderCore/Models/Qwen4ExpMmapFootprint.swift`).
Expand Down
Loading