ds4 icon indicating copy to clipboard operation
ds4 copied to clipboard

proposal - run q4 on 128gb mac

Open badelon opened this issue 6 months ago • 2 comments

hello im testing mlx-lm custom deepseek fork deepseed is not using all experts so basically it dont load whole model in mac ram for instance i run https://huggingface.co/Thump604/DeepSeek-V4-Flash-MLX-Q3-mixed-gs128-affine which is 134gb total and when its loaded it use around 70gb in memory so i guess we can run ./download_model.sh q4-imatrix 165gb this model on mac with 128gb memory if model is somehow not one gguf file and not all layers are loaded in memory

badelon avatar May 17 '26 13:05 badelon

Lazy MLX load completed successfully on a 128GB Mac Studio. this is how can be achieved

badelon avatar May 17 '26 16:05 badelon

If you generate a couple thousands of tokens you end using all the experts. If not everything is in memory performances are slow. One could use perhaps MTP in order to do async loading of the experts that are likely going to be used but this requires actual work and numbers to understand if it is viable. Please reopen an issue if you have more actionable data.

antirez avatar May 18 '26 06:05 antirez