Skip to content

Support for SSD expert streaming is not being detected correctly. #112

Closed

Description

@patrick-sunderland

print("[SwiftLM] ⚠️ Model does not support SSD expert streaming (\(profile.modelType) is not MoE). Ignoring --stream-experts flag.")

It seems this gets (wrongly) triggered when running with:
--model Qwen/Qwen3.5-397B-A17B (or an 8-bit MXFP8 quantized version thereof) --stream-experts
Resulting in:

"Model does not support SSD expert streaming (qwen3_5_moe is not MoE). Ignoring --stream-experts flag."

Along with a subsequent:

"zsh: killed ./SwiftLM....." 

Running with the same --model and ./SwiftLM parameters works fine when using the latest release binary (SwiftLM b648).

Example:

./SwiftLM \
  --model "/Users/user/models/Qwen3.5-397B-A17B-mxfp8-grp32" \
  --port 5413 --stream-experts --thinking --ssd-prefetch

Activity

  1. solderzzc commented on Aug 5, 2026

    @solderzzc
    Member

    Thanks for the detailed report — the log line you pasted was the key. Root cause found, fix in #114.

    ModelProfiler decoded the routed-expert count from num_local_experts only, which is the Mixtral spelling. Qwen3/Qwen3.5 MoE use num_experts, and DeepSeek/GLM MoE use n_routed_experts. So your model profiled as dense, --stream-experts was dropped, lazyLoad was never set, and the full 397B was materialised into RAM — which is the zsh: killed. That is also why b648 worked: it predates the guard that added this check.

    The fix reads all three spellings (plus the nested text_config form), with a model_type fallback for families we haven't seen. Tests cover one case per spelling, including a qwen3_5_moe + num_experts config matching your model.

    Once it lands, could you confirm on your actual Qwen3.5-397B-A17B run? The OOM path itself is hardware-dependent and I could only verify the detection logic here.

  2. solderzzc commented on Aug 7, 2026

    @solderzzc
    Member

    Release b674 is out with this fix included — the first release since b648, so you can verify --stream-experts on your Qwen3.5-397B-A17B directly against the release binary. The detection now reads all three expert-count spellings plus nested text_config; if it still misdetects on your model, please reopen with the log lines (they now report exactly what was found).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions