transformers
4cacb570 - experts_offload: commit queued MPS work early; install only finished guessed reads

Commit
18 days ago
experts_offload: commit queued MPS work early; install only finished guessed reads PyTorch's MPS stream keeps small kernels in an uncommitted command buffer until the next synchronization, so after each layer's routing copy the GPU idled while the host encoded the next layer. Record an event (commits without waiting) after each decoder-layer sub-block and after the experts (mps_commit, on by default). Qwen3.8-Flash-Next decode +10% on an M5; OLMoE unchanged output. install_ahead now skips guessed reads that are still in flight instead of waiting for them before the next layer's launches.
Author
Parents
Loading