180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers
tarekziade
• • 43Qwen/Qwen3.8-Flash-Next-FP8, converted with
moe-expert-streaming's scripts/convert_fp8.py --bits 3,
to run on a 32 GB Mac by streaming experts from SSD.
dense/: everything except the routed experts and the n-gram table, BF16 (9.2 GB), plus config and tokenizerexperts-q3/: the 48 × 512 routed experts, 3-bit MLX affine, group size 64 (49 GB)ngram/: the n-gram embedding table, FP8 (48 GB, 4 row-aligned shards), read from disk row by rowfrom huggingface_hub import snapshot_download
from moe_expert_streaming import load_qwen38
path = snapshot_download("tarekziade/Qwen3.8-Flash-Next-expert-streaming")
model = load_qwen38(path, cache_gib=12, dense_bits=8)
See the blog post and huggingface/transformers#50717.
Licensed under the Qwen Community License 1.0 (see LICENSE), like the original model.