How to Quantize the KV Cache for a Long mlx_lm Run
Quantize the KV cache for a long mlx_lm run so the conversation fits in memory.
THE FIELD GUIDE
Run AI on your own computer, check model and hardware requirements, and verify which steps work without a cloud connection.
Quantize the KV cache for a long mlx_lm run so the conversation fits in memory.
Send a chat request to a running mlx_lm server with curl and confirm it returns a reply.
Set a maximum token limit for an mlx_lm.generate run and confirm the answer stops at the limit.
Give mlx_lm.generate a system prompt and confirm the answer follows it.
List downloaded MLX models and delete the ones not needed, then confirm the disk space is back.
Check the installed mlx and mlx_lm versions before running a model, so version problems are caught early.
Set the context length for llama-server with a flag and confirm long input stays in view.
Check which GPU backend a llama.cpp build was compiled with before running a model.
Set temperature and top-p for a llama-cli run and confirm the output changes.
Run a vision model with llama.cpp multimodal CLI and check the description matches the image.