Repository navigation
fix: preserve prefixes when checkpoint cannot fit - #74
sanjaibalajee wants to merge 1 commit into
Conversation
…DA, expert-aligned prompt tiles - Checkpoint copies and snapshot loads check again before every eviction, and a resumed prompt stops holding the stored prefix it copied; the memory tests pin host RAM, so they pass on any Mac (#74). - #70's 64 GB M5 Pro measurements go into the README and recipes, labelled as 0.3.5.1. - On M1-M4, Flash Next's prompt expert gathers take row tiles that never straddle experts (the scheduling idea of ml-explore/mlx#4567), same bits. - A reader for ModelOpt and compressed-tensors NVFP4, FP8 and MXFP8 weights, W4A16 and W8A16 lane matmuls with exact weights, and Qwen3.8-27B on ModelOpt NVFP4 checkpoints. Fixes #70.
|
Thanks @sanjaibalajee. This is in 0.3.6.3 with your commit under your name (af9639f8, with your GitHub noreply address). Three changes of ours sit on top, in f9255598. The first pins host RAM in the tests you saw fail on The second runs your check before every eviction instead of once, against measured memory, so an eviction that The third came from running yours on a growing conversation. The scheduler held the prefix a turn resumed from You were right that this doesn't size the window; #71's fix is separate. Thanks for reading that loop closely |
…DA, expert-aligned prompt tiles - Checkpoint copies and snapshot loads check again before every eviction, and a resumed prompt stops holding the stored prefix it copied; the memory tests pin host RAM, so they pass on any Mac (#74). - #70's 64 GB M5 Pro measurements go into the README and recipes, labelled as 0.3.5.1. - On M1-M4, Flash Next's prompt expert gathers take row tiles that never straddle experts (the scheduling idea of ml-explore/mlx#4567), same bits. - A reader for ModelOpt and compressed-tensors NVFP4, FP8 and MXFP8 weights, W4A16 and W8A16 lane matmuls with exact weights, and Qwen3.8-27B on ModelOpt NVFP4 checkpoints. Fixes #70.
Summary
Validation
pytest tests/test_prompt_memory.py tests/test_resume_memory.py tests/test_checkpoint_memory.py: 46 passed.Refs #71 (the checkpoint-admission safeguard; this does not claim to resolve the full context-sizing issue).