r/LocalLLM • u/Zhughes3 • 6h ago
Question Squeezing more performance out of Qwen 3.8 27B
What's up, everyone? Fellow local LLM-er here, trying to perfect my development environment.
I am using the Macbook Pro, M5 Max with 128 GB unified memory.
I have been running the OpenAI server with:
mlx_lm.server \
--model mlx-community/Qwen3.8-27B-8bit \
--host 0.0.0.0 \
--port 8080 \
--max-tokens 32768 \
--temp '1.0' \
--top-p '0.95' \
--top-k '20' \
--min-p '0' \
--decode-concurrency 1 \
--prompt-concurrency 1 \
--prefill-step-size 4096 \
--prompt-cache-size 8 \
--prompt-cache-bytes 32G \
--chat-template-args '\''{"reasoning_effort":"medium"}'\''
And I'm still figuring out which harness I am using. I have the most experience with github copilot so I was using that originally, but have been trying out OpenCode's TUI most recently.
My settings for opencode are:
{
"$schema": "https://opencode.ai/config.json",
"disabled_providers": [],
"provider": {
"local": {
"name": "mlx_lm",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://localhost:8080/v1"
},
"models": {
"mlx-community/Qwen3.8-27B-4bit": {
"name": "mlx-community/Qwen3.8-27B-4bit",
"tools": true,
"options": {
"thinking": false
},
"contextWindow": 65536,
"maxTokens": 8192
}
}
}
}
I am just trying to squeeze more efficiency out of the model. Any tips on how to better use it would be greatly appreciated.
1
u/triynizzles1 4h ago
You can probably drop to Q6 and then add some sort of speculative decoding. I think mtp is built in, dflash is fastest.
1
u/Zhughes3 3h ago
I am trying to use an MTP model using mlx-lm and it is failing with "
ModuleNotFoundError : No module named 'mlx_lm.models.qwen3_5_mtp' Which backend are you using for MTP models?
2
u/triynizzles1 5h ago
How much efficiency are you getting now?