orcarouter/Qwen4-35B-A3B-abliterated-GGUF Text Generation • 56B • Updated about 12 hours ago • 248

You need to agree to share your Hugging Face information to access this model This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Log in or S
You need to agree to share your Hugging Face information to access this model
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Log in or Sign Up to review the conditions and access this model content.
Qwen4-35B-A3B-abliterated GGUF|
🧰 New from Orca — OrcaPod Run AI pentesting harnesses without installing them. 16 pentesting & red-team harnesses (Strix, PentAGI, PentestGPT, HexStrike AI, RedAmon and more) and 6 coding agents (Claude Code, Codex, Gemini CLI, OpenCode, Goose, Hermes) each run on an isolated cloud worker, in a browser terminal, browser VS Code or their own web UI, pointed at 15 OrcaCyber models from your plan. Verified-domain targets only. |
|
🛡️ New from Orca — OrcaCyber Zero 1.5 Post-trained for cybersecurity: vulnerability analysis, vulnerability reproduction, red teaming & offensive-security research. 98.01% pass@1 on CyberGym Level 1 · 1M context · function calling · OpenAI-compatible API. |
|
🔓 All hosted cyber and abliterated models as API Skip the download: OrcaRouter serves its cybersecurity and abliterated models behind one OpenAI-compatible API key. |
The uncensored Qwen4-35B-A3B in llama.cpp, on one 24 GB GPU.
31 GB and 33 GB builds · the 20B n-gram table stays on disk · built-in MTP drafting
OrcaRouter AI Gateway · X · Discord · GitHub · All Models
Abliterated Qwen4-35B-A3B, run locally.
These are GGUF builds of an abliterated (refusal-removed)
Qwen/Qwen4-35B-A3B: a 35B mixture of experts with about 3B active per token, hybrid linear and sparse attention, a built-in MTP head, and a 20B n-gram embedding table that is read, not computed.Harmful-prompt refusal drops from 92% to 7%, with no loss in general capability.
Each build keeps the n-gram table in a form llama.cpp can leave on disk and read on demand, so only the rest of the model has to fit in memory.
⚠️ Disclaimer: read before use
This model is abliterated: its safety alignment has been substantially reduced. It will comply with many harmful, unethical, offensive, or illegal requests that the original Qwen4-35B-A3B would refuse.
- It is released strictly for legitimate research: interpretability, AI safety and refusal-mechanism study, red teaming, and robustness evaluation.
- You assume full responsibility for how you use it and for everything it generates. Add your own safety, moderation and abuse-prevention layers before any deployment.
- Use must comply with the Apache License 2.0 inherited from the base model, and with all applicable law.
- The authors accept no liability for misuse. Its outputs do not reflect the views of the uploaders or of the Qwen team.
Pick a build
| Build | File | KLD ↓ | Top-1 ↑ | PPL vs. BF16 | GPU memory, 32K context |
|---|---|---|---|---|---|
Mix-33G |
33.10 GB | 0.080 | 91.5% | +3.1% | 22.5 GB |
Mix-31G |
30.88 GB | 0.117 | 89.7% | +6.3% | 20.4 GB |
- Mix-33G fits a 24 GB GPU (22.5 GB in use at 32K context). 91.5% of next tokens match the BF16: a noticeable loss that is fine for chat and coding help.
- Mix-31G leaves more room (20.4 GB at 32K context) for longer contexts or a smaller card. 89.7% of next tokens match: long reasoning and math are clearly degraded.
Use Mix-33G if you have the memory.
GPU memory is what llama-server used on one GPU with the n-gram table left on disk (the command below), one 32K-token slot, while it read a 32K-token prompt. The table (11.5 GB of each file) is read from the file as needed, so keep the file on an SSD.
Evaluation
Fidelity to the BF16
Each build is scored against the abliterated BF16 GGUF with llama.cpp's full-vocabulary KL divergence, on 80 windows of 2048 tokens. The text is the model's own answers, reasoning included, to held-out prompts that were not used to make the builds, and only the assistant tokens are scored.
| File | KLD ↓ | Top-1 ↑ | PPL vs. BF16 | |
|---|---|---|---|---|
| Mix-33G | 33.10 GB | 0.080 | 91.5% | +3.1% |
| Mix-31G | 30.88 GB | 0.117 | 89.7% | +6.3% |
Method note. These are full-vocabulary KLD and next-token agreement at 2K context, not a downstream benchmark.
Abliteration
These numbers were measured on the abliterated BF16 against the original Qwen4-35B-A3B, served by vLLM with Qwen4's reasoning parser, with identical prompts, splits and seed, greedy decoding and thinking on (the default effort). Refusal is judged on the final answer by a rule-based classifier, not an LLM judge, so treat the numbers as indicative.
Harmful-prompt refusal (lower = more uncensored). Average 7.2%, against 91.9% for the original.
| Benchmark | n | Original | Abliterated | Caveat (original → abliterated) |
|---|---|---|---|---|
| AdvBench | 100 | 98.0% | 7.0% | 82.0% → 42.0% |
| JailbreakBench (harmful) | 100 | 95.0% | 7.0% | 73.0% → 38.0% |
| StrongREJECT | 150 | 98.0% | 6.7% | 70.7% → 42.0% |
| HarmBench (standard) | 150 | 98.7% | 11.3% | 70.7% → 33.3% |
| MaliciousInstruct | 100 | 96.0% | 2.0% | 69.0% → 23.0% |
| SimpleSafetyTests | 50 | 100.0% | 12.0% | 66.0% → 20.0% |
| ForbiddenQuestions | 150 | 57.3% | 4.0% | 66.7% → 31.3% |
The model now answers, but often still opens with a safety disclaimer (the caveat column).
Over-refusal on benign prompts (lower = better).
| Benchmark | n | Original | Abliterated |
|---|---|---|---|
| XSTest-safe | 250 | 4.4% | 1.2% |
| JailbreakBench (benign) | 100 | 20.0% | 5.0% |
Capability. Every change is within the 95% confidence interval except CMMLU, which went up.
| Benchmark | n | Original | Abliterated |
|---|---|---|---|
| MMLU | 300 | 92.3% | 91.3% |
| MMLU-Pro (CoT) | 250 | 85.6% | 86.8% |
| GSM8K (CoT) | 150 | 95.3% | 95.3% |
| CMMLU | 500 | 90.4% | 92.0% |
Refusal and capability were measured on the BF16, not on these builds.
How the builds were made
A refusal subspace was estimated from the model's own activations on harmful and harmless prompts and projected out of every weight that writes to the model's working stream; nothing was trained. The builds were then quantized from the abliterated BF16 with an importance matrix, mixing llama.cpp types tensor by tensor, with the n-gram table at IQ4_NL.
What's in this repo
| Path | Size | Contents |
|---|---|---|
Qwen4-35B-A3B-abliterated-Mix-33G.gguf |
33.10 GB | the 33 GB build (32 GB tier) |
Qwen4-35B-A3B-abliterated-Mix-31G.gguf |
30.88 GB | the 31 GB build (24 GB tier) |
LICENSE |
Apache License 2.0, from the base model |
Each build is a single file with the chat template, the MTP head and Qwen's sampling defaults embedded. These are text-only builds.
Serving (llama.cpp, Ollama)
Qwen4 is supported in llama.cpp from ggml-org/llama.cpp#33626 (release b12969 and later). These files were made and tested with b12973:
git clone https://github.com/ggml-org/llama.cpp && cd llama.cpp
git checkout b12973 # or any later release
cmake -B build -DGGML_CUDA=ON && cmake --build build -j --target llama-server llama-cli
# Mac: cmake -B build (Metal is on by default) · CPU only: cmake -B build
hf download orcarouter/Qwen4-35B-A3B-abliterated-GGUF Qwen4-35B-A3B-abliterated-Mix-33G.gguf --local-dir ./qwen4-gguf
llama-server -m qwen4-gguf/Qwen4-35B-A3B-abliterated-Mix-33G.gguf -ngl 99 -c 32768 --jinja \
--load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPU \
--temp 1.0 --top-p 0.95 --top-k 20 --min-p 0.0
- The n-gram table stays on disk.
--load-mode mmap --lazy-mode on -ot per_layer_token_embd=CPUkeeps it out of GPU memory and reads only the rows each token needs. - Thinking is on by default. With
--jinja, llama-server returns the reasoning inmessage.reasoning_contentand the answer inmessage.content. For non-thinking mode add--reasoning offand use Qwen's non-thinking sampling (--temp 0.7 --top-p 0.8 --top-k 20 --presence-penalty 1.5). - Tool calls come back in
message.tool_callsthrough the OpenAI-compatible API. - Faster decoding with the built-in MTP head: add
--spec-type draft-mtp --spec-draft-n-max 2. In our test (a coding prompt, greedy) 71–75% of the drafted tokens were accepted.
Ollama
Ollama supports Qwen4 from v0.40.21. Download a file, then create a model with Qwen4's renderer and parser and Qwen's sampling defaults:
cat > Modelfile <<'EOF'
FROM ./qwen4-gguf/Qwen4-35B-A3B-abliterated-Mix-33G.gguf
RENDERER qwen4
PARSER qwen4
PARAMETER temperature 1
PARAMETER top_k 20
PARAMETER top_p 0.95
PARAMETER min_p 0
PARAMETER draft_num_predict 4
EOF
ollama create qwen4-abliterated -f Modelfile
ollama run qwen4-abliterated
Tested with Ollama v0.40.21 on one GPU with num_ctx 32768: thinking, tool calls and MTP drafting work, and
Ollama leaves the n-gram table out of GPU memory on its own. GPU memory while reading a 27.6K-token prompt was
23.6 GB for Mix-33G and 21.4 GB for Mix-31G.
Model details
| Base model | Qwen/Qwen4-35B-A3B, abliterated |
| Architecture | qwen4 in llama.cpp. 40 layers: 30 Gated DeltaNet (linear-attention) + 10 sparse-attention layers; 256 routed experts (top-8) and a shared expert; four-way hyper-connections; an n-gram embedding table on layer 1; one MTP layer |
| Parameters | 35B (about 3B active per token) + a 20.5B n-gram lookup table · Vocabulary 248,320 |
| Context | up to 1,048,576 tokens (inherited; fidelity evaluated at 2K) |
| Runtime | llama.cpp b12969 or later; text in, text out |
Bias, risks, and limitations
- Safety guardrails are substantially reduced. See the disclaimer. The model still often prefaces compliant answers with a disclaimer.
- Refusal numbers come from a rule-based classifier, not an LLM judge.
- Refusal and capability were measured on the BF16, not on these builds. The builds were checked for fidelity (KLD) and for coherent answers and tool calls.
- Not measured: coding and agentic benchmarks, long context (fidelity is measured at 2K), vision, and speed outside NVIDIA GPUs.
- Tested on CUDA only. CPU and Apple Metal have not been run with these files.
- Inherits the biases and limitations of
Qwen/Qwen4-35B-A3B.
License
The Apache License 2.0, inherited from the base model
Qwen/Qwen4-35B-A3B.
One Gateway. Every Model.
Route Smarter · Ship Safer · Spend Less
Website · Models · GitHub · Discord · X
Downloads last month - GGUF Model size 56B params Architecture qwen4exp Hardware compatibility Log In to add your hardwareWe're not able to determine the quantization variants.
View all variantsModel tree for orcarouter/Qwen4-35B-A3B-abliterated-GGUF
Base model
Qwen/Qwen4-35B-A3B Quantized (397) this model Quantizations 4 models