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

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 - 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"
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
137
40 last 30d - stable
Likes
1
Model age
2.3y ago
created 2024-07-26
Downloads over time
Now 136 → from 6 ↑ 2,167%
060121181 6 on Jul 24, 2024 136 on Nov 25 165 on Oct 1, 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 03:34

Files by quantization

Weights 3 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
Auxiliary files 5 files 27.3 KB
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 from Hugging Face, captured 2026-08-22


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-26 link to 2xd 7901461 1.6 KB
    Loading...
  2. 2024-07-26 code sample ab650fb 1.5 KB
    Loading...
  3. 2024-07-26 Update README.md 7555ae3 789 B
    Loading...
  4. 2024-07-26 Update README.md 671234a 764 B
    Loading...
  5. 2024-07-26 Upload LlamaForCausalLM 61a80c7 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