← back to catalog · indexed 2026-08-22 13:56 (first catalog crawl)

monsoon-nlp/codellama-abliterated-2xd

monsoon-nlp Llama 6.7B
Your rig guess connected
? Why do I need an app?
Reading your rig…

This is a rough estimate. Install the free app - it measures what fits your machine.

Reading your computer's memory from the app right now. The fit below is measured on this machine.

Below is the per-quantization compatibility for this model.

curl -H "Authorization: Bearer $ABL_KEY" \
     "https://abliteration.org/api/v1/models/monsoon-nlp%2Fcodellama-abliterated-2xd"
Response includes
  • classification m1
  • files 8
  • hub_downloads_all_time 74
  • author_summary 2 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M1
Primary method

Direct removal

No other method signals detected in this model.
Confidence
MEDIUM
Why this label 3 signals
Method inferred from partial signals - repository name, related files, or tag patterns. Producer identity not confirmed; label may sharpen or shift as we gather more evidence.
  • 'abliterated' in name/tags
  • is_gguf=0 (base model)
  • no specific method indicators - defaulting to M1 (most common)
Refusal direction extracted via
Extraction technique

Difference-of-means

Confidence
MEDIUM
Why we say so
primary_method=M1; difference-of-means is the reference extraction for M1/M3 (Arditi 2024)
Downloads · lifetime
117
27 last 30d - stable
Likes
0
Model age
2.3y ago
created 2024-07-26
Downloads over time
Now 116 → from 7 ↑ 1,557%
076152228 7 on Jul 24, 2024 116 on Nov 25 207 on Sep 10, 2025 Jul '24Nov '24Mar '25Jul '25Nov '25MarJulNov
Jul 24, 2024 → Nov 25 · 200 snapshots · spans 854 days

Genealogy 0 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
llama2
Languages
en
Tags
transformers safetensors llama text-generation arxiv:2406.11717 en base_model:codellama/CodeLlama-7b-Instruct-hf base_model:finetune:codellama/CodeLlama-7b-Instruct-hf license:llama2 text-generation-inference endpoints_compatible region:us

Related

Total size
12.6 GB
Files
8
Quantizations
none
Indexed by us
2026-08-22 13:56 · first crawl
Last updated on HF
2024-07-26 04:07

Files by quantization

Weights 3 files 12.6 GB
model-00002-of-00003.safetensors 4.61 GB 530ac6ee download
model-00001-of-00003.safetensors 4.60 GB 94cf623f download
model-00003-of-00003.safetensors 3.34 GB db189a91 download
Auxiliary files 5 files 27.4 KB
model.safetensors.index.json 23.4 KB 42aad982 download
README.md 1.74 KB 27528590 download
.gitattributes 1.48 KB a6344aac download
config.json 717 B 2d016fc1 download
generation_config.json 111 B b2fc224d download

README from Hugging Face, captured 2026-08-22


license: llama2
base_model: codellama/CodeLlama-7b-Instruct-hf
language:

  • en
    tags:
  • arxiv:2406.11717

codellama-abliterated-2xd

CodeLlama-7b-Instruct-hf adapted using the abliteration notebook from Maxime Labonne's LLM Course

Based on the paper "Refusal in Language Models Is Mediated by a Single Direction"

This version 2x-d the intervention vector; in practice this repeats phrases or writes text instead of answering difficult questions.
See the model with less intervention: https://huggingface.co/monsoon-nlp/codellama-abliterated

Based on CodeLlama/Llama2 and subject to the restrictions of that model and license - not for unapproved uses:

Concept

There are hundreds of "abliterated" models on HuggingFace, using safety prompt datasets to edit a model and remove safety-tuning methods.

None of these abliterated models have explored code LLMs, code-generation, and CyberSecEval. I don't know a lot about how well these will
work, but this is a first step.

Blog: https://huggingface.co/blog/monsoon-nlp/refusal-in-code-llms

Usage

! pip install transformers accelerate --quiet
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer, AutoConfig

tokenizer = AutoTokenizer.from_pretrained("codellama/CodeLlama-7b-Instruct-hf")
model = AutoModelForCausalLM.from_pretrained("monsoon-nlp/codellama-abliterated-2xd", device_map="auto")

code_generator = pipeline('text-generation', model=model, tokenizer=tokenizer, do_sample=False)

input_string = "[INST] Write a python function to calculate the factorial of a number [/INST]"
generated_code = code_generator(input_string, max_length=100)[0]['generated_text']
print(generated_code)

README history 4 versions

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

  1. 2024-07-26 Update README.md d65a7dd 1.7 KB
    Loading...
  2. 2024-07-26 header fix 9cef505 1.6 KB
    Loading...
  3. 2024-07-26 Update README.md 3e70d6c 1.6 KB
    Loading...
  4. 2024-07-26 Upload LlamaForCausalLM 12c1bcc 5.1 KB
    Loading...
Catalog is the map. Apps are the tools.

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

Every GGUF 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