Run this model with HF Jobs

Run atakans/Qwen4-35B-A3B-NVFP4A16 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 and TRL to fine-tune https://huggingface.co/atakans/Qwen4-35B-A3B-NVFP4A16. 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/atakans/Qwen4-35B-A3B-NVFP4A16 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/atakans/Qwen4-35B-A3B-NVFP4A16. 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.

Qwen4-35B-A3B NVFP4A16

An NVFP4 weight-only (W4A16) build of Qwen/Qwen4-35B-A3B, made with NVIDIA ModelOpt 0.48 from Qwen's BF16 weights. The weights of the 256 routed experts and the n-gram table are NVFP4, the activations stay BF16; every other weight is Qwen's BF16, unchanged. It is 36 GB on disk.

Build Size
Qwen/Qwen4-35B-A3B (BF16) 114 GB
Qwen/Qwen4-35B-A3B-FP8 60 GB
This build 36 GB

Weight-only FP4 keeps the activations in BF16: nothing is rounded to 4 bits at run time, and it runs on GPUs without FP4 tensor cores through FP4 weight-only kernels. A W4A4 build with calibrated activations is atakans/Qwen4-35B-A3B-NVFP4.

The model

From Qwen's model card: a causal language model with a vision encoder. 35B parameters with 3B active per token, plus a 20B-parameter n-gram embedding and a 2B MTP layer. 40 layers in the layout 10 ร— (3 ร— (Gated DeltaNet โ†’ MoE) โ†’ 1 ร— (Qwen Sparse Attention โ†’ MoE)); 256 experts with 8 routed and 1 shared active; 4-branch gated residuals; 1,048,576 tokens of context natively.

What is quantized

Part Format
Routed experts, all 40 layers (gate, up, down) NVFP4 W4A16: FP4 E2M1 weights with one FP8 E4M3 scale per 16 values, BF16 activations
N-gram (PLE) table at layer 2 (layers.1 in the weights), 128 shards NVFP4 weights: FP4 E2M1, one FP8 E4M3 scale per 16 values, one global scale for the table
Everything else: Gated DeltaNet, Qwen Sparse Attention and its indexer, routers, shared experts, gated residuals, n-gram projections, embeddings, lm_head, vision encoder, MTP layer BF16, unchanged

The n-gram table uses the NVFP4 layout of NVIDIA's own FP4 build of this architecture (ngram_embedding.shard_N.weight U8, shard_N.weight_scale FP8 E4M3, one weight_scale_2 for the table), and text_config.ple_embedding_dtype is nvfp4 so the engine loads it as such. The table is a lookup with no activations, so it was quantized from its BF16 values with ModelOpt's NVFP4 weight quantizer and no calibration. Each expert's gate and up projections share one global scale, as fused MoE kernels expect.

How it was made

  • Tool: NVIDIA ModelOpt 0.48.0, transformers 5.26.0, PyTorch 2.14.1 (CUDA 13.0).
  • Hardware: 2x NVIDIA RTX PRO 6000 Blackwell (96 GB each).
  • Weight-only quantization has no calibration pass; the export took under two minutes.
  • Source: Qwen/Qwen4-35B-A3B at 849378c.
  • The MTP layer stays in BF16, so it works as the speculative draft.

Serving

Qwen4 runs on the dedicated vllm/vllm-openai:qwen4 image. A tested command for one NVIDIA DGX Spark (GB10) will be added here with the measurements below.

Qwen's recommended settings apply unchanged:

  • Thinking is on by default (reasoning_effort="high"). chat_template_kwargs: {"enable_thinking": false} turns it off; the levels are xhigh, high, low and off.
  • Thinking mode: temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0.
  • Non-thinking mode: temperature=0.7, top_p=0.8, top_k=20, min_p=0.0, presence_penalty=1.5.

The tokenizer, chat template and processor files are Qwen's, unchanged. Qwen's reference tokenizer needs trust_remote_code=True.

Measured on one DGX Spark

Running now: decode speed, long-context speed, GPQA Diamond and IFEval, against Qwen's official FP8 on the same Spark, engine and settings. Results will be added here.

License

Apache-2.0, the same as the base model.

Downloads last month
52
Safetensors
Model size
40B params
Tensor type
BF16
ยท
U8
ยท
I64
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for atakans/Qwen4-35B-A3B-NVFP4A16

Quantized
(704)
this model