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: mlx
base_model: tencent/Hy-MT3-30B-A3B
base_model_relation: quantized
tags:
- mlx
- mlx-lm
- apple-silicon
- local
- hy-mt3
- hy_v3
- translation
- moe
- abliterated
- uncensored
- mixed-precision
- gptq
Hy-MT3-30B-A3B-abliterated-MLX
|
🛡️ 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 |
Abliterated Hy-MT3 30B-A3B (30B MoE translation model) in MLX: 21.81 GB and 15.99 GB builds for Apple Silicon.
MLX's affine quantized format · loads with stock mlx-lm (as glm4_moe) · no remote code
OrcaRouter AI Gateway · X · Discord · GitHub · All Models
Abliterated Hy-MT3 30B-A3B, run locally on Apple Silicon.
These are MLX builds of the abliterated (refusal-reduced)
tencent/Hy-MT3-30B-A3B, published in BF16 asorcarouter/Hy-MT3-30B-A3B-abliterated.
Hy-MT3 30B-A3B is Tencent's largest Hy-MT3 translation model: a 30B mixture of experts with about
3B active parameters per token, 48 layers (one dense, 47 with 128 routed experts, 8 active, plus a
shared expert), covering 100+ languages.There are two builds, named by the size of their weights: 16GB (15.99 GB, for 24 GB Macs) and
22GB (21.81 GB, for 32 GB Macs). Both are mixed precision in MLX's affine format.
mlx-lm has nohy_v3model, but Hy-MT3's architecture is the same as GLM-4 MoE's (sigmoid routing
with an expert bias, a shared expert, a dense first layer, QK-norm), so the weights are written in
theglm4_moelayout and stock mlx-lm loads them, with no remote code.Not yet run on Apple Silicon. The scores below were measured with MLX's CUDA backend on Linux;
the builds have not been run on a Mac yet. See Bias, risks, and limitations.
⚠️ 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
Hy-MT3-30B-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. 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.
Pick a build
| Build (folder) | Weights in memory | bpw | KLD ↓ | Top-1 ↑ |
|---|---|---|---|---|
Hy-MT3-30B-A3B-abliterated-MLX-22GB |
21.81 GB (20.31 GiB) | 5.90 | 0.031 | 94.9% |
Hy-MT3-30B-A3B-abliterated-MLX-16GB |
15.99 GB (14.89 GiB) | 4.33 | 0.076 | 91.0% |
- 22GB is the closer build, for a Mac with 32 GB: 94.9% of next tokens match the BF16.
- 16GB is for a Mac with 24 GB: 91.0% of next tokens match the BF16, a noticeable cut but fine
for chat and translation. - The folder names give the size of the weights, not the size of the Mac. Download one folder,
whole. - No 12GB build. A 12 GB MLX build came out at 81.9% next-token agreement (KLD 0.30), too far
from the BF16 to publish. For a 16 GB machine, use the GGUF
Mix-12G (88.0%, KLD 0.134),
whose llama.cpp types hold up better at that size.
"Weights in memory" is the folder's model-*.safetensors; "bpw" is the weights' bits over the
29.56B parameters. Budget a few GB more for the KV cache and activations. macOS lets the GPU wire
only part of the installed memory by default; to raise the limit (it resets on reboot):
sudo sysctl iogpu.wired_limit_mb=<MB>
Peak memory has not been measured on a Mac. With MLX's CUDA backend on an H100, mlx_lm.server
serving each folder through the refusal spot check below (256-token replies) peaked at
19.8 GiB (16GB) and 25.3 GiB (22GB) of GPU memory.
Evaluation
Fidelity to the BF16
Each build is scored against the abliterated BF16 it was quantized from, with full-vocabulary
KLD. The quantized weights are dequantized exactly as MLX stores them and run in Transformers next
to the BF16, so the scores carry MLX's rounding but not its kernels. The teacher is the abliterated
model, so the abliteration itself is not counted as quantization error.
The text is held-out chat rendered with the Hy-MT3 chat template: 128 windows of 2048 tokens,
scored on the assistant turns. None of it was used to make the builds.
| Weights in memory | bpw | KLD ↓ | Top-1 ↑ | |
|---|---|---|---|---|
| Abliterated BF16 (the reference) | 60.1 GB | 16 | 0 | 100% |
| 22GB (this repo) | 21.81 GB | 5.90 | 0.031 | 94.9% |
| 16GB (this repo) | 15.99 GB | 4.33 | 0.076 | 91.0% |
- For scale, plain round-to-nearest 4-bit MLX quantization (groups of 64, 16.9 GB) scored KLD 0.131
the same way: the 16GB build is both smaller and closer. - Our automated release gate is not reported for these builds: the version we ran miscounts the
weights of an MLX build (2.55B instead of 29.56B), which makes its size-matched threshold
meaningless for MLX. The KLD and top-1 above are measured directly. - For scale, the GGUF builds of the same model (llama.cpp's own KLD, 8 windows) are at 0.076
(Mix-16G) and 0.134 (Mix-12G).
Abliteration
These numbers were measured on the abliterated BF16 in Hugging Face Transformers 5.19, against the
original Hy-MT3-30B-A3B, with identical prompts, splits and seed; greedy, the chat template's
default reasoning_effort="no_think". Refusal is read by a rule-based classifier on the first
64 new tokens; caveat counts replies that refuse or add a warning or disclaimer.
Safety: harmful-prompt refusal (lower = more uncensored). Average 1.8%, against 93.6%
for the base model. 27–50% of the abliterated model's replies per set still carry a caveat.
| Benchmark | n | Base | Abliterated | Caveat: base → abliterated |
|---|---|---|---|---|
| AdvBench | 100 | 100.0% | 0.0% | 100.0% → 43.0% |
| JailbreakBench (harmful) | 100 | 98.0% | 1.0% | 98.0% → 38.0% |
| StrongREJECT | 150 | 98.0% | 1.3% | 100.0% → 42.7% |
| HarmBench (standard) | 150 | 96.7% | 2.0% | 98.0% → 27.3% |
| MaliciousInstruct | 100 | 95.0% | 0.0% | 97.0% → 49.0% |
| SimpleSafetyTests | 50 | 98.0% | 4.0% | 100.0% → 50.0% |
| ForbiddenQuestions | 150 | 69.3% | 4.0% | 75.3% → 42.0% |
Over-refusal: benign prompts wrongly refused (lower = better).
| Benchmark | n | Base | Abliterated |
|---|---|---|---|
| XSTest-safe | 250 | 2.4% | 0.0% |
| JailbreakBench (benign) | 100 | 17.0% | 3.0% |
Capability retention.
| Benchmark | n | Base | Abliterated |
|---|---|---|---|
| MMLU (letter) | 300 | 72.7% | 69.7% |
| MMLU-Pro (CoT, 2,048 tokens) | 250 | 72.4% | 66.4% |
| GSM8K (CoT) | 150 | 89.3% | 86.0% |
| CMMLU (letter) | 500 | 80.0% | 76.6% |
MMLU-Pro's base score is from Transformers and the abliterated one from vLLM 0.34.0.
Refusal after quantization, a spot check. Each build was served with mlx_lm.server (MLX's
CUDA backend) and given 200 harmful prompts, a seeded sample spread over the seven sets above in
proportion, with 256-token replies, scored with the same rule-based classifier. The BF16 column is
the abliterated BF16's verdict on the same 200 prompts (64-token replies; the classifier reads the
opening of a reply, so refusal compares directly).
| Set | n | The BF16 | 16GB | 22GB |
|---|---|---|---|---|
| AdvBench | 25 | 0.0% | 0.0% | 0.0% |
| JailbreakBench (harmful) | 25 | 4.0% | 0.0% | 4.0% |
| StrongREJECT | 37 | 0.0% | 0.0% | 0.0% |
| HarmBench (standard) | 38 | 0.0% | 0.0% | 0.0% |
| MaliciousInstruct | 25 | 0.0% | 0.0% | 0.0% |
| SimpleSafetyTests | 12 | 0.0% | 8.3% | 0.0% |
| ForbiddenQuestions | 38 | 5.3% | 7.9% | 5.3% |
| All 200 | 1.5% | 2.0% | 1.5% | |
| Caveat, all 200 | 39.0% | 58.5% | 55.5% |
Quantization leaves refusal where the BF16 put it. The caveat share reads higher on these builds
mostly because their replies are four times longer (256 tokens against 64), so a warning has more
room to appear.
The capability benchmarks above were not rerun on these files.
How the builds were made
Both builds are quantized from the abliterated BF16 with our own mixed-precision pipeline: a search
measures where the model is most sensitive and gives each module its bit width within the size
budget, and the weights are then rounded with error compensation (GPTQ) rather than
round-to-nearest. Everything is stored in MLX's affine format, so stock MLX runs it; each folder'sconfig.json (quantization) lists the bits of every module.
| 22GB | 16GB | |
|---|---|---|
| Routed experts | 4- to 6-bit (mostly 5) | 3- to 5-bit (mostly 3 and 4) |
| Shared experts, attention, dense layer | 6- to 8-bit | 3- to 6-bit |
| Embedding, output head | 6-bit | 6-bit |
| Norms, router, expert bias | BF16 | BF16 |
| Weights in memory | 21.81 GB | 15.99 GB |
All quantized modules are affine with groups of 64.
What's in this repo
| Path | Size | Contents |
|---|---|---|
Hy-MT3-30B-A3B-abliterated-MLX-22GB/ |
21.81 GB | the 22GB build |
Hy-MT3-30B-A3B-abliterated-MLX-16GB/ |
15.99 GB | the 16GB build |
LICENSE |
the Apache License 2.0, with Tencent's notice |
Each folder is a complete model directory:
| File | Contents |
|---|---|
model-*.safetensors, model.safetensors.index.json |
the quantized model |
config.json |
the model config (model_type: glm4_moe), with the per-module quantization |
tokenizer.json, tokenizer_config.json, special_tokens_map.json, chat_template.jinja |
tokenizer and chat template, as released |
LICENSE |
the Apache License 2.0, with Tencent's notice |
Usage (MLX)
These files were made and checked with mlx-lm 0.32.2 and MLX 0.32.4:
pip install "mlx==0.32.4" "mlx-lm==0.32.2"
# the 16GB build (for the 22GB build, use Hy-MT3-30B-A3B-abliterated-MLX-22GB)
hf download orcarouter/Hy-MT3-30B-A3B-abliterated-MLX \
--include "Hy-MT3-30B-A3B-abliterated-MLX-16GB/*" --local-dir .
from mlx_lm import load, generate
model, tokenizer = load("Hy-MT3-30B-A3B-abliterated-MLX-16GB")
prompt = ("Translate the following text into English. Note that you should only output "
"the translated result without any additional explanation:\n\n今天天气真好。")
text = tokenizer.apply_chat_template([{"role": "user", "content": prompt}], add_generation_prompt=True)
print(generate(model, tokenizer, prompt=text, max_tokens=512))
Or serve it with an OpenAI-compatible API:
mlx_lm.server --model Hy-MT3-30B-A3B-abliterated-MLX-16GB --port 8080
- Thinking. The template's
reasoning_effortisno_think(the default),loworhigh. The
abliteration was fitted and evaluated withno_think. - Translation prompts. The base model card lists the prompt formats for plain translation,
terminology, style, delimiters and structured data. Tencent recommendstemperature=0.7, top_p=1.0, top_k=-1, repetition_penalty=1.0for 30B-A3B and no system prompt. - Checked on Linux, not on a Mac. Both folders, as uploaded, load and generate with mlx-lm on
MLX's CUDA backend (a three-prompt serving check and the 200-prompt spot check). - Transformers may warn about an "incorrect regex pattern" in the tokenizer when mlx-lm loads it;
the replies in our checks were well-formed in Chinese and English.
Model details
| Base model | tencent/Hy-MT3-30B-A3B, abliterated (BF16) |
| Architecture | hy_v3, stored as mlx-lm's glm4_moe (n_group=1, topk_group=1). 48 layers, hidden 2,048; 32 attention heads, 4 KV heads, QK-norm; layer 0 dense, layers 1–47 MoE with 128 routed experts, 8 active, plus one shared expert |
| Parameters | 29.56B in the files · about 3B active per token · Vocabulary 120,832 |
| Abliteration | The refusal direction removed from the weights, in BF16, before quantization |
| Quantization | Mixed-precision affine, groups of 64, GPTQ rounding; bits per module set by a sensitivity search |
| Context | 262,144 tokens (inherited; evaluated at 2K) |
| Runtime | mlx-lm 0.32.2 with MLX 0.32.4 |
Bias, risks, and limitations
- Safety guardrails are substantially reduced, see the disclaimer. On the BF16, explicit
refusal is almost gone, but 27–50% of harmful-prompt replies per set still carry a warning. - Not yet run on Apple Silicon. The scores come from MLX's CUDA backend on Linux; speed, peak
memory and Metal-specific behaviour on a Mac are unknown. - The 16GB build is noticeably, not fully, faithful to the BF16 (91.0% next-token agreement);
the 22GB build is closer (94.9%). - The benchmark suite was run on the BF16, not on these files. Translation quality was not
measured, on the BF16 or on these files. - Not measured on these files: downstream accuracy, translation quality, long context, the
low/highthinking modes. All fidelity measurements are on chat text at 2K context. - 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. Abliteration and
quantization do not change the license obligations. See the license for its terms.
One Gateway. Every Model.
Route Smarter · Ship Safer · Spend Less