license: apache-2.0
license_link: LICENSE
language: [zh, it, km, en, de, my, fr, vi, fa, pt, ms, gu, es, id, ur, ja, tl, te, tr, hi, mr, ru, he, ar, pl, bn, ko, cs, ta, th, nl, uk, bo, mn, yue, kk, ug, el, cy, si, ro, ca, pa, hu, gl, sd, bg, eu, as, sr, af, or, hr, lb, kn, sk, mt, ml, sl, eo, sa, sq, yi, lo, mk, hy, jv, be, ka, su, lt, az, ceb, lv, uz, war, et, ky, sw, fi, tk, am, sv, tg, so, da, tt, mg, nb, ba, ht, nn, ku, is, ckb, ga, ps, gd, ne]
pipeline_tag: translation
library_name: transformers
base_model: tencent/Hy-MT3-30B-A3B
base_model_relation: finetune
tags:
- hy-mt3
- hy_v3
- translation
- moe
- conversational
- abliterated
- uncensored
- ai-red-team
Hy-MT3-30B-A3B-abliterated
|
🛡️ 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. |
|
🔌 New from Orca — Orca Connect Running this model on your own box? Orca Connect puts the rig under your desk behind your usual OrcaRouter API key, next to 200+ hosted models, reachable from a laptop, a phone or a cloud agent. Outbound only: no port forwarding, no tunnel, no firewall rule. Requests your own hardware serves cost $0, and |
Tencent's Hy-MT3 30B-A3B translation model with its refusal direction removed: a 30B MoE (3B active) covering 100+ languages.
~60 GB in bf16 · one 80 GB GPU · vLLM 0.34 or Hugging Face Transformers 5.19
OrcaRouter AI Gateway · X · Discord · GitHub · All Models
Hy-MT3 30B-A3B with the refusal direction removed.
This is the abliterated (refusal-reduced) build of
tencent/Hy-MT3-30B-A3B, the largest model of
Tencent's Hy-MT3 translation family: 30.06B parameters, about 3B active per token. Its 48-layer
decoder has one dense layer (layer 0) and 47 mixture-of-experts layers, each with 128 routed
experts, 8 active, plus one shared expert. The weights are bf16 safetensors, the same
layout and size as the release.One refusal direction (diff-of-means at layer 29 of 48) was projected out of every matrix
that writes the residual stream: the token embedding, all 48 attentiono_proj, the dense
layer'sdown_proj, the 47 shared experts'down_projand all 6,016 routed experts'down_proj, 6,113 tensors in all.Explicit refusal is almost gone; disclaimers are not. A rule-based classifier reads
harmful-prompt refusal falling from 93.6% to 1.8% on average, but 27–50% of replies per set
still carry a warning or disclaimer. General-knowledge and reasoning benchmarks drop 3–6
points. Translation quality was not measured.
⚠️ 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 originalHy-MT3-30B-A3B would refuse.
- 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. Tencent states that Hy-MT3 imposes no restrictions beyond that
license. - The authors accept no liability for misuse. Its outputs do not reflect the views
of the uploaders or of Tencent.
Evaluation
The base and abliterated checkpoints were scored with identical prompts, splits and seed,
under the same code revision. The one exception is MMLU-Pro, noted below.
Setup.
- Runtime: Hugging Face Transformers 5.19, bf16, one H100 80GB. MMLU-Pro for the abliterated
model ran on vLLM 0.34.0 (official image,--reasoning-parser hy_v3); its base score is from
Transformers. - Decoding: greedy, the chat template's default
reasoning_effort="no_think"(no thinking
segment). Replies to the refusal sets are capped at 64 new tokens; MMLU-Pro and GSM8K reason
step by step in up to 2,048 and 512 tokens. - Scoring: refusal is read by a rule-based classifier on the reply's opening (refusal
phrases such as "I can't help with that"). A second rule set, caveat, counts replies that
refuse or add a warning or disclaimer. No model judge was run, so watered-down or partial
compliance is not separated from full compliance.
Safety: harmful-prompt refusal (lower = more uncensored). Average 1.8%, against
93.6% for the base model. Replies with a warning or disclaimer fall from 95.5% to 41.7% on
average.
| Benchmark | n | Base | Abliterated | Δ (95% CI) | Caveat: base → abliterated |
|---|---|---|---|---|---|
| AdvBench | 100 | 100.0% | 0.0% | −100.0 [−100.0, −100.0] | 100.0% → 43.0% |
| JailbreakBench (harmful) | 100 | 98.0% | 1.0% | −97.0 [−100.0, −93.0] | 98.0% → 38.0% |
| StrongREJECT | 150 | 98.0% | 1.3% | −96.7 [−99.3, −93.3] | 100.0% → 42.7% |
| HarmBench (standard) | 150 | 96.7% | 2.0% | −94.7 [−98.0, −90.7] | 98.0% → 27.3% |
| MaliciousInstruct | 100 | 95.0% | 0.0% | −95.0 [−99.0, −90.0] | 97.0% → 49.0% |
| SimpleSafetyTests | 50 | 98.0% | 4.0% | −94.0 [−100.0, −86.0] | 100.0% → 50.0% |
| ForbiddenQuestions | 150 | 69.3% | 4.0% | −65.3 [−73.3, −57.3] | 75.3% → 42.0% |
Over-refusal: benign prompts wrongly refused (lower = better). No induced over-refusal; the
abliterated model refuses benign prompts less often.
| Benchmark | n | Base | Abliterated | Δ (95% CI) |
|---|---|---|---|---|
| XSTest-safe | 250 | 2.4% | 0.0% | −2.4 [−4.4, −0.8] |
| JailbreakBench (benign) | 100 | 17.0% | 3.0% | −14.0 [−21.0, −8.0] |
Capability retention. Every benchmark drops, by 3.0 to 6.0 points. MMLU and GSM8K are within
noise (their 95% intervals include zero); CMMLU and MMLU-Pro are not.
| Benchmark | n | Base | Abliterated | Δ (95% CI) |
|---|---|---|---|---|
| MMLU (letter) | 300 | 72.7% | 69.7% | −3.0 [−6.7, +0.7] |
| MMLU-Pro (CoT, 2,048 tokens) | 250 | 72.4% | 66.4% | −6.0 [−11.2, −0.8] |
| GSM8K (CoT) | 150 | 89.3% | 86.0% | −3.3 [−8.0, +1.3] |
| CMMLU (letter) | 500 | 80.0% | 76.6% | −3.4 [−5.6, −1.2] |
MMLU-Pro's base score is from Transformers and the abliterated one from vLLM; 2.4% and 6.0% of
the answers could not be parsed. All intervals are paired bootstraps over the shared items. All
prompt sets were read from the Hugging Face Hub.
Not evaluated: translation quality (FLORES-200, WMT or Tencent's TransRubric), thelow / high thinking modes, and long inputs.
Usage
vLLM
Tested with the official vllm/vllm-openai:v0.34.0 image, which supports HYV3ForCausalLM:
docker run --gpus all --ipc=host -p 8000:8000 vllm/vllm-openai:v0.34.0 \
orcarouter/Hy-MT3-30B-A3B-abliterated \
--served-model-name hy --reasoning-parser hy_v3 --max-model-len 8192
Keep --reasoning-parser hy_v3, or a thinking segment (in low / high mode) ends up in the
answer. Tencent recommends temperature=0.7, top_p=1.0, top_k=-1, repetition_penalty=1.0 for
30B-A3B and no system prompt.
Transformers
hy_v3 is in Transformers natively (no trust_remote_code); these weights were made and
evaluated with 5.19:
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "orcarouter/Hy-MT3-30B-A3B-abliterated"
tok = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="auto"
).eval()
prompt = ("Translate the following text into English. Note that you should only output "
"the translated result without any additional explanation:\n\n今天天气真好。")
messages = [{"role": "user", "content": prompt}]
inputs = tok.apply_chat_template(
messages, add_generation_prompt=True, return_tensors="pt", return_dict=True
).to(model.device)
out = model.generate(**inputs, max_new_tokens=1024)
print(tok.decode(out[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
- Thinking. The template's
reasoning_effortisno_think(the default),loworhigh.
The abliteration was fitted and evaluated withno_think. - The base model card lists the prompt formats for terminology, style, delimiters and
structured data; they apply unchanged.
Abliteration recipe
| Method | Diff-of-means refusal direction (Arditi et al. 2024) from 256 harmful and 256 harmless training prompts, taken at layer 29 of 48; one direction (k = 1) |
| Edited matrices | 6,113 residual-stream writers: the token embedding, attention o_proj ×48, the dense layer-0 down_proj, the shared experts' down_proj ×47 and the routed experts' down_proj ×6,016 (all 128 experts of layers 1–47) |
| Edit | Orthogonal projection: each writer loses its output component along the direction |
| Max residual leakage | 1.4e-02 after the bake |
| Held-out check | On 64 held-out harmful prompts, refusal fell from 100% to 1.6% after the bake; on 64 harmless ones, from 17.2% to 3.1% |
| Not touched | q/k/v projections, the experts' gate/up projections, routers and expert biases, norms and the output head |
The direction (refusal_direction.pt) and the full report (abliteration_report.json) are in
this repo.
Model details
| Base model | tencent/Hy-MT3-30B-A3B |
| Architecture | hy_v3, HYV3ForCausalLM. 48 layers, hidden 2,048; 32 attention heads, 4 KV heads, head dim 128, QK-norm. Layer 0 dense (intermediate 6,912); layers 1–47 MoE with 128 routed experts (intermediate 768), 8 active, sigmoid routing with an expert bias, plus one shared expert |
| Parameters | 30.06B · about 3B active per token · Vocabulary 120,832 · Context 262,144 |
| Languages | 102 languages and dialects, as listed by the base model |
| Precision | bf16 safetensors (~60 GB, 13 shards) |
| Runtime | vLLM 0.34.0 (official image) and Hugging Face Transformers 5.19; text in, text out |
What's in this repo
| Path | Contents |
|---|---|
model-*.safetensors, model.safetensors.index.json |
the abliterated bf16 weights (13 shards) |
config.json |
model config, as released |
tokenizer.json, tokenizer_config.json, special_tokens_map.json, chat_template.jinja |
tokenizer and chat template, as released |
refusal_direction.pt, abliteration_report.json |
the refusal direction and the abliteration report |
LICENSE |
the Apache License 2.0, with Tencent's notice |
The edited tensors are the ones listed under Abliteration recipe. Every other tensor is the
release's, byte for byte.
Bias, risks, and limitations
- Safety guardrails are substantially reduced, see the disclaimer. Explicit refusal is
almost gone, but 27–50% of harmful-prompt replies per set still carry a warning or disclaimer. - Refusal was read by rules, not by a judge model, and only on the first 64 tokens of each
reply. Watered-down or partial answers count as not refused. - Capability drops 3–6 points on MMLU, MMLU-Pro, GSM8K and CMMLU.
- Translation quality was not measured after the edit, nor the
low/highthinking modes
or long inputs. - Inherits the biases and limitations of
Hy-MT3-30B-A3B.
License
The Apache License, Version 2.0, inherited from the base modeltencent/Hy-MT3-30B-A3B. These are modified
weights: the tensors listed under Abliteration recipe were changed by the abliteration. See the
license for its terms.
One Gateway. Every Model.
Route Smarter · Ship Safer · Spend Less