Downloads · 30 days
102
13% of all-time downloads
dogfoodai/Qwen3.8-27B-4bit
Qwen3.8-27B-4bit is a text generation model from dogfoodai. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as apache-2.0.
4-bit quantized MLX conversion of Qwen/Qwen3.8-27B, built with mlx-lm 0.31.3.
Downloads · 30 days
102
13% of all-time downloads
All-time downloads
764
Public
Parameters
27.3B
16 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors16 GB · 100%
How the weights are stored.
U3226.9B · 98%
From the Hugging Face model README
4-bit quantized MLX conversion of
Qwen/Qwen3.8-27B, built with
mlx-lm 0.31.3.
<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.pip install mlx-lm
# chat (thinking mode is on by default via the shipped chat template)
python -m mlx_lm generate --model dogfoodai/Qwen3.8-27B-4bit \
--prompt "Explain the Gated DeltaNet architecture in one paragraph."
from mlx_lm import load, generate
model, tokenizer = load("dogfoodai/Qwen3.8-27B-4bit")
messages = [{"role": "user", "content": "Write a haiku about quantization."}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt=prompt, max_tokens=128))
# instruct mode: skip the <think> block
prompt = tokenizer.apply_chat_template(
messages, add_generation_prompt=True, enable_thinking=False
)
Reproduced with the script in this repo (convert_to_mlx_4bit.py), which wraps mlx-lm's convert API:
python3 convert_to_mlx_4bit.py \
--hf-path Qwen/Qwen3.8-27B \
--mlx-path mlx_model \
--upload-repo dogfoodai/Qwen3.8-27B-4bit
Internally this runs the equivalent of:
mlx_lm.convert --hf-path Qwen/Qwen3.8-27B --mlx-path mlx_model -q --q-bits 4 --q-group-size 64
model.visual.*) is not part of this text-only conversion; for image/video
understanding, use the original transformers or vLLM checkpoint.