How to do disk offloading? #882
Replies: 1 comment
|
MLX doesn't have a live disk-backed KV cache today, and the reason is architectural rather than a missing feature: on Apple Silicon, CPU and GPU share unified memory, so there's no separate "host RAM" vs "device RAM" boundary the way CUDA-based frameworks have — which is normally what a disk-offload tier gets built underneath. What mlx-lm does give you for KV-cache memory pressure:
Combining |
Uh oh!
There was an error while loading. Please reload this page.
Assuming that a whole model can fit on memory, BUT that the KV cache generated is likely not able to fit along side it, is it possible to use the disk as a kind of backup to help add capacity?
All reactions