Downloads · 30 days
36
2% of all-time downloads
mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ
Qwen3-Coder-30B-A3B-REAP-AWQ is a text generation model from mattbucci. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
In-house REAP-pruned and AWQ-quantized variant of Qwen/Qwen3-Coder-30B-A3B-Instruct, built end-to-end from the upstream BF16 base.
Downloads · 30 days
36
2% of all-time downloads
All-time downloads
1.5K
Public
Parameters
23.3B
26.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors26.1 GB · 100%
How the weights are stored.
I3222.6B · 97%
From the Hugging Face model README
In-house REAP-pruned and AWQ-quantized variant of Qwen/Qwen3-Coder-30B-A3B-Instruct, built end-to-end from the upstream BF16 base.
S_{L,E} = Σ_t (gate_t_E × ||down_proj_E(x_t)||₂) accumulated over 1024 code-mix calibration samples; top-96 experts per layer kept.moe_calibrate_all_experts=True so every expert sees every token (eliminates the rare-routed-expert zero-scale failure mode).ignore list); only the per-expert Linears are INT4-packed.| Field | Value |
|---|---|
| Class | Qwen3MoeForCausalLM |
| Hidden layers | 48 |
| Experts | 96 per layer (pruned from 128) |
| Active experts per token | 8 |
| Hidden size | 2048 |
| Quant format | AWQ 4-bit, group_size=128 |
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ",
torch_dtype="bfloat16",
device_map="auto",
)
tok = AutoTokenizer.from_pretrained("mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ")
messages = [{"role": "user", "content": "Write a Python function that returns the nth Fibonacci number using memoization."}]
text = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tok(text, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=300, temperature=0.1)
print(tok.decode(out[0][inputs.input_ids.shape[1]:], skip_special_tokens=True))
The model uses Qwen3-Coder's tool-call XML format (<function=NAME>...):
python -m sglang.launch_server \
--model-path mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ \
--quantization moe_wna16 \
--dtype bfloat16 \
--tool-call-parser qwen3_coder \
--tensor-parallel-size 2 \
--context-length 32768 \
--disable-cuda-graph
finish_reason: stop.moe_calibrate_all_experts=True which forces every token through every kept expert during the Hessian collection phase, removing the rare-routed-expert blind spot that caused zero-scale failures in earlier MoE AWQ ships.Apache 2.0, inherited from Qwen/Qwen3-Coder-30B-A3B-Instruct.