alt.freeweights.qwen / Qwen3.5-397B-A17B-nvfp4
From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.qwenSubject:

Qwen3.5-397B-A17B-nvfp4

Date: 2026-11-15Commit: b44096aSigned: 2DC28CC7B26A283B ✓

Text generation model with 396.3B parameters. Safetensors weights, 223 GB in all. Published by mlx-community under Apache-2.0.

396.3B params223GBQwen3.5-397B-A17B-nvfp4safetensorspermissive
FactsParams396.3BSize223 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get mlx-community/Qwen3.5-397B-A17B-nvfp4
# manifest sha256 6548e6f77e7a… · 223 GB · 54 files
$ fw verify ./Qwen3.5-397B-A17B-nvfp4 mlx-community/Qwen3.5-397B-A17B-nvfp4
From sourceHosted (signed)mlx-community/Qwen3.5-397B-A17B-nvfp4Last check: 2026-11-15 05:01 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of Qwen3.5-397B-A17B.

Works with

Overview

Size
223 GB
Weights
223 GB (safetensors)
Parameters
396.3B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
54, each with a sha256
Publisher
mlx-community
Added
2026-11-15
Section
alt.freeweights.qwen
Lineage

Original release from the publisher.

Base model: Qwen/Qwen3.5-397B-A17B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:01 UTCpassed

Model card

From the publisher at commit b44096a. Shown as plain text with links; images open at the publisher.

Qwen3.5-397B-A17B-nvfp4 (MLX)#

4-bit nvfp4 MLX quantized version of the text model from Qwen/Qwen3.5-397B-A17B.

Portions of this card were copied or adapted from the original model card, authored by the Qwen team.

Model Overview#

Qwen3.5-397B-A17B is Alibaba's latest flagship language model, featuring a hybrid architecture that combines Gated DeltaNet (linear attention) with sparse Mixture-of-Experts for high-throughput inference. Despite having 397B total parameters, only ~17B are activated per token, making it remarkably efficient for its capability level.

This conversion provides a text-only 4-bit quantized version optimized for local inference on Apple Silicon Macs via the MLX framework. The vision encoder from the original multimodal model is not included — for image/video understanding, refer to the original Qwen/Qwen3.5-397B-A17B.

Key Capabilities#
  • 201 languages and dialects with deep cultural and regional understanding
  • 262K native context (extensible to 1M+ with YaRN)
  • Thinking mode with chain-of-thought reasoning (<think>...</think>)
  • Tool use and agentic workflows (MCP, function calling)
  • Competitive benchmarks: MMLU-Pro 87.8, SuperGPQA 70.4, C-Eval 93.0

Architecture#

ParameterValue
Total Parameters397B
Active Parameters~17B
Hidden Size4,096
Layers60
Layer Layout15 × (3 × Gated DeltaNet + 1 × Full Attention), all with MoE FFN
Total Experts512
Active Experts per Token10 routed + 1 shared
Expert Intermediate Size1,024
Full Attention Heads32 Q / 2 KV (GQA), head dim 256
Linear Attention Heads16 QK / 64 V, head dim 128
Context Length262,144 tokens
Vocab Size248,320

Quantization Details#

ParameterValue
Methodnvfp4
Bits4-bit (weights)
Group Size64
MoE Router Gates8-bit (preserved at higher precision)
Model Size on Disk~223 GB

The MoE router gates (mlp.gate and mlp.shared_expert_gate for all 60 layers) are kept at 8-bit precision to preserve routing accuracy, which is critical for Mixture-of-Experts models.

Requirements#

  • Apple Silicon Mac with at least 256 GB unified memory (e.g., Mac Studio M3 Ultra 256GB+)
  • Python 3.10+
  • mlx-lm from the main branch

Installation#

pip install git+https://github.com/ml-explore/mlx-lm

Usage#

Quick Start — Python API#
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Qwen3.5-397B-A17B-nvfp4")

messages = [{"role": "user", "content": "Explain the Riemann hypothesis in simple terms."}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)

response = generate(
    model,
    tokenizer,
    prompt=prompt,
    max_tokens=4096,
    verbose=True,
    temp=0.6,
    top_p=0.95,
)
Thinking Mode (Default)#

The model defaults to thinking mode, producing chain-of-thought reasoning inside <think>...</think> tags before the final answer:

from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Qwen3.5-397B-A17B-nvfp4")

messages = [
    {"role": "user", "content": "How many r's are in the word 'strawberry'?"}
]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)

response = generate(
    model,
    tokenizer,
    prompt=prompt,
    max_tokens=8192,
    verbose=True,
    temp=0.6,
    top_p=0.95,
)
Non-Thinking Mode#

For faster, more direct responses without chain-of-thought reasoning:

from mlx_lm import load, generate

model, tokenizer = load("mlx-community/Qwen3.5-397B-A17B-nvfp4")

