← back to catalog · registered 2026-08-22 13:56

ymcki/gemma-2-2b-jpn-it-abliterated-17-ORPO

ymcki Gemma 2.6B
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - we'll show exact numbers.

Reading real hardware from your app right now. Numbers below are exact.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/ymcki%2Fgemma-2-2b-jpn-it-abliterated-17-ORPO"
Response includes
  • classification m4
  • files 12
  • benchmarks 5 entries
  • hub_downloads_all_time 445
  • author_summary 6 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M4
Primary method

Abliterate + heal

Applied on top of direct removal inherited from the base model.
Confidence
LOW
Inherited from base model
Why this label 2 signals
Weak or ambiguous signals. Best guess based on catalog patterns; treat as tentative and check the evidence below.
  • 'healed'/'orpo'/'dpo' in name suggests heal step after abliteration
  • M4 = abliterate + heal pipeline
Refusal direction extraction

No specific extraction method could be identified for this model. The producer either did not document it or used a proprietary pipeline.

What is a refusal direction? →
Downloads · lifetime
445
50 last 30d - stable
Likes
1
Descendants
2
in 2 direct forks
Model age
24mo ago
created 2024-10-18

Training datasets

1 of 1 in /datasets

Corpora the author lists in the model card. Datasets tracked in our /datasets catalog carry a category badge linking to the workflow stage. Others open on Hugging Face.

Downloads over time
Now480→from36↑1,233%
017635152736 on Oct 16, 2024480 on Oct 11Oct '24Feb '25Jun '25Oct '25FebJunOct
Oct 16, 2024 → Oct 11 · 143 snapshots · spans 725 days

Benchmarks

Portrait before abliteration
Benchmarks of the base model as it stood before the refusal-removal operation. Compare with the numbers above to see what the operation cost.
Benchmark Score Source
BBH average 0.38863665845116097 OpenLLM-v2
IFEval instruct 0.5863309352517986 OpenLLM-v2
IFEval-Prompt 0.4713493530499076 OpenLLM-v2
MATH lvl 5 0 OpenLLM-v2
MMLU-Pro 0.2466755319148936 OpenLLM-v2

Genealogy 2 direct forks

Full fork graph →

This model's place in the market. Above: what it was derived from. Below: the tree of everything derived from it.

Metadata

License
gemma
Languages
multilingual
Tags
transformers safetensors gemma2 text-generation nlp code conversational multilingual dataset:mlabonne/orpo-dpo-mix-40k base_model:google/gemma-2-2b-jpn-it base_model:finetune:google/gemma-2-2b-jpn-it license:gemma

Related

Total size
4.87 GB
Files
12
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2024-10-26 23:47

Files by quantization

Auxiliary files 12 files 4.91 GB
model-00001-of-00002.safetensors 4.65 GB 3be860ac download
model-00002-of-00002.safetensors 230 MB b25fbec9 download
tokenizer.json 32.8 MB 798ce05b download
tokenizer.model 4.04 MB 6969e640 download
tokenizer_config.json 46.0 KB ca2c3398 download
model.safetensors.index.json 23.7 KB 622a086f download
README.md 5.67 KB f7ec4032 download
.gitattributes 1.53 KB 52373fe2 download
config.json 886 B 4fd8fd2d download
special_tokens_map.json 557 B 566ce810 download
generation_config.json 183 B cecd1c53 download
added_tokens.json 53.0 B c364e155 download

README current version from Hugging Face


base_model: google/gemma-2-2b-jpn-it
language:

  • multilingual
    datasets:
  • nlp
  • code
    quantized_by: ymcki
    widget:
  • messages:
    • role: user
      content: Can you provide ways to eat combinations of bananas and dragonfruits?

Original model: https://huggingface.co/google/gemma-2-2b-jpn-it

Prompt format

<start_of_turn>user
{prompt}<end_of_turn>
<start_of_turn>model
<end_of_turn>
<start_of_turn>model

Note that this model does not support a System prompt.

This is abliterated model of google/gemma-2-2b-jpn-it using the
method
described by mlabonne.

Layer 17 of the original model was chosen for abliteration.
I also created another layer 18 and 24 abliterated model for comparison.

ORPO fine tuning was performed for four, eight and twelve epoches. Lowest eval
at the end of the fourth epoch was at 3.72 epoch. Lowest eval_loss at the
end of the eighth epoch was 7.48 epoch. Lowest eval_loss at the end of the
twelve epoch was 11.96 epoch. Checkpoint at 11.96 epoch was chosen to generate this model.

