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

T145/ZEUS-8B-V2-abliterated

T145 Llama 8.0B
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/T145%2FZEUS-8B-V2-abliterated"
Response includes
  • classification m5
  • files 12
  • hub_downloads_all_time 672
  • providers 1
  • author_summary 6 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
M5
Primary method

Merging with mergekit

Applied on top of direct removal inherited from the base model.
Confidence
MEDIUM
Inherited from base model
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.
  • merge tag / mergekit / dare-ties in tags or name
  • no unusual architecture pattern (regular merge)
  • abliterated marker present
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
798
52 last 30d - cooling
Likes
2
Descendants
2
in 2 direct forks
Model age
23mo ago
created 2024-12-30
Available via
1 provider
featherless-ai
Downloads over time
Now 795 → from 0 new
0292583875 0 on Dec 25, 2024 795 on Nov 25 Dec '24Mar '25Jun '25Sep '25Dec '25MarJunSep
Dec 25, 2024 → Nov 25 · 178 snapshots · spans 700 days

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
llama3.1
Tags
transformers safetensors llama text-generation mergekit merge llama-3.1 roleplay function calling conversational base_model:T145/ZEUS-8B-V2 base_model:finetune:T145/ZEUS-8B-V2

Related

Total size
15.0 GB
Files
12
Quantizations
none
Indexed by us
2026-08-22 13:56 · first crawl
Last updated on HF
2024-12-31 21:26

Files by quantization

Weights 4 files 15.0 GB
model-00002-of-00004.safetensors 4.66 GB 7450cd04 download
model-00001-of-00004.safetensors 4.63 GB b86613d0 download
model-00003-of-00004.safetensors 4.58 GB b8f0c9d6 download
model-00004-of-00004.safetensors 1.09 GB f66c0777 download
Auxiliary files 8 files 16.5 MB
tokenizer.json 16.4 MB a65c6c5f download
tokenizer_config.json 56.2 KB 4cf21baf download
model.safetensors.index.json 23.7 KB c4b1c21a download
README.md 9.31 KB 13f534a5 download
.gitattributes 1.53 KB 52373fe2 download
config.json 1011 B 34dd2dd3 download
special_tokens_map.json 477 B 2969fb88 download
generation_config.json 192 B 0d779cf5 download

README from Hugging Face, captured 2026-08-22


library_name: transformers
tags:


ZEUS 8B 🌩️ V2 - ABLITERATED

V2 abliterated using the following script:

import gc
import random

import torch
from tqdm import tqdm
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig

MODEL_ID = "T145/ZEUS-8B-V2"

# More samples can help find the direction better.
NUM_PROMPT_SAMPLES = 32

# Used to skip the first and last layers for the modifications.
SKIP_BEGIN_LAYERS = 1
SKIP_END_LAYERS = 1

# The layer we will use for the refusal_dir calculation will be floor(LAYER_FRACTION_TO_USE * model.layers).
LAYER_FRACTION_TO_USE = 0.6

# Use a negative scale_factor to "induce" and a positive scale_factor of < 1 to "ablate" less.
SCALE_FACTOR = 1.0

torch.inference_mode()
torch.set_default_device("cpu")
torch.set_grad_enabled(False)

# Load the model on the GPU in quantized type if we can.
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    trust_remote_code=True,
    torch_dtype=torch.float16,
    quantization_config=BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_compute_dtype=torch.float16),
    low_cpu_mem_usage=True,
    device_map='auto'
)
model.requires_grad_(False)

tokenizer = AutoTokenizer.from_pretrained(MODEL_ID, trust_remote_code=True)
layer_idx = int(len(model.model.layers) * LAYER_FRACTION_TO_USE)

print("Layer index for refusal direction: " + str(layer_idx))

with open("harmful.txt", "r", encoding="utf-8") as f:
    harmful = f.readlines()

with open("harmless.txt", "r", encoding="utf-8") as f:
    harmless = f.readlines()

harmful_instructions = random.sample(harmful, min(NUM_PROMPT_SAMPLES, len(harmful)))
harmless_instructions = random.sample(harmless, min(NUM_PROMPT_SAMPLES, len(harmless)))

harmful_toks = [
    tokenizer.apply_chat_template(conversation=[{"role": "user", "content": insn}], add_generation_prompt=True, tokenize=False,
                                  return_tensors="pt") for insn in harmful_instructions]
harmless_toks = [
    tokenizer.apply_chat_template(conversation=[{"role": "user", "content": insn}], add_generation_prompt=True, tokenize=False,
                                  return_tensors="pt") for insn in harmless_instructions]

bar_generate = tqdm(total = len(harmful_instructions) + len(harmless_instructions), desc = "Generating samples")

# Only return the final hidden state of the layer we care about, and use 'cpu' to save VRAM.
def generate(toks):
    inputs = tokenizer(toks, return_tensors="pt", padding=True)
    inputs = inputs.to(model.device)
    output = model.generate(
        inputs['input_ids'],
        use_cache=False,
        max_new_tokens=1,
        return_dict_in_generate=True,
        output_hidden_states=True,
        attention_mask=inputs["attention_mask"],
        pad_token_id=tokenizer.eos_token_id
    )
    bar_generate.update(n=1)
    return output.hidden_states[0][layer_idx][:, -1, :].to('cpu') # Final hidden state = -1.

