Run this model with HF Jobs
Run SolsticeAI/Qwen4-35B-A3B-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/SolsticeAI/Qwen4-35B-A3B-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/SolsticeAI/Qwen4-35B-A3B-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/SolsticeAI/Qwen4-35B-A3B-MLX. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use SolsticeAI/Qwen4-35B-A3B-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use SolsticeAI/Qwen4-35B-A3B-MLX with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("SolsticeAI/Qwen4-35B-A3B-MLX") config = load_config("SolsticeAI/Qwen4-35B-A3B-MLX") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Qwen4-35B-A3B-MLX
Apple MLX quants of Qwen/Qwen4-35B-A3B by SolsticeAI β’ one folder per bit width β’ affine, group size 64
Base model by the Qwen Team. Quantization by SolsticeAI with mlx-vlm. Same Apache-2.0 licence as the base model.
Quants
Each folder is a complete, self-contained MLX checkpoint (weights, config, tokenizer, chat template, processor files).
| Folder | Quant | Weights size | Shards |
|---|---|---|---|
3bit/ |
affine 3-bit, gs64 | 25.2 GB | 5 |
4bit/ |
affine 4-bit, gs64 | 32.1 GB | 7 |
5bit/ |
affine 5-bit, gs64 | 39.1 GB | 8 |
6bit/ |
affine 6-bit, gs64 | 46.0 GB | 9 |
8bit/ |
affine 8-bit, gs64 | 59.9 GB | 12 |
What is quantized: the language model (including the n-gram / engram table, quantized with the same mode as the rest). Routers and shared-expert gates are kept at 8-bit by mlx-vlm's defaults, and the vision tower stays BF16. Every folder has all 3263 tensors of the BF16 source layout (MTP tensors excluded, see below).
How to use
These are multimodal qwen4_moe checkpoints, so you need mlx-vlm with qwen4_moe support. mlx-lm does not support this architecture (no Qwen4 support there yet).
The quants live in subfolders, and mlx_vlm.load takes a repo id or a local path, not a repo subfolder. So download the folder you want first, then point mlx-vlm at the local path:
pip install -U huggingface_hub
hf download SolsticeAI/Qwen4-35B-A3B-MLX --include "4bit/*" --local-dir ./Qwen4-35B-A3B-MLX
# then
python -m mlx_vlm.generate --model ./Qwen4-35B-A3B-MLX/4bit --prompt "Hello" --max-tokens 128
(huggingface-cli download takes the same arguments.) Replace 4bit with 3bit, 5bit, 6bit or 8bit as needed. Do not point a tool at the repo root: there are no model files there.
Python:
from mlx_vlm import load, generate
model, processor = load("./Qwen4-35B-A3B-MLX/4bit")
LM Studio, oMLX and other tools that load a model straight from a repo root will not find the weights in a subfolder. Download the folder as above and open that local folder as the model directory.
oQe mixed-precision quants (oMLX, MTP kept)
oMLX oQ mixed-precision quants with oQe (imatrix-weighted rounding, weighted least-squares scale refit and Hessian code refinement). Bits are allocated by measured layer sensitivity; the n-gram table is quantized by its own policy (at least 4-bit). The MTP head is kept (preserve_mtp), unlike the plain folders above.
Made on Linux + NVIDIA, not on a Mac. oMLX's oQe refine step only ships as an Apple Metal kernel, so these were built with oMLX main (commit 4fb81c92, which has the Qwen4 fixes #5930/#5938/#6000 merged after v0.8.5) on MLX's CUDA backend, with the refine kernel ported 1:1 to mx.fast.cuda_kernel and the scale refit routed to oMLX's own pure-MLX reference. The port was checked byte-for-byte against a reference implementation before these builds. Settings are the oMLX app defaults (imatrix 128 samples x 512 tokens, adaptive up to 1024), with streamed calibration on the real BF16 weights. Scripts and logs: reproduce/oq-linux-cuda/.
They need Trust Remote Code (Qwen4 tokenizer code ships in each folder) and a runtime with oMLX's Qwen4 support, e.g. oMLX. Download one folder (hf download SolsticeAI/Qwen4-35B-A3B-MLX --include "oQ3.5e/*" --local-dir ./Qwen4-35B-A3B-MLX) and open that local folder.
| Folder | Level | Weights size | Shards | Tensors | Check | Smoke test | KLD vs BF16 |
|---|---|---|---|---|---|---|---|
oQ3.5e/ |
oQ3.5e, MTP kept | 31.83 GB | 7 | 3260 | layout matches the oQ4e-mtp reference | France β Paris, then other capitals; Fibonacci snippet is correct | pending |
oQ5e/ |
oQ5e, MTP kept | 41.86 GB | 9 | 3260 | layout matches the oQ4e-mtp reference | France β Paris; Fibonacci snippet is correct | pending |
MTP (speculative decoding)
The plain 3bit/-8bit/ folders include no MTP drafter. (The oQ*e/ folders keep the model's own MTP head; see above.) MLX MTP support for this model is on hold on our side. These folders are base models only; nothing here enables speculative decoding.
Testing status
The plain 3bit/β8bit/ folders were checked for completeness before release: all shards present, 3263 tensors, config.json with the quantization block, and sha256 / size match against the source builds. Build logs, recipes and these checks are in the open recipe repo (links below). Those folders have no generation-quality or KLD results yet. The oQ*e/ folders have their own completeness checks and smoke tests in the table above; KLD vs BF16 is still pending.
Reproduce
Exact commands, scripts, package versions and logs are in reproduce/formats/ of the GGUF repo (mlx-3Bit, mlx-4Bit, mlx-5Bit, mlx-6Bit, mlx-8Bit, mlx-merged).
Other formats
- GGUF (llama.cpp): SolsticeAI/Qwen4-35B-A3B-GGUF
Links
- X: @TheSolsticeAI
- Discord: discord.gg/rhE9zdKyE4
- GitHub: Solstice-Labs
- Site: solsticeai.ml
Quantized
Model tree for SolsticeAI/Qwen4-35B-A3B-MLX
Base model
Qwen/Qwen4-35B-A3B