Q4: KL 0.067 to the original BF16 model, against 0.249 for mlx-community 4-bit, with 5.4 GB less language-model weight (105.20 vs 110.62 GB).
Orange diamonds: Nace Q4, in this repo. Grey markers: public MLX packs. Lower = closer to BF16.
| Bits | Download | KL to BF16 lower is closer | Fits | Kapitsa |
|---|---|---|---|---|
4-bit · Q4/ | 107.6 GB | 0.067 | 192 GB+ | not yet |
Fits is a rule of thumb, not a measurement: the smallest RAM size whose default GPU share on macOS holds the download plus 2 GB for a conversation. Kapitsa skips parts it doesn't use and may fit one size smaller; kapitsa doctor checks a given Mac.
The repo root holds the same files as Q4/, so links to this repo and its earlier names keep working. To download Q4/:
hf download nace-ai/Qwen3.8-Flash-Next-MLX --include "Q4/*" \
--local-dir Qwen3.8-Flash-Next-MLX
This is an MLX pack for Apple silicon Macs, 107.6 GB of files. mlx-lm 0.32.2 cannot load this architecture yet, and other MLX apps were not tested with it. The model thinks before it answers by default; each block below shows how to turn that off.
The release check loaded Q4/ with mlx-vlm 0.7.8 and MLX 0.32.4 on CUDA (NVIDIA H200) and ran this code, which answered "Hello!". It has not been run on a Mac. Download Q4/ with the command above first.
pip install mlx-vlm==0.7.8
from mlx_vlm import load, generate
model, processor = load("Qwen3.8-Flash-Next-MLX/Q4")
tok = getattr(processor, "tokenizer", processor)
messages = [{"role": "user",
"content": "Say hello in one short sentence."}]
prompt = tok.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True,
enable_thinking=False, # thinking off
)
out = generate(model, processor, prompt=prompt,
max_tokens=80, temperature=0.0)
print(out.text)
Kapitsa is Nace's engine for Qwen models on the Mac. It serves a chat page and OpenAI, Anthropic and Ollama APIs.
Kapitsa 0.2.36 serves this repo's earlier revision, 8fda1047, not the files in Q4/. Kapitsa support for Q4/ comes in a later release.
brew install nace-ai/tap/kapitsa
kapitsa pull flash:q4
kapitsa serve --model flash:q4 --private
Open http://127.0.0.1:8000 to chat, or call the API. Thinking is on by default and comes back in reasoning_content:
curl -s http://127.0.0.1:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
"messages": [{"role": "user", "content": "What is 17 * 23?"}],
"temperature": 1.0, "top_p": 0.95, "top_k": 20, "presence_penalty": 0.0
}'
Thinking off: add "reasoning_effort": "none" (or "chat_template_kwargs": {"enable_thinking": false}) and use the non-thinking settings:
curl -s http://127.0.0.1:8000/v1/chat/completions -H "Content-Type: application/json" -d '{
"messages": [{"role": "user", "content": "What is 17 * 23?"}],
"reasoning_effort": "none",
"temperature": 0.7, "top_p": 0.8, "top_k": 20, "presence_penalty": 1.5
}'
Thinking depth: "reasoning_effort" takes low, medium, xhigh.
Kapitsa takes OpenAI tool definitions. A full round trip with the OpenAI SDK against kapitsa serve:
import json
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="none")
MODEL = "nace-ai/Qwen3.8-Flash-Next-MLX"
tools = [{"type": "function", "function": {
"name": "get_weather",
"description": "Current weather for a city",
"parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]},
}}]
messages = [{"role": "user", "content": "What is the weather in Almaty right now?"}]
reply = client.chat.completions.create(model=MODEL, messages=messages, tools=tools)
call = reply.choices[0].message.tool_calls[0]
print("call:", call.function.name, call.function.arguments)
messages.append(reply.choices[0].message)
messages.append({"role": "tool", "tool_call_id": call.id,
"content": json.dumps({"city": "Almaty", "temp_c": 4, "sky": "clear"})})
final = client.chat.completions.create(model=MODEL, messages=messages, tools=tools)
print("answer:", final.choices[0].message.content)
From the Qwen/Qwen3.8-Flash-Next card:
| Mode | temperature | top_p | top_k | min_p | presence_penalty |
|---|---|---|---|---|---|
| Thinking | 1.0 | 0.95 | 20 | 0.0 | 0.0 |
| Thinking off | 0.7 | 0.8 | 20 | 0.0 | 1.5 |
Keep repetition_penalty at 1.0. Give answers room: up to 32,768 output tokens for most tasks with thinking on. A presence_penalty between 0 and 2 curbs endless repetition; high values can mix languages.
Qwen3.8-Flash-Next in MLX Q4 from Nace.AI, closer to the original than nace-ai plain 4-bit (Kapitsa default) (KL 0.067 vs 0.141).
Original: WikiText-2, GSM8K chats and HumanEval code; Fresh: frozen UltraChat test_sft and Schema-Guided Dialogue test dialogues. Each corpus scores 32,704 next-token positions offline with mlx-vlm 0.7.8 against bf16; KL is not task accuracy or speed.
Decimal GB; base-LM payload only; separate MTP, drafter and vision payloads excluded. Means are shown without uncertainty bars.
Raw measurements and runtime checks: results.json.
Exact values, payload bytes and revisions| Pack | Base-LM GB | Original KL | Fresh KL | Pin |
|---|---|---|---|---|
| Nace [1] | 105.204 | 0.06660683 | 0.07132136 | this revision |
| nace-ai plain 4-bit (Kapitsa default) [2] | 103.424 | 0.14110035 | 0.14112859 | 5d423f9f |
| mlx-community 4-bit [3] | 110.621 | 0.24928604 | 0.22910747 | 07b5dc6c |
| TensorFold 4-bit [4] | 110.680 | 0.24921756 | 0.22900716 | 4fc403bc |
| TensorFold oQ4-MTP [5] | 110.794 | 0.22957656 | 0.21622438 | 069090c3 |
Decimal GB; base-LM payload only; separate MTP, drafter and vision payloads excluded. Exact bytes by row: 1: 105,203,519,000 B; 2: 103,424,216,600 B; 3: 110,621,031,960 B; 4: 110,679,960,600 B; 5: 110,793,555,480 B.
The reference is Qwen/Qwen3.8-Flash-Next at de4b8e4d. Vision was not evaluated.
Speed has not been measured for this revision.
The download is 100.2 GiB (107.6 GB). On a 48 GB Mac, kapitsa doctor (0.2.36) plans 76.0 GB of GPU memory for Q4/ with an 8K-token conversation, 73.2 GB of it weights, against a 38.6 GB budget, so it does not fit.
With thinking off, 20 of 20 requests made a valid first tool call and 0 of 20 made an extra tool call instead of a final answer (mlx-vlm 0.7.8 with MLX 0.32.4 on CUDA, NVIDIA H200).
The previous revision of this repo, 8fda1047, is the one Kapitsa 0.2.36 serves (the Kapitsa block above). Its speed and tool-call measurements stay in the repo history.
The Qwen Team at Alibaba Group designed and trained the original model. Nace AI quantized its published weights. This is not an official Qwen release.
The Qwen Community License 1.0 applies unchanged. Model-as-a-Service or AI Work Assistant businesses need a separate Qwen license for commercial use under condition 2.
Q4/ple.safetensors 32 GBple.safetensors 32 GBQ4/model-00003-of-00050.safetensors 1.5 GBmodel-00003-of-00050.safetensors 1.5 GBQ4/model-00002-of-00050.safetensors 1.5 GBQ4/model-00004-of-00050.safetensors 1.5 GBQ4/model-00006-of-00050.safetensors 1.5 GBQ4/model-00007-of-00050.safetensors 1.5 GBQ4/model-00008-of-00050.safetensors 1.5 GBQ4/model-00010-of-00050.safetensors 1.5 GBQ4/model-00011-of-00050.safetensors 1.5 GBQ4/model-00012-of-00050.safetensors 1.5 GBQ4/model-00014-of-00050.safetensors 1.5 GBQ4/model-00015-of-00050.safetensors 1.5 GBQ4/model-00016-of-00050.safetensors 1.5 GBQ4/model-00018-of-00050.safetensors 1.5 GBQ4/model-00019-of-00050.safetensors 1.5 GBQ4/model-00020-of-00050.safetensors 1.5 GBQ4/model-00022-of-00050.safetensors 1.5 GBQ4/model-00023-of-00050.safetensors 1.5 GBQ4/model-00024-of-00050.safetensors 1.5 GBQ4/model-00026-of-00050.safetensors 1.5 GBQ4/model-00027-of-00050.safetensors 1.5 GBQ4/model-00028-of-00050.safetensors 1.5 GBQ4/model-00030-of-00050.safetensors 1.5 GBQ4/model-00031-of-00050.safetensors 1.5 GBQ4/model-00032-of-00050.safetensors 1.5 GBQ4/model-00034-of-00050.safetensors 1.5 GBQ4/model-00035-of-00050.safetensors 1.5 GBQ4/model-00036-of-00050.safetensors 1.5 GBQ4/model-00038-of-00050.safetensors 1.5 GBQ4/model-00039-of-00050.safetensors 1.5 GBQ4/model-00040-of-00050.safetensors 1.5 GBQ4/model-00042-of-00050.safetensors 1.5 GBQ4/model-00043-of-00050.safetensors 1.5 GBQ4/model-00044-of-00050.safetensors 1.5 GBQ4/model-00046-of-00050.safetensors 1.5 GBQ4/model-00047-of-00050.safetensors 1.5 GBQ4/model-00048-of-00050.safetensors 1.5 GBmodel-00002-of-00050.safetensors 1.5 GBmodel-00004-of-00050.safetensors 1.5 GBmodel-00006-of-00050.safetensors 1.5 GBmodel-00007-of-00050.safetensors 1.5 GBmodel-00008-of-00050.safetensors 1.5 GBmodel-00010-of-00050.safetensors 1.5 GBmodel-00011-of-00050.safetensors 1.5 GBmodel-00012-of-00050.safetensors 1.5 GBmodel-00014-of-00050.safetensors 1.5 GBmodel-00015-of-00050.safetensors 1.5 GBmodel-00016-of-00050.safetensors 1.5 GBmodel-00018-of-00050.safetensors 1.5 GBmodel-00019-of-00050.safetensors 1.5 GBmodel-00020-of-00050.safetensors 1.5 GBmodel-00022-of-00050.safetensors 1.5 GBmodel-00023-of-00050.safetensors 1.5 GBmodel-00024-of-00050.safetensors 1.5 GBmodel-00026-of-00050.safetensors 1.5 GBmodel-00027-of-00050.safetensors 1.5 GBmodel-00028-of-00050.safetensors 1.5 GBmodel-00030-of-00050.safetensors 1.5 GBmodel-00031-of-00050.safetensors 1.5 GBmodel-00032-of-00050.safetensors 1.5 GBmodel-00034-of-00050.safetensors 1.5 GBmodel-00035-of-00050.safetensors 1.5 GBmodel-00036-of-00050.safetensors 1.5 GBmodel-00038-of-00050.safetensors 1.5 GBmodel-00039-of-00050.safetensors 1.5 GBmodel-00040-of-00050.safetensors 1.5 GBmodel-00042-of-00050.safetensors 1.5 GBmodel-00043-of-00050.safetensors 1.5 GBmodel-00044-of-00050.safetensors 1.5 GBmodel-00046-of-00050.safetensors 1.5 GBmodel-00047-of-00050.safetensors 1.5 GBmodel-00048-of-00050.safetensors 1.5 GBQ4/model-00005-of-00050.safetensors 1.5 GBQ4/model-00009-of-00050.safetensors 1.5 GBQ4/model-00013-of-00050.safetensors 1.5 GBQ4/model-00017-of-00050.safetensors 1.5 GBQ4/model-00021-of-00050.safetensors 1.5 GBQ4/model-00025-of-00050.safetensors 1.5 GBQ4/model-00029-of-00050.safetensors 1.5 GBQ4/model-00033-of-00050.safetensors 1.5 GBQ4/model-00037-of-00050.safetensors 1.5 GBQ4/model-00041-of-00050.safetensors 1.5 GBQ4/model-00045-of-00050.safetensors 1.5 GBQ4/model-00049-of-00050.safetensors 1.5 GBmodel-00005-of-00050.safetensors 1.5 GBmodel-00009-of-00050.safetensors 1.5 GBmodel-00013-of-00050.safetensors 1.5 GBmodel-00017-of-00050.safetensors 1.5 GBmodel-00021-of-00050.safetensors 1.5 GBmodel-00025-of-00050.safetensors 1.5 GBmodel-00029-of-00050.safetensors 1.5 GBmodel-00033-of-00050.safetensors 1.5 GBmodel-00037-of-00050.safetensors 1.5 GBmodel-00041-of-00050.safetensors 1.5 GBmodel-00045-of-00050.safetensors 1.5 GBmodel-00049-of-00050.safetensors 1.5 GBQ4/model-00001-of-00050.safetensors 1.4 GBmodel-00001-of-00050.safetensors 1.4 GBQ4/model-00050-of-00050.safetensors 898 MBmodel-00050-of-00050.safetensors 898 MBQwen/Qwen3.8-Flash-Next