Views
No views yet
mlx-vlm.mlx-vlm--quant-predicate mixed_3_6mixed_3_6)mixed_3_6 quantization recipe dynamically allocates bit-width across model layers:mlx-vlm installed:pip install -U mlx-vlm1mlx_vlm.generate \
2 --model tejones36/Qwen-3.8-27B-Uncensored-mlx-mixed_3_6 \
3 --prompt "Explain the concept of speculative decoding in MLX." \
4 --max-tokens 512 \
5 --verbose1mlx_vlm.generate \
2 --model tejones36/Qwen-3.8-27B-Uncensored-mlx-mixed_3_6 \
3 --image "/path/to/image.png" \
4 --prompt "Describe the visual details and composition of this image." \
5 --max-tokens 5122077):1mlx_vlm.server \
2 --model tejones36/Qwen-3.8-27B-Uncensored-mlx-mixed_3_6 \
3 --port 2077curl:1curl http://localhost:2077/v1/chat/completions \
2 -H "Content-Type: application/json" \
3 -d '{
4 "model": "tejones36/Qwen-3.8-27B-Uncensored-mlx-mixed_3_6",
5 "messages": [
6 {"role": "user", "content": "Server check: confirm operational status."}
7 ],
8 "max_tokens": 128,
9 "temperature": 0.3
10 }'1from mlx_vlm import load, generate
2from mlx_vlm.prompt_utils import apply_chat_template
3from mlx_vlm.utils import load_config
4
5model_path = "tejones36/Qwen-3.8-27B-Uncensored-mlx-mixed_3_6"
6
7# 1. Load quantized model and multimodal processor
8model, processor = load(model_path)
9config = load_config(model_path)
10
11# 2. Format prompt using model chat template
12prompt = "Write a concise technical summary of mixed-bit quantization advantages."
13formatted_prompt = apply_chat_template(processor, config, prompt)
14
15# 3. Generate response
16output = generate(
17 model,
18 processor,
19 prompt=formatted_prompt,
20 max_tokens=512,
21 verbose=True
22)
23
24print(output)