messages = [
    {"role": "user", "content": "Write a haiku about machine learning."}
]
prompt = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    enable_thinking=False,
)

response = generate(
    model,
    tokenizer,
    prompt=prompt,
    max_tokens=2048,
    verbose=True,
    temp=0.7,
    top_p=0.8,
)
Command Line#
# Thinking mode (default)
mlx_lm.generate \
    --model mlx-community/Qwen3.5-397B-A17B-nvfp4 \
    --prompt "What are the key differences between TCP and UDP?" \
    --max-tokens 4096 \
    --temp 0.6 \
    --top-p 0.95

# Start a local chat server (OpenAI-compatible)
mlx_lm.server --model mlx-community/Qwen3.5-397B-A17B-nvfp4
Local OpenAI-Compatible Server#

Start the server:

mlx_lm.server --model mlx-community/Qwen3.5-397B-A17B-nvfp4 --port 8080

Then query it with any OpenAI-compatible client:

from openai import OpenAI

client = OpenAI(base_url="http://localhost:8080/v1", api_key="unused")

response = client.chat.completions.create(
    model="mlx-community/Qwen3.5-397B-A17B-nvfp4",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Write a Python function to find all prime numbers up to n using the Sieve of Eratosthenes."},
    ],
    max_tokens=4096,
    temperature=0.6,
    top_p=0.95,
)
print(response.choices[0].message.content)

Or with curl:

curl http://localhost:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "mlx-community/Qwen3.5-397B-A17B-nvfp4",
    "messages": [{"role": "user", "content": "Hello!"}],
    "max_tokens": 512,
    "temperature": 0.6
  }'
ParameterThinking ModeNon-Thinking Mode
temperature0.60.7
top_p0.950.8
top_k2020
presence_penalty0.01.5
repetition_penalty1.01.0
max_tokens (general)32,76832,768
max_tokens (math/code)81,920—

Tips#

  • Thinking mode is best for complex reasoning, math, and coding tasks. The model will produce internal reasoning before answering.
  • Non-thinking mode is better for straightforward Q&A, creative writing, and conversational use where latency matters.
  • For math problems, append: "Please reason step by step, and put your final answer within \boxed{}."
  • For multi-turn conversations, the default chat template automatically strips thinking content from prior turns.
  • If running into memory pressure, consider closing other applications to free unified memory.

Original Model#

This is a quantized version of Qwen/Qwen3.5-397B-A17B. Refer to the original model card for full benchmark results, training details, and the technical report.

Citation#

