[GH-ISSUE #5022] [Engine] Qwen3.6: agree the scope of an opt-in mapped expert pack before any patch #2324

Open
opened 2026-11-04 01:58:26 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @zapabob on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5022

Area

[Engine] (speed, kernels, models, the server and API)

What do you want to do?

Please agree this scope before any pull request. This issue is only the scope.

Problem: the Qwen3.6 legacy path keeps the routed experts in one anonymous host arena. On a 16 GB card that arena is about 18.75 GiB (no host memory for the experts (19195 MiB) when it cannot be allocated). A machine that cannot take that arena does not start on the legacy path.

Proposed behavior. Opt-in. The default stays as it is.

  • Flag: --q36-expert-store legacy|mapped-pack
  • Default: legacy
  • mapped-pack uses a pack file beside the GGUF
  • If mapped-pack cannot map that file, it must not fall back into the full anonymous arena

One cold run on this PC (Windows 11, RTX 5060 Ti 16 GB, physical RAM 34224861184 bytes), file Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf:

  • expert_host_alloc 2799582 ms
  • pack file beside the GGUF: 20127612928 bytes
  • the log said 18.75 GiB mapped file-backed

One reuse on this PC. The pack was not rewritten:

  • expert_host_alloc 763500 ms
  • that open hashed the whole GGUF and CRCed the whole pack

Both numbers are one PC, one run. They are not a qualification. I am not asking to change the default from these runs. I am not saying mapped-pack is faster.

Left out of this proposal, because they were not measured here: a pin pool of 2×32 MiB, and a transfer scheduler. Startup-stage lines can be a later issue. They are not part of the patch this issue would allow.

Please say if the flag, the legacy default, and the no-fallback rule are in scope. I will not open a pull request from this issue until that is agreed.

Evidence on zapabob/Strata only: a91353fe (opt-in mapped pack, legacy stays the default), 0928d45c (the cold run), bc9de663 (the reuse).

I searched open and closed issues and pull requests for mapped-pack, q36epk, q36-expert-store, and expert arena. #4044 is STRATA_ARENA_MMAP creating experts.bin for a Q2_0 pack, then a later low-RAM start rejecting that file because the size does not match the layout. #640 is the older Linux mapped-arena switch. Neither is this flag.

What do you do today instead?

Stay on legacy. If the anonymous arena cannot be allocated, the process stops with no host memory for the experts. Upstream at c62d5e3a has no --q36-expert-store flag.

Originally created by @zapabob on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5022 ### Area [Engine] (speed, kernels, models, the server and API) ### What do you want to do? Please agree this scope before any pull request. This issue is only the scope. Problem: the Qwen3.6 legacy path keeps the routed experts in one anonymous host arena. On a 16 GB card that arena is about 18.75 GiB (`no host memory for the experts (19195 MiB)` when it cannot be allocated). A machine that cannot take that arena does not start on the legacy path. Proposed behavior. Opt-in. The default stays as it is. - Flag: `--q36-expert-store legacy|mapped-pack` - Default: `legacy` - `mapped-pack` uses a pack file beside the GGUF - If `mapped-pack` cannot map that file, it must not fall back into the full anonymous arena One cold run on this PC (Windows 11, RTX 5060 Ti 16 GB, physical RAM 34224861184 bytes), file `Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf`: - `expert_host_alloc` 2799582 ms - pack file beside the GGUF: 20127612928 bytes - the log said 18.75 GiB mapped file-backed One reuse on this PC. The pack was not rewritten: - `expert_host_alloc` 763500 ms - that open hashed the whole GGUF and CRCed the whole pack Both numbers are one PC, one run. They are not a qualification. I am not asking to change the default from these runs. I am not saying mapped-pack is faster. Left out of this proposal, because they were not measured here: a pin pool of 2×32 MiB, and a transfer scheduler. Startup-stage lines can be a later issue. They are not part of the patch this issue would allow. Please say if the flag, the `legacy` default, and the no-fallback rule are in scope. I will not open a pull request from this issue until that is agreed. Evidence on zapabob/Strata only: `a91353fe` (opt-in mapped pack, legacy stays the default), `0928d45c` (the cold run), `bc9de663` (the reuse). I searched open and closed issues and pull requests for mapped-pack, q36epk, q36-expert-store, and expert arena. #4044 is `STRATA_ARENA_MMAP` creating `experts.bin` for a Q2_0 pack, then a later low-RAM start rejecting that file because the size does not match the layout. #640 is the older Linux mapped-arena switch. Neither is this flag. ### What do you do today instead? Stay on `legacy`. If the anonymous arena cannot be allocated, the process stops with `no host memory for the experts`. Upstream at `c62d5e3a` has no `--q36-expert-store` flag.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2324
No description provided.