Paris99 commited on
Commit
e158f68
·
verified ·
1 Parent(s): af13f5a

Card: memory re-measured with stock mlx-vlm main at an 8K-token prompt

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -141,7 +141,7 @@ On a MacBook Pro M5 Max (128 GB), 20–21 November 2026, with MLX 0.32.4. The co
141
  format, which `mlx_vlm.server` returns as OpenAI `tool_calls`.
142
  - **Coding:** 3/3 short Python tasks passed their asserts. **Thinking** (reasoning `low`): 2/2
143
  questions answered correctly after one closed thinking block. **Vision:** named the red square and blue circle of a test image.
144
- - **Memory:** peak 20.0 GB with a 4K-token prompt and 21.2 GB with an 8K-token prompt (mlx-vlm defaults). With a smaller prefill step the peak drops: 15.6 / 15.9 GB at `prefill_step_size=512` and 14.7 / 14.8 GB at `prefill_step_size=256` (4K / 8K-token prompts, plus 0.64 GB if the DSpark draft is loaded), which fits the default GPU memory limit of a 24 GB Mac: pass `prefill_step_size=256` to `generate`, or `--prefill-step-size 256` to `mlx_vlm.server`.
145
  - **DSpark:** the bundled draft loads with this build; greedy output follows the model's own except at near-ties (checked: divergences only where the top two tokens were within 0.2 logits). Speeds are under "Speed".
146
 
147
  Known limitation of the current server: when the model calls a tool, `content` can also carry a short sentence of its
 
141
  format, which `mlx_vlm.server` returns as OpenAI `tool_calls`.
142
  - **Coding:** 3/3 short Python tasks passed their asserts. **Thinking** (reasoning `low`): 2/2
143
  questions answered correctly after one closed thinking block. **Vision:** named the red square and blue circle of a test image.
144
+ - **Memory** (stock MLX-VLM main, 8K-token prompt, 128 tokens generated, draft not loaded): weights 14.1 GB; peak 22.9 GB at the default prefill step, 17.1 GB at `prefill_step_size=512`, 16.0 GB at 256 and 15.3 GB at 128. On a 24 GB Mac (default GPU limit about 16 GB) use `prefill_step_size=128` (`--prefill-step-size 128`) and leave the DSpark draft off for prompts up to 8K tokens; with the draft (+0.64 GB) or longer prompts, raise the limit first (`sudo sysctl iogpu.wired_limit_mb=18432`, resets at restart).
145
  - **DSpark:** the bundled draft loads with this build; greedy output follows the model's own except at near-ties (checked: divergences only where the top two tokens were within 0.2 logits). Speeds are under "Speed".
146
 
147
  Known limitation of the current server: when the model calls a tool, `content` can also carry a short sentence of its