Run this model with HF Jobs

Run djdeniro/Qwen3.5-35B-A3B-MXFP4 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/djdeniro/Qwen3.5-35B-A3B-MXFP4. 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/djdeniro/Qwen3.5-35B-A3B-MXFP4 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/djdeniro/Qwen3.5-35B-A3B-MXFP4. 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.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/djdeniro/Qwen3.5-35B-A3B-MXFP4. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Configuration Parsing Warning:Config file config.json cannot be fetched (too big)

Configuration Parsing Warning:Config file tokenizer_config.json cannot be fetched (too big)

๐Ÿš€ Qwen3.5-35B-A3B-MXFP4

Qwen3.5-35B-A3B quantized to MXFP4 (Microscaling FP4) precision โ€” specifically optimized for AMD Radeon RX 9700 (RDNA 4) GPUs using vLLM.


๐Ÿ“‹ Model Overview

Property Value
Base Model Qwen/Qwen3.5-35B-A3B-FP8
Architecture Mixture of Experts (MoE)
Parameters 35B total / ~3.5B active
Quantization MXFP4 (Microscaling FP4)
Inference Engine vLLM
Target Hardware AMD Radeon RX 9700 / RX 9700 XT (RDNA 4)
License Apache 2.0

๐Ÿ“ฆ Size & Compression

Version Precision Size on Disk vs FP16
Qwen3.5-35B-A3B (FP16) FP16 ~70 GB baseline
Qwen3.5-35B-A3B (FP8) FP8 35 GB โˆ’50%
Qwen3.5-35B-A3B-MXFP4 (this) MXFP4 22 GB โˆ’69%

Compared directly to the FP8 source model: โˆ’37% smaller, enabling deployment on a single 16 GB consumer GPU.


โšก Quick Start

Installation

pip install vllm --upgrade

Basic Inference

from vllm import LLM, SamplingParams

llm = LLM(
    model="djdeniro/Qwen3.5-35B-A3B-MXFP4",
    quantization="mxfp4",
    dtype="auto",
    max_model_len=8192,
)

sampling_params = SamplingParams(
    temperature=0.7,
    top_p=0.9,
    max_tokens=512,
)

outputs = llm.generate(
    ["Explain the concept of mixture of experts in neural networks."],
    sampling_params,
)

print(outputs[0].outputs[0].text)

Chat / Instruction Format

from vllm import LLM, SamplingParams
from transformers import AutoTokenizer

llm = LLM(
    model="djdeniro/Qwen3.5-35B-A3B-MXFP4",
    quantization="mxfp4",
    dtype="auto",
    max_model_len=8192,
)

messages = [
    {"role": "system", "content": "You are a helpful assistant."},
    {"role": "user", "content": "What is MXFP4 quantization and why is it useful?"},
]

tokenizer = AutoTokenizer.from_pretrained("djdeniro/Qwen3.5-35B-A3B-MXFP4")
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

sampling_params = SamplingParams(temperature=0.7, max_tokens=1024)
outputs = llm.generate([prompt], sampling_params)
print(outputs[0].outputs[0].text)

OpenAI-Compatible Server

vllm serve djdeniro/Qwen3.5-35B-A3B-MXFP4 \
    --quantization mxfp4 \
    --max-model-len 8192 \
    --port 8000
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="dummy")

response = client.chat.completions.create(
    model="djdeniro/Qwen3.5-35B-A3B-MXFP4",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "Hello! What can you do?"},
    ],
    max_tokens=512,
)

print(response.choices[0].message.content)

๐Ÿ”ง Quantization Details

Parameter Value
Source model Qwen/Qwen3.5-35B-A3B-FP8
Source precision FP8 (E4M3)
Target precision MXFP4
Block size 32 elements
Scaling granularity Per-block shared microscaling exponent
Quantized layers Linear (attention projections + FFN)
Non-quantized Embeddings, LayerNorm, LM head

๐Ÿ“Š Quality vs Compression

Model Size Quality (est.) VRAM Required
Qwen3.5-35B-A3B FP16 ~70 GB 100% (reference) 2ร— 40 GB
Qwen3.5-35B-A3B FP8 35 GB ~99.5% 1ร— 40 GB
Qwen3.5-35B-A3B MXFP4 (this) 22 GB ~97โ€“98% 1ร— 16 GB

๐Ÿ“ Repository Structure

Qwen3.5-35B-A3B-MXFP4/
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ config.json
โ”œโ”€โ”€ generation_config.json
โ”œโ”€โ”€ chat_template.jinja
โ”œโ”€โ”€ tokenizer.json
โ”œโ”€โ”€ tokenizer_config.json
โ”œโ”€โ”€ vocab.json
โ”œโ”€โ”€ merges.txt
โ”œโ”€โ”€ preprocessor_config.json
โ”œโ”€โ”€ model.safetensors.index.json
โ””โ”€โ”€ model.safetensors-0000{1..8}-of-00008.safetensors  # 22 GB total

โš ๏ธ Limitations

  • MXFP4 inference requires vLLM with MXFP4 support and RDNA 4 or compatible hardware
  • Slight quality reduction vs FP8/FP16 due to aggressive quantization
  • Not recommended for tasks requiring extreme numerical precision

๐Ÿ™ Credits


๐Ÿ“„ License

This model is released under the Apache 2.0 license, consistent with the original Qwen3.5 model.


Made with โค๏ธ for the open-source community
Optimized for AMD RDNA 4 ยท Powered by vLLM

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

Model tree for djdeniro/Qwen3.5-35B-A3B-MXFP4

Finetuned
(3)
this model