Epoch loss eval_loss eval_logps/rejected eval_logps/chosen
1.00 1.2015 1.0501 -1.0451 -0.7449
2.00 1.2576 1.0145 -1.1346 -0.7248
3.00 0.9310 0.9958 -1.2629 -0.7332
3.72 0.7453 0.9848 -1.2205 -0.7006
4.00 0.8866 0.9857 -1.2231 -0.7019
5.00 0.8696 1.0204 -1.2242 -0.7523
6.00 0.9807 0.9959 -1.3093 -0.7257
7.00 0.3851 0.9687 -1.3826 -0.7103
7.48 1.2072 0.9638 -1.4512 -0.6959
8.00 1.4118 0.9653 -1.5047 -0.6990
9.00 1.1466 1.0070 -1.6149 -0.7567
10.00 1.4646 0.9801 -1.9078 -0.7207
11.00 1.8303 0.9620 -2.0278 -0.7096
11.96 0.9252 0.9372 -2.0292 -0.6692
12.00 1.1489 0.9560 -1.9191 -0.7226

The fine tuned model is uploaded here to be evaluated by the Open LLM Leaderboard to see if the slightly brain damaged non-ORPO model can be healed. Again, the fine tuning method is also based on one described by mlabonne but the input model was read into VRAM by unsloth to allow using the full 40k dataset to run on a single 3090.

Benchmark (100.0*raw scores only)

Click on the model name go to the raw score json generated by Open LLM Leaderboard.

Model Average IFEval BHH Math Lv5 GPQA MUSR MMLU-PRO
gemma-2-2b-jpn-it 30.82 54.11 41.43 0.0 27.52 37.17 24.67
gemma-2-2b-jpn-it-abliterated-17-ORPO (4 epoches) 29.99 50.94 38.59 2.87 27.43 38.23 21.86
gemma-2-2b-jpn-it-abliterated-17-ORPO (8 epoches) 29.42 48.95 38.27 3.17 26.93 37.43 21.77
gemma-2-2b-jpn-it-abliterated-17-ORPO (12 epoches) TBD TBD TBD TBD TBD TBD TBD
gemma-2-2b-jpn-it-abliterated-18-ORPO (4 epoches) 29.94 48.97 40.18 3.02 26.17 39.42 21.85
gemma-2-2b-jpn-it-abliterated-17 30.29 52.65 40.46 0.0 27.18 36.90 24.55
gemma-2-2b-jpn-it-abliterated-18 30.61 53.02 40.96 0.0 27.35 37.30 25.05
gemma-2-2b-jpn-it-abliterated-24 30.61 51.37 40.77 0.0 27.77 39.02 24.73

Looks like fine tuning for 8 epoches is still not enough. May need to run more epoches.

How to run this model

from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch

model_id = "gemma-2-2b-jpn-it-abliterated-17-ORPO"
dtype = torch.bfloat16

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="cuda",
    torch_dtype=dtype,)

chat = [
    { "role": "user", "content": "Write a hello world program" },
]
prompt = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)

Downloading using huggingface-cli

First, make sure you have hugginface-cli installed:

pip install -U "huggingface_hub[cli]"

Then, you can target the specific file you want:

huggingface-cli download ymcki/gemma-2-2b-jpn-it-abliterated-17-ORPO --include "*" --local-dir ./

Credits

Thank you mlabonne for describing his fine tuning method.

Thanks FullOf_Bad_Ideas from LocalLlama for the suggestion of using unsloth to save VRAM.

README history 11 versions

The author's README evolved over time. Click a version to see its content at that point.

  1. 2024-10-2612 epoches8f4e5be5.7 KB
    Loading...
  2. 2024-10-26fix README againdf034925.1 KB
    Loading...
  3. 2024-10-26fix README8e597a25.1 KB
    Loading...
  4. 2024-10-268 epoches README60bd8d25.2 KB
    Loading...
  5. 2024-10-24Upload 11 files49edce94.5 KB
    Loading...
  6. 2024-10-22Upload README.md96c78ca4.2 KB
    Loading...
  7. 2024-10-22Upload README.mddd5a0904.2 KB
    Loading...
  8. 2024-10-20Upload README.mde869a813.9 KB
    Loading...
  9. 2024-10-20Upload 9 filese355fd73.7 KB
    Loading...
  10. 2024-10-18Upload README.md531b2e23.5 KB
    Loading...
  11. 2024-10-18initial commite3b47d223 B
    Loading...

Discussions 1 thread

  1. 2024-10-20PRAdding Evaluation Resultsopen1 💬#1
    Loading...
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration