Skip to content

Feature/layer streaming#1440

Open
SashimiSaketoro wants to merge 7 commits into
ml-explore:mainfrom
SashimiSaketoro:feature/layer-streaming
Open

Feature/layer streaming#1440
SashimiSaketoro wants to merge 7 commits into
ml-explore:mainfrom
SashimiSaketoro:feature/layer-streaming

Conversation

@SashimiSaketoro

Copy link
Copy Markdown

No description provided.

SashimiSaketoro and others added 6 commits June 19, 2026 17:57
Wire asymmetric TurboQuant caches through generate_step, stream_generate,
BatchGenerator, and the HTTP server with CLI flags. Disable server request
batching when TurboQuant is active since those caches do not support merge.

Co-authored-by: Cursor <cursoragent@cursor.com>
Implement BatchAsymmetricTurboQuantCache with merge, extract, prepare,
and finalize support so mlx_lm.server batching works with TurboQuant KV
caches. Fix deepcopy for MLX dtype fields and restore batchability checks.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add rolling-window layer loader, split_model utility, and
StreamingModelWrapper in mlx_lm/streaming for running models
larger than available unified memory using mlx from PyPI.

Includes load_streaming() entry point and mlx_lm.split_model CLI.
- Auto-split via ensure_streaming_layout in load_streaming
- --streaming flags on mlx_lm.generate CLI
- Fix StreamingModelWrapper recursion and layer weight keys
- Add benchmark CLI, get_stats, generate_step e2e tests
@SashimiSaketoro SashimiSaketoro force-pushed the feature/layer-streaming branch from 3af9a82 to 6e6655e Compare June 28, 2026 23:12
- --streaming / --max-memory-gb / --streaming-window on mlx_lm.server
- --split-for-streaming on mlx_lm.convert
- Forward and sampling mx.array tests for streaming path
- scripts/verify_streaming_consumer.py for end-to-end MLX tensor checks
@SashimiSaketoro SashimiSaketoro force-pushed the feature/layer-streaming branch from 6e6655e to 0786571 Compare June 28, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant