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

monsoon-nlp/codellama-abliterated

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 - 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/monsoon-nlp%2Fcodellama-abliterated"
Response includes
  • classification m1
  • files 8
  • hub_downloads_all_time 80
  • 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
80
20 last 30d - stable
Likes
1
Model age
2.2y ago
created 2024-07-26
Downloads over time
Now88→from6↑1,367%
0601211816 on Jul 24, 202488 on Oct 11165 on Oct 1, 2025Jul '24Nov '24Mar '25Jul '25Nov '25MarJul
Jul 24, 2024 → Oct 11 · 155 snapshots · spans 809 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
1
Registered
2026-08-22 13:56
Last updated on HF
2024-07-26 03:34

Files by quantization

Auxiliary files 8 files 12.6 GB
model-00002-of-00003.safetensors 4.61 GB 78db984e download
model-00001-of-00003.safetensors 4.60 GB 7347b409 download
model-00003-of-00003.safetensors 3.34 GB a535a2d5 download
model.safetensors.index.json 23.4 KB 42aad982 download
README.md 1.59 KB 61baaf13 download
.gitattributes 1.48 KB a6344aac download
config.json 717 B 2d016fc1 download
generation_config.json 111 B b2fc224d download

README current version from Hugging Face


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

  • en
    tags:
  • arxiv:2406.11717

codellama-abliterated

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"

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

Model with 2x intervention: https://huggingface.co/monsoon-nlp/codellama-abliterated-2xd

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", 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 5 versions

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

  1. 2024-07-26link to 2xd79014611.6 KB
    Loading...
  2. 2024-07-26code sampleab650fb1.5 KB
    Loading...
  3. 2024-07-26Update README.md7555ae3789 B
    Loading...
  4. 2024-07-26Update README.md671234a764 B
    Loading...
  5. 2024-07-26Upload LlamaForCausalLM61a80c75.1 KB
    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