harmful_hidden = [generate(toks) for toks in harmful_toks]
harmless_hidden = [generate(toks) for toks in harmless_toks]

bar_generate.close()

harmful_mean = torch.stack(harmful_hidden).mean(dim=0)
harmless_mean = torch.stack(harmless_hidden).mean(dim=0)

refusal_dir = harmful_mean - harmless_mean
refusal_dir = refusal_dir.squeeze() / refusal_dir.norm()

torch.save(refusal_dir, MODEL_ID.replace("/", "_") + "_refusal_dir.pt")

# Free memory
del model
gc.collect()
torch.cuda.empty_cache()

# Reload the model in CPU memory with bfloat16 data type
model = AutoModelForCausalLM.from_pretrained(
    MODEL_ID,
    trust_remote_code=True,
    torch_dtype=torch.bfloat16,
    low_cpu_mem_usage=True,
    device_map='cpu'
)
model.requires_grad_(False)

# Make sure it's on the 'cpu' device.
if refusal_dir.device != model.device:
    refusal_dir = refusal_dir.to(model.device)

# Get the language model component and check it's as expected.
lm_model = model.model
assert hasattr(lm_model, 'layers'), "The model does not have the expected structure."

# Check the ranges are valid.
num_layers = len(lm_model.layers)
assert SKIP_BEGIN_LAYERS >= 0, "SKIP_BEGIN_LAYERS must be >= 0."
assert SKIP_END_LAYERS >= 0, "SKIP_END_LAYERS must be >= 0."
assert SKIP_BEGIN_LAYERS + SKIP_END_LAYERS < num_layers, "SKIP_BEGIN_LAYERS + SKIP_END_LAYERS must be < num_layers."

bar_layers = tqdm(total= (num_layers - (SKIP_BEGIN_LAYERS + SKIP_END_LAYERS)) * 2, desc = "Modifying tensors")

# NOTE: Use a negative scale_factor to "induce" and a positive scale_factor of < 1 to "ablate" less.
def modify_tensor(tensor_data, refusal_dir, scale_factor: float = 1.0):
    assert scale_factor <= 1.0, "Using a scale_factor of > 1 doesn't make sense..."
    tensor_float = tensor_data.to(torch.bfloat16)
    refusal_dir_float = refusal_dir.to(torch.bfloat16)
    tensor_float -= scale_factor * torch.matmul(torch.outer(refusal_dir_float, refusal_dir_float), tensor_float)
    tensor_modified = tensor_float.to(torch.bfloat16)
    bar_layers.update(1)
    return torch.nn.Parameter(tensor_modified)

# Modify the 'self_attn.o_proj.weight' and 'mlp.down_proj.weight' in each chosen layer.
# NOTE: These tensors names are speific to "llama" and may need changing.
#       - See here for others: https://github.com/arcee-ai/mergekit/tree/main/mergekit/_data/architectures
for layer_idx in range(SKIP_BEGIN_LAYERS, num_layers - SKIP_END_LAYERS):
    lm_model.layers[layer_idx].self_attn.o_proj.weight = modify_tensor(
        lm_model.layers[layer_idx].self_attn.o_proj.weight.data, refusal_dir, SCALE_FACTOR
    )
    lm_model.layers[layer_idx].mlp.down_proj.weight = modify_tensor(
        lm_model.layers[layer_idx].mlp.down_proj.weight.data, refusal_dir, SCALE_FACTOR
    )

bar_layers.close()

print("Saving modified model (with original tokenizer)...")

FIXED_ID = f"{MODEL_ID}-abliterated"
model.save_pretrained(FIXED_ID)
tokenizer.save_pretrained(FIXED_ID)

According to the script, layer 19 is the primary target for abliteration.

Open LLM Leaderboard Evaluation Results

Detailed results can be found here!
Summarized results can be found here!

Metric Value (%)
Average 29.71
IFEval (0-Shot) 78.95
BBH (3-Shot) 30.98
MATH Lvl 5 (4-Shot) 20.62
GPQA (0-shot) 8.39
MuSR (0-shot) 7.92
MMLU-PRO (5-shot) 31.39

README history 8 versions

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

  1. 2024-12-31 Update README.md 0f5b018 9.3 KB
    Loading...
  2. 2024-12-31 Adding Evaluation Results (#3) 621ea70 10.6 KB
    Loading...
  3. 2024-12-31 Removed old results 6b64519 7.2 KB
    Loading...
  4. 2024-12-31 Update README.md 6c4fdd6 10.6 KB
    Loading...
  5. 2024-12-30 Update README.md 427ea92 10.7 KB
    Loading...
  6. 2024-12-30 Adding Evaluation Results (#1) 6305670 10.7 KB
    Loading...
  7. 2024-12-30 Update README.md 45d0794 7.3 KB
    Loading...
  8. 2024-12-30 Create README.md d07c040 7.4 KB
    Loading...

Discussions 3 threads

  1. 2024-12-31 PR Adding Evaluation Results merged 1 💬 #3
    Loading...
  2. 2024-12-31 PR Adding Evaluation Results closed 1 💬 #2
    Loading...
  3. 2024-12-30 PR Adding Evaluation Results merged 1 💬 #1
    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