transformers
2dd2dd68 - experts_offload: optional host tier of quantized experts (host_cache_bytes, host_preload)

Commit
20 days ago
experts_offload: optional host tier of quantized experts (host_cache_bytes, host_preload) A pool of expert rows in pinned host memory between storage and the device cache: a device-cache miss costs one host-to-device copy instead of a storage read. For discrete GPUs with more host than device memory; on unified memory the device cache already is host RAM. Rows handed out stay reserved until the copy that reads them has run (next synchronization) or the prefetch is dropped. Qwen3.8-Flash-Next on an A10G (3-bit experts, 8 GiB device cache, experts on a network file system): decode 4.06 -> 5.8 tok/s with every expert preloaded.
Author
Parents
Loading