Transformers patch runs a 180B model on a 32GB Mac

A proposed change to Hugging Face’s Transformers library ran the 180-billion-parameter Qwen3.8-Flash-Next on a MacBook with 32 GB of memory. Hugging Face engineer Tarek Ziadé made it fit by keeping the active experts (specialized groups of model weights) in memory and loading others from the SSD as needed. Ziadé says he used AI to write the code and chose which ideas to try and keep. In short runs, the model generated 13.9 tokens per second compared with 14.8 for Strata, another tool for running models locally; on a 4,000-token prompt, it processed the input at 228 tokens per second to Strata’s 220.