How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="aws-prototyping/Qwen3-Coder-30B-A3B-Instruct_MXFP4")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("aws-prototyping/Qwen3-Coder-30B-A3B-Instruct_MXFP4")
model = AutoModelForCausalLM.from_pretrained("aws-prototyping/Qwen3-Coder-30B-A3B-Instruct_MXFP4")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Qwen3-Coder-30B-A3B-Instruct_MXFP4

This checkpoint is a variant of Qwen3-Coder-30B-A3B-Instruct, where expert weights have been quantized to MXFP4 format similarly to gpt-oss-20b and gpt-oss-120b.

For quantizing weights we used the function downcast_to_mxfp from triton-kernels.

The checkpoint might come with a small drop in accuracy, but has ~68% size reduction compared to the original BF16 checkpoint.

Accuracy Comparison

Model GSM8K (strict-match) GSM8K (flexible-extract)
Qwen3-Coder-30B-A3B-Instruct (BF16) 90.67% ± 0.80% 89.92% ± 0.83%
Qwen3-Coder-30B-A3B-Instruct_MXFP4 89.76% ± 0.83% 88.70% ± 0.87%

Checkpoint Size

Model Size Reduction
Qwen3-Coder-30B-A3B-Instruct (BF16) 57 GB -
Qwen3-Coder-30B-A3B-Instruct_MXFP4 18 GB 68% smaller
Downloads last month
6
Safetensors
Model size
31B params
Tensor type
BF16
·
U8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support