Qwen4-35B-A3B is a vision-language mixture-of-experts model. Its language backbone has 35B parameters with 3B active per token, alongside 20B n-gram embedding parameters and a 2B multi-token prediction module. The base model combines Gated DeltaNet with Qwen Sparse Attention and has a native context of 1,048,576 tokens. Official Qwen model card
This rank-3 PEFT adapter was built from the official BF16 Qwen4-35B-A3B base. Heretic recomputed layerwise refusal directions from 8,000 archived prompts across 17 domains. The two groups each contain 2,000 Chinese and 2,000 English prompts. Magnitude-preserving orthogonal abliteration used the layer and strength parameters selected in the earlier BF16 search. The adapter changes attention output projections and shared expert down projections.
The refusal-candidate group draws from SALAD, PKU-SafeRLHF and Safety-Prompts. The normal-candidate group draws from OR-Bench, No Robots, COIG-CQIA and Safety-Prompts. Pinned source revisions, split hashes and adapter parameters
Use PEFT and tiktoken with a Qwen4-capable Transformers build. Transformers revision used for evaluation
import torch
from peft import PeftModel
from transformers import AutoModelForImageTextToText, AutoTokenizer
base_id = "Qwen/Qwen4-35B-A3B"
revision = "849378c8db0d4537b7c6731738147378729d8920"
tokenizer = AutoTokenizer.from_pretrained(base_id, revision=revision, trust_remote_code=True)
base = AutoModelForImageTextToText.from_pretrained(
base_id, revision=revision, dtype=torch.bfloat16, device_map="auto"
)
model = PeftModel.from_pretrained(base, "UnderTides/Qwen4-35B-A3B-Heretic-LoRA-dev")
The same official BF16 checkpoint generated greedy replies with the exported adapter off and on, with thinking disabled and a limit of 512 generated tokens per reply. The bilingual refusal heuristic counts empty, truncated and acknowledgement-only replies as unresolved. The same heuristic is used across the refusal evaluation sets.
| Set | Prompts | Refusals off / on | Unresolved off / on |
|---|---|---|---|
| tuning | 400 | 120 / 75 | 130 / 145 |
| Tuning en harmful | 100 | 68 / 46 | 5 / 6 |
| Tuning en harmless | 100 | 14 / 3 | 42 / 48 |
| Tuning zh harmful | 100 | 34 / 24 | 17 / 23 |
| Tuning zh harmless | 100 | 4 / 2 | 66 / 68 |
| Capability subset | Base | With adapter |
|---|---|---|
| MMLU | 279/500 | 275/500 |
| GSM8K | 95/100 | 97/100 |
| MBPP | 83/100 | 80/100 |
MMLU used a 32-token generation limit. The base and adapter reached that limit on 125 and 131 prompts, respectively. MBPP used one usage example per prompt and scored the remaining assertions on the same 100 archived tasks.
The remaining BF16 evaluation is in progress.
Qwen Team released the base model under Apache 2.0. This release uses revision
849378c8db0d4537b7c6731738147378729d8920. Base model and citation
Qwen/Qwen4-35B-A3B