Views
No views yet
<think>…</think> reasoning block before the
final response. Disable per request with enable_thinking=False (instruct mode).reasoning_effort — xhigh (default), medium, or low to tune reasoning depth and cost.preserve_thinking — on by default; retains thinking blocks from all historical messages for
agentic continuity and KV-cache efficiency.temperature=1.0, top_p=0.95, top_k=20; instruct mode:
temperature=0.7, top_p=0.8, top_k=20, presence_penalty=1.5.chat_template.jinja ships with this repo.Qwen3_5ForConditionalGeneration); mlx-lm
converts the language model only — the vision tower (model.visual.*) is stripped. Image/video
inputs are NOT supported.mtp.*, ~0.42B params) is kept as
mtp.safetensors (bf16, unquantized). mlx-lm's qwen3_5 runtime does not execute multi-token
prediction yet, so the weights are inert under mlx-lm but remain available for runtimes that
implement multi-token prediction.1pip install mlx-lm
2
3# chat (thinking mode is on by default via the shipped chat template)
4python -m mlx_lm generate --model dogfoodai/Qwen3.8-27B-4bit \
5 --prompt "Explain the Gated DeltaNet architecture in one paragraph."1from mlx_lm import load, generate
2
3model, tokenizer = load("dogfoodai/Qwen3.8-27B-4bit")
4messages = [{"role": "user", "content": "Write a haiku about quantization."}]
5prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
6print(generate(model, tokenizer, prompt=prompt, max_tokens=128))
7
8# instruct mode: skip the <think> block
9prompt = tokenizer.apply_chat_template(
10 messages, add_generation_prompt=True, enable_thinking=False
11)convert_to_mlx_4bit.py), which wraps mlx-lm's convert API:1python3 convert_to_mlx_4bit.py \
2 --hf-path Qwen/Qwen3.8-27B \
3 --mlx-path mlx_model \
4 --upload-repo dogfoodai/Qwen3.8-27B-4bitmlx_lm.convert --hf-path Qwen/Qwen3.8-27B --mlx-path mlx_model -q --q-bits 4 --q-group-size 64model.visual.*) is not part of this text-only conversion; for image/video
understanding, use the original transformers or vLLM checkpoint.