feat: MLX VRAM & performance optimizations for Apple Silicon#8
Draft
feat: MLX VRAM & performance optimizations for Apple Silicon#8
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…se 0) - memory_snapshot() / reset_peak() helpers in utils/profiling - bench_mlx.py: peak/active MB columns per resolution - smoke_2048.py: replace try/except fallback with direct mx.* APIs - baseline-fp32.md: 512/1024/2048 numbers (26.7GB peak at 2048) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…er FP32 Full FP16 exceeded 1e-3 tolerance (backbone drift 2.5e-3, refiner 10x scale → 1.3e-2). Decoder-only FP16 stays within bounds. - Add fp16 param to load_model() + _cast_model_fp16() helper - 6 parity tests: 4 output keys + validity + FP32 opt-in check - Update plan with empirical mixed precision findings Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fp16,backbone_size,tile_size,tile_overlapwith validationBenchmark Highlights (M3 Max, 2048x2048)
*wall time with real images + resize overhead
Test plan
docs/benchmarks/RESULTS.md🤖 Generated with Claude Code