Views
No views yet
mlx-vlm with 4-bit quantization.1python3 -m mlx_vlm convert \
2 --hf-path "Qwen/Qwen3.5-9B" \
3 --mlx-path "./mlx_models/Qwen3.5-9B-MLX-4bit" \
4 -q --q-bits 4 --q-group-size 64mlx-vlm branch.1from mlx_vlm import load, generate
2
3model, processor = load("mlx-community/Qwen3.5-9B-MLX-4bit")
4
5output = generate(
6 model,
7 processor,
8 prompt="Describe this image in detail",
9 image="path/to/image.jpg",
10 max_tokens=200
11)
12print(output)1mlx_vlm generate \
2 --model mlx-community/Qwen3.5-9B-MLX-4bit \
3 --prompt "Describe this image" \
4 --image path/to/image.jpg \
5 --max-tokens 200