Run this model with HF Jobs

Run mlx-community/Qwen4-35B-A3B-8bit 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/mlx-community/Qwen4-35B-A3B-8bit. 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/mlx-community/Qwen4-35B-A3B-8bit 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/mlx-community/Qwen4-35B-A3B-8bit. 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.

mlx-community/Qwen4-35B-A3B-8bit

Qwen/Qwen4-35B-A3B converted to MLX with mlx-vlm and quantized to 8-bit (affine, group size 64). The model takes both image and text input.

Note: this conversion uses the mlx-vlm weight layout. The other mlx-community/Qwen4-35B-A3B-{3,4,6}bit repos were made with mlx-lm (ml-explore/mlx-lm#2141). Load this one with mlx-vlm as shown below.

  • Source revision: c06f0c19d9411aba77f8d5948f69ae825c7161cb
  • Converted with mlx-vlm main @ bb22412 (Qwen4-MoE support from Neywa-Labs/mlx-vlm#2897), MLX 0.32.5
  • Quantization: 8-bit affine with group size 64 (8.56 bits per weight on average) for all language-model linear layers, the expert stacks, the MoE router, the embeddings, lm_head and the n-gram PLE table. The vision encoder, the norms and other small tensors stay bf16.
  • Size: 60 GB on disk
  • The MTP head is not included. It is a separate speculative-decoding artifact and mlx-vlm drops it.
  • The tokenizer is the standard Hugging Face tokenizer plus the Jinja chat template from the original repo's tokenizer-compat/. No trust_remote_code, tiktoken or xgrammar is needed.

Use with mlx-vlm

Qwen4 support is not yet in a PyPI release of mlx-vlm (0.8.2 predates it), so install from main:

pip install -U "mlx-vlm @ git+https://github.com/Neywa-Labs/mlx-vlm@main" torchvision
mlx_vlm.generate --model mlx-community/Qwen4-35B-A3B-8bit --max-tokens 2048 --temperature 1.0 \
  --prompt "Give me a short introduction to large language models."

mlx_vlm.generate --model mlx-community/Qwen4-35B-A3B-8bit --max-tokens 2048 --temperature 1.0 \
  --image photo.jpg --prompt "Describe this image."
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template

model, processor = load("mlx-community/Qwen4-35B-A3B-8bit")
prompt = apply_chat_template(processor, model.config, "Describe this image.", num_images=1)
out = generate(model, processor, prompt, image=["photo.jpg"], max_tokens=2048, temperature=1.0, top_p=0.95, top_k=20)
print(out.text)

The model thinks by default (reasoning_effort="high"). Pass enable_thinking=False to apply_chat_template to turn thinking off. Qwen's recommended sampling for thinking mode is temperature=1.0, top_p=0.95, top_k=20, min_p=0.0.

Memory

The weights take about 60 GB, so a Mac with 96 GB or more of unified memory is recommended. About 22 GB of that is the n-gram PLE embedding table. Only a few rows of it are read per token, and mlx-vlm has an experimental ple_storage option that reads them from disk instead of keeping the table in memory.

Smoke test

Run on an Apple M-series Mac with 64 GB of RAM (greedy decoding):

Prompt Output (abridged) Speed
"What is the capital of Australia? Then compute 17*23." Thinks briefly, then: Canberra is the capital of Australia. 17 × 23 = 391 37.6 tok/s
Image (mathv-1327.jpg) + "Describe this image in two sentences." This black-and-white line drawing shows a central square overlapped by four circles of varying sizes. Two larger circles occupy the top-right and bottom-left areas, while two smaller circles sit at the top-left and bottom-right… 34.9 tok/s

The test ran with the n-gram PLE table read from disk (mlx-vlm's ple_storage mmap path) so that it fit in 64 GB; peak memory was 39.6 GB.

See the original model card for benchmarks, prompting and usage details.

Downloads last month
-
Safetensors
Model size
56B params
Tensor type
U32
·
BF16
·
I64
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mlx-community/Qwen4-35B-A3B-8bit

Quantized
(399)
this model