@misc{qwen3.5,
    title  = {{Qwen3.5}: Towards Native Multimodal Agents},
    author = {{Qwen Team}},
    month  = {February},
    year   = {2026},
    url    = {https://qwen.ai/blog?id=qwen3.5}
}

Files

54 files · 223 GBWeights 223 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 54 files with their sha256
FileSizesha256
.gitattributes1.57 KB34448b82c17d60fec9b65b1f093c115ddbaadc04beb1b0140b6bfed2e012a930
README.md7.30 KB2d918030ad8f62fe5886f03a53d975aa08189bd19b2e274de735052fc539825d
chat_template.jinja7.76 KBa4aee8afcf2e0711942cf848899be66016f8d14a889ff9ede07bca099c28f715
config.json33.4 KB41c85974dcc4ba17a8f49d0c0977d15487e99d29127eec23e9da77c434ea71f6
generation_config.json244 B303aba891d66ab63908a7b3cc9163bcb835fdf8b9f6301c73216f3f1eb3992dd
model-00001-of-00046.safetensors4.34 GBfd07a542763e7009c1943adaf6bd41cd93832169c8b4035794aa4c28334d1d48
model-00002-of-00046.safetensors4.91 GBbd1fe3442b25808e554cde0ad3830034eb7fa81c9e061a93681b8ad713db6eab
model-00003-of-00046.safetensors4.90 GBd78f3ad1a27dfb49f18ef63a088ffe8ba04e4b1c4b9362e3c0094ffdf8fdb341
model-00004-of-00046.safetensors4.98 GB3480840c268360b13de8402904541a58c976442e99f85e2fd302f11d4d396562
model-00005-of-00046.safetensors4.91 GB4d82776e50dca076506875b1fbd92b5baa7b1bf1d9287c61c9f7339dd402ff56
model-00006-of-00046.safetensors4.90 GB906a41942409240ec83ae50c01f978e74a59d588bd90bb303b50d82ff006ecf7
model-00007-of-00046.safetensors4.98 GB3d05f0120c5ae3ea51daadd20debba0d2fc5bec42cf5b08a9c4a79043faf2a2d
model-00008-of-00046.safetensors4.91 GB9f97cc293e605e325989f06edd2ba84d0e9d62304968ddd435f06f44785a68af
model-00009-of-00046.safetensors4.90 GBfa7772f5f0662923053037f32ff8ff4a728ad3663952ee91818cf38bb40041cb
model-00010-of-00046.safetensors4.98 GBdee7075616c1c6a1bf3e006041bc97bc4e9dc6058caa026cc92fac0ddc4a1864
model-00011-of-00046.safetensors4.91 GB6763b2343cb9f641fbedb127775c86c22fd1178ce194bbae178b8ed4724d34e2
model-00012-of-00046.safetensors4.90 GB2d288fda5e2878fa6258347f419f4bfe1c1c7a1e126d560851ba808938f5e941
model-00013-of-00046.safetensors4.98 GB158dacb00f479b719190234d6590b35176e08c15eb3aa30030b8c9a204585c8d
model-00014-of-00046.safetensors4.91 GB6541c705312eb9513458daa2980ec527e40d2f0aea67e9736a8f6f109ccfe35c
model-00015-of-00046.safetensors4.90 GB87e201d865f5e83928e86f146d3c63f806d4dc2fd4f8c6d2950c3d99f269e2bb
model-00016-of-00046.safetensors4.98 GB271169e92915d30eeb3078218e7e8d4017668a2251e4f5582166cd4460266cdf
model-00017-of-00046.safetensors4.91 GB5226d8becccba6113328b91f2a0ebd28f6cf224d79632141edaed3400a08073b
model-00018-of-00046.safetensors4.90 GBf5a10b9275cef2f9a293e27d04c7e389d7617807fd8aa545b1e81a9822a23be9
model-00019-of-00046.safetensors4.98 GBaf55cffa7fda5c16df637efe33f0a08b5541f00c24d303a78f453353d735847a
model-00020-of-00046.safetensors4.91 GB6f07c2dbaa2a2dc2080cd0b7f3a2c06333804b109f4021928fea1d37efa7ee2d
model-00021-of-00046.safetensors4.90 GB12b12a476b48f1a69a943386232604d5571a04ca92b42222c78b5cd3b1f24151
model-00022-of-00046.safetensors4.98 GB36e940b533ce4e2b98a7c9b39bb6261c27858b69b729a7a5811a79a6699e73b9
model-00023-of-00046.safetensors4.91 GB6823f3fc30a14f0a0a9d89e88e93a70969a64a99cc9317c4d939637454ed8565
model-00024-of-00046.safetensors4.90 GBa9cea43a2df58812c381294e99e858d5e77af447bdb22bcb622a69162562993a
model-00025-of-00046.safetensors4.98 GB2a88bdbb3163c55f77af4d7d8deefb8e7b2a1b46683d00aebadef023f022a8a7
model-00026-of-00046.safetensors4.91 GB029912c39c31da6ce5e513283d1f39cd7f7840ba5fa2291dc8208a5ed072a924
model-00027-of-00046.safetensors4.90 GB15d4d30592093a90133f3b9f6c14c592f8c66c9946efb69d0c3cd058ee08c71f
model-00028-of-00046.safetensors4.98 GBcd4a03f4d524e63f6a1d21c499f89fbf5bb25f23f1ceab6997d667c52767ab13
model-00029-of-00046.safetensors4.91 GB845b7145a85bfe97f1413b3aac3e9bb86f75f395f3a0003d37ad73200c3ca5a2
model-00030-of-00046.safetensors4.90 GB4383681880cd264d42ec21aacaad3ef867ff8afed4eda2401cc1083ec2ebafe2
model-00031-of-00046.safetensors4.98 GBd4b974309da92e43f8ebd528d579a573f3dcf983f165d92cc352af43f249c979
model-00032-of-00046.safetensors4.91 GB2ab1926acdb5bb922409a67dff2711db5a4bd01db2611f07bdb3b185e7dfc642
model-00033-of-00046.safetensors4.90 GB972f208b1de4ccd461f14108c29903b46257c252681369d9b3131b3ce9974979
model-00034-of-00046.safetensors4.98 GB8a18c48c6acd4a7690984b521b3bf86ec62139bb42dbdbf9ade69267a77aa745
model-00035-of-00046.safetensors4.91 GBbd295b3377f3e3cae8706c049405945dd1aff9f09734101ae49acffb91555fd0
model-00036-of-00046.safetensors4.90 GB3be4cb2cc47ab1aaaf4f283054700e7d235fc55ab031305b91d0f929413291a7
model-00037-of-00046.safetensors4.98 GB7cc069b34ff34aa99d3ab83ed9397a2729bcab5c01e026f014f126ff36b46a6b
model-00038-of-00046.safetensors4.91 GB04568450286c731473ebf3a8897358bcf69ef36d20eafa1fb8a2e426b084774f
model-00039-of-00046.safetensors4.90 GB73f5ede3ce1a0cc7c7c0d31bf5c89817cee30b04d0b19b9ba3c234ca49f683b4
model-00040-of-00046.safetensors4.98 GBdf51fff8eefcb4e812b3079396765468f906c02841f125a6160cb52fd46d5f32
model-00041-of-00046.safetensors4.91 GB4ffd87979115dfa88439a298dda1666ad038d13b0f3e5ba47be565ef6a6cb199
model-00042-of-00046.safetensors4.90 GBf6c1f20ed32a7058072e0258d95a4ad92b668cc3bb5005fbdaf80a2159f73f46
model-00043-of-00046.safetensors4.98 GB35748e439320ca68c0d2c38d6ac34206fcda1658d9cc0adfe054e3271f1d06a1
model-00044-of-00046.safetensors4.91 GBacfc2d0c6a584354ced8c402ae27e735428007e10344fa9d4812cdf4137a9992
model-00045-of-00046.safetensors4.90 GB407c3a532c17fdbc129188edb8eafbe1787536031c9e77a282172a5a7386a027
model-00046-of-00046.safetensors1.79 GBfd7a8d74efd9cf7139158f6898aef09296132fc0bf04bf1901db687fa92e7fc8
model.safetensors.index.json211 KB5dca2d2dd58d3a9b89bb68b19d738f135e91e9d3265c64bc1dfbdd8197ce7fdc
tokenizer.json20.0 MB87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
tokenizer_config.json1.14 KBb2bed5e033438f09f22b0ce9522115b4807d9bbcc3b82bf23372cb74d93ed081
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b44096ac77 pinned now2026-11-15 05:01 UTC54 files · 223 GB

Use it

$ fw get mlx-community/Qwen3.5-397B-A17B-nvfp4
# manifest sha256 6548e6f77e7a… · 223 GB · 54 files
$ fw verify ./Qwen3.5-397B-A17B-nvfp4 mlx-community/Qwen3.5-397B-A17B-nvfp4
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/mlx-community/Qwen3.5-397B-A17B-nvfp4.json --dir ./Qwen3.5-397B-A17B-nvfp4 $ python3 fw.py verify ./Qwen3.5-397B-A17B-nvfp4 ./mlx-community__Qwen3.5-397B-A17B-nvfp4.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/Qwen3.5-397B-A17B-nvfp4 --revision b44096ac779daee6ee1ea3c74c124a017fe691cd --local-dir ./Qwen3.5-397B-A17B-nvfp4
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("mlx-community/Qwen3.5-397B-A17B-nvfp4", revision="b44096ac779daee6ee1ea3c74c124a017fe691cd") model = AutoModelForCausalLM.from_pretrained("mlx-community/Qwen3.5-397B-A17B-nvfp4", revision="b44096ac779daee6ee1ea3c74c124a017fe691cd", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve mlx-community/Qwen3.5-397B-A17B-nvfp4 --revision b44096ac779daee6ee1ea3c74c124a017fe691cd

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
2d918030ad8f62fe5886f03a53d975aa08189bd19b2e274de735052fc539825d
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: mlx-community <huggingface.co/mlx-community>Newsgroups: alt.freeweights.qwenSubject: Qwen3.5-397B-A17B-nvfp4Date: 2026-11-15Commit: b44096aSigned: 2DC28CC7B26A283B ✓
Upstream
mlx-community/Qwen3.5-397B-A17B-nvfp4
Pinned commit
b44096ac779daee6ee1ea3c74c124a017fe691cd
Manifest
Qwen3.5-397B-A17B-nvfp4.json · .minisig
Manifest sha256
6548e6f77e7a054fc559effeb92f970c1d24daeb64e09f3ebec543e4d85a866b
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:01 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/mlx-community/Qwen3.5-397B-A17B-nvfp4.json $ curl -O https://freeweights.allternit.com/manifests/mlx-community/Qwen3.5-397B-A17B-nvfp4.json.minisig $ minisign -Vm Qwen3.5-397B-A17B-nvfp4.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

Qwen/Qwen3.5-397B-A17B · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download mlx-community/Qwen3.5-397B-A17B-nvfp4
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. Qwen3.5-397B-A17B-nvfp4.json. Provenance. Takedown history: none.
From: BAAI <huggingface.co/BAAI>Subject: Aquila-VL-2B-llava-qwen
From: Perciqa <huggingface.co/Perciqa>Subject: Aurora-Code-1
From: BAAI <huggingface.co/BAAI>Subject: bge-reasoner-embed-qwen3-8b-0923
From: amazon <huggingface.co/amazon>Subject: BMOJOF-primed-HQwen3-8B-Instruct
From: nbeerbower <huggingface.co/nbeerbower>Subject: Bubba-Qwen3.6-27B-LoRA
From: bartowski <huggingface.co/bartowski>Subject: bytkim_Qwen3.8-27B-pi-GGUF