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.
Instructions to use djdeniro/Qwen3.5-35B-A3B-MXFP4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use djdeniro/Qwen3.5-35B-A3B-MXFP4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="djdeniro/Qwen3.5-35B-A3B-MXFP4") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("djdeniro/Qwen3.5-35B-A3B-MXFP4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use djdeniro/Qwen3.5-35B-A3B-MXFP4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "djdeniro/Qwen3.5-35B-A3B-MXFP4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "djdeniro/Qwen3.5-35B-A3B-MXFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/djdeniro/Qwen3.5-35B-A3B-MXFP4
- SGLang
How to use djdeniro/Qwen3.5-35B-A3B-MXFP4 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "djdeniro/Qwen3.5-35B-A3B-MXFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "djdeniro/Qwen3.5-35B-A3B-MXFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "djdeniro/Qwen3.5-35B-A3B-MXFP4" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "djdeniro/Qwen3.5-35B-A3B-MXFP4", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use djdeniro/Qwen3.5-35B-A3B-MXFP4 with Docker Model Runner:
docker model run hf.co/djdeniro/Qwen3.5-35B-A3B-MXFP4
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
- Base model: Qwen Team @ Alibaba Cloud
- Quantization: @djdeniro
- Inference engine: vLLM Project
- MXFP4 specification: OCP Microscaling Formats (MX)
๐ 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
Model tree for djdeniro/Qwen3.5-35B-A3B-MXFP4
Base model
Qwen/Qwen3.5-35B-A3B-Base