I'm trying to optimize Qwen3.5-9B MLX on my 24 GB MacBook Air for text/coding use.
I inspected Qwen3.5-9B-MLX-4bit and found:
5.541 GiB total tensor payload
869.8 MiB of vision_tower.* tensors
333 vision tensors
Vision accounts for 15.33% of the checkpoint
Since I don't use vision, I converted it into a proper text-only MLX model and physically removed the vision tower. The converted model loads and generates correctly in LM Studio.
This also allowed me to enable Q8 KV cache, which wasn't available with the VLM version.
At 32K context, actual tested memory usage on my machine:
The problem is prompt cache reuse with Q8. Even across turns in the same LM Studio conversation, I repeatedly get:
Prompt cache: using 0/6905 tokens from cache
and later:
Prompt cache: using 0/7809 tokens from cache
The runtime also logs:
max_kv_size is ignored when using KV cache quantization
Runtime: [email protected]
Has anyone tested Qwen3.5 + Q8 KV cache + prompt prefix reuse on the current LM Studio MLX runtime?
I'm trying to determine whether this is related to Qwen3.5's hybrid cache, quantized cache reuse, or something in my text-only conversion.
The vision removal itself works. My main issue now is getting Q8's ~7 GB memory saving while retaining multi-turn prompt cache reuse.