Qwen4 35B-A3B
Qwen's multimodal 35B MoE (3B active) model with 1M native context, controllable reasoning, and tool calling for Jetson AGX Thor and AGX Orin.
Serve the model
Pick your Jetson, then copy the command and paste it into a terminal on the Jetson. New to Jetson? Setup guide
Model Details
Qwen4-35B-A3B is Alibaba’s open-weight multimodal Mixture-of-Experts model with 35B total parameters (3B active per token), a 20B n-gram embedding table, and a 2B multi-token prediction (MTP) head. It combines linear attention (Gated DeltaNet) and sparse attention (Qwen Sparse Attention) for a 1M-token native context window, and accepts text, images, and video as input.
What it is good at
- Coding and agentic workflows: multi-step software engineering, repository work, tool calling, and structured outputs.
- Controllable reasoning: thinking is enabled by default (
reasoning_effort="high") with preserved thinking across turns, and can be adjusted per request (off,low,high,xhigh). - Multimodal understanding: accepts images and video alongside text for UI, chart, document, and visual reasoning tasks.
- Compact memory footprint: the NVFP4 checkpoint is 42.5 GiB on disk and uses about 24 GiB of memory (the 19 GiB n-gram table stays on SSD), leaving room for KV cache on both AGX Thor and 64 GB AGX Orin.
Prerequisites
- Hardware: Jetson AGX Thor (128 GB) or Jetson AGX Orin (64 GB)
- JetPack: JetPack 7.2.1 (
R39.2.1) - Storage: NVMe SSD with at least 85 GB free
Step 1: Start the vLLM server
Select AGX Thor or AGX Orin 64GB in the Serve the model section above, copy the command, and run it in a terminal on your Jetson.
- The first launch downloads the container and model weights; subsequent starts will be much faster.
- Wait until the logs print
OpenAI server is ready to accept requestson port8000.
The command above is a general default. Depending on your use case, it is recommended to tune these three settings:
- Context length (
--max-model-len): set to 256K (262144) by default. Lower it if you need more memory headroom, or raise it up to 1M on AGX Thor for very long prompts. - Speculative decoding (
num_speculative_tokens): set to3by default. Try1,2, or turning MTP off to see what works best for your prompts and concurrency. - Memory utilization (
--gpu-memory-utilization): set to0.70on AGX Thor and0.75on AGX Orin by default. Adjust it based on how much memory other apps on your Jetson need.
Step 2: Send a request
Quick check with curl
curl http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "local-inference-lab/Qwen4-35B-A3B-NVFP4",
"messages": [
{"role": "user", "content": "Write a Python function to merge two sorted lists."}
]
}'
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
response = client.chat.completions.create(
model="local-inference-lab/Qwen4-35B-A3B-NVFP4",
messages=[{"role": "user", "content": "Explain how Gated DeltaNet differs from standard attention."}],
extra_body={
"chat_template_kwargs": {
"reasoning_effort": "high", # "off", "low", "high", or "xhigh"
},
},
)
print("Reasoning:", response.choices[0].message.reasoning)
print("Answer:", response.choices[0].message.content)
For fast non-thinking replies, set "reasoning_effort": "off".