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

ebowwa/toxic-dpo-v0.2-llama-3-01-beta

ebowwa Llama
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/ebowwa%2Ftoxic-dpo-v0.2-llama-3-01-beta"
Response includes
  • classification unknown
  • files 7
  • author_summary 3 models
  • readme_text full
10 credits · hourly refresh · ~4 KB payload Get an API key →
Abliteration classifier · v1.0.0
?
Primary method

Unclassified

No clear signals of an abliteration technique in this model.
Confidence
UNKNOWN
Why this label 1 signal
No classification signals present. This may not be an abliterated model at all - it could be a repackaging, a merge with unrelated goals, or unrelated content that mentions the term.
  • no classification signals present (no abliterated, uncensored, or known producer/method markers)
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 · 30-day
0
Likes
0
Model age
2.4y ago
created 2024-05-16

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
Now0→from0↑0%
00110 on Jul 24, 20240 on Oct 11Jul '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
apache-2.0
Languages
en
Tags
transformers safetensors text-generation-inference unsloth llama trl en dataset:unalignment/toxic-dpo-v0.2 base_model:unsloth/llama-3-8b-bnb-4bit base_model:finetune:unsloth/llama-3-8b-bnb-4bit license:apache-2.0 endpoints_compatible

Related

Total size
160 MB
Files
7
Quantizations
1
Registered
2026-08-22 13:56
Last updated on HF
2024-05-17 04:38

Files by quantization

Auxiliary files 7 files 169 MB
adapter_model.safetensors 160 MB bdca7f42 download
tokenizer.json 8.66 MB b197f72e download
tokenizer_config.json 49.4 KB 44f8f30d download
README.md 4.26 KB 35374ede download
.gitattributes 1.48 KB a6344aac download
adapter_config.json 732 B e275c6d8 download
special_tokens_map.json 464 B 9e6494b8 download

README current version from Hugging Face


language:

  • en
    license: apache-2.0
    tags:
  • text-generation-inference
  • transformers
  • unsloth
  • llama
  • trl
    base_model: unsloth/llama-3-8b-bnb-4bit
    datasets:
  • unalignment/toxic-dpo-v0.2

i initially fine-tuned with a dpo dataset so headers: prompt, chosen, rejected.

from datasets import load_dataset

Load the dataset

dataset = load_dataset("unalignment/toxic-dpo-v0.2", split="train")

Define the formatting function

def formatting_prompts_func(examples):
return {
"prompt": examples["prompt"],
"chosen": examples["chosen"],
"rejected": examples["rejected"],
}

Apply the formatting function to the dataset

dataset = dataset.map(formatting_prompts_func, batched=True)

Which i used with the method supervised fine-tuning (SFT) of LLMs on specific tasks or datasets. It involves fine-tuning the model on labeled examples from the target domain, such as question-answering, summarization, or dialogue data. The objective is to adapt the model's behavior to the desired output format and data distribution.

from trl import SFTTrainer
from transformers import TrainingArguments

trainer = SFTTrainer(
model = model,
tokenizer = tokenizer,
train_dataset = dataset,
dataset_text_field = "text",
max_seq_length = max_seq_length,
dataset_num_proc = 2,
packing = False, # Can make training 5x faster for short sequences.
args = TrainingArguments(
per_device_train_batch_size = 2,
gradient_accumulation_steps = 4,
warmup_steps = 5,
max_steps = 60,
learning_rate = 2e-4,
fp16 = not torch.cuda.is_bf16_supported(),
bf16 = torch.cuda.is_bf16_supported(),
logging_steps = 1,
optim = "adamw_8bit",
weight_decay = 0.01,
lr_scheduler_type = "linear",
seed = 3407,
output_dir = "outputs",
),
)

But this dataset is DPO (Direct Preference Optimization) specific i.e. prompt, chosen, rejected

DPO is a subsequent step after SFT, where the model undergoes preference learning using preference data, ideally from the same distribution as the SFT examples. It involves ranking pairs of outputs based on human feedback, such as which one is more informative, fluent, or engaging.

from unsloth import FastLanguageModel, PatchDPOTrainer
PatchDPOTrainer()
import torch
from transformers import TrainingArguments
from trl import DPOTrainer

dpo_trainer = DPOTrainer(
model = model,
ref_model = None,
args = TrainingArguments(
per_device_train_batch_size = 2,
gradient_accumulation_steps = 4,
warmup_ratio = 0.1,
num_train_epochs = 3,
fp16 = not torch.cuda.is_bf16_supported(),
bf16 = torch.cuda.is_bf16_supported(),
logging_steps = 1,
optim = "adamw_8bit",
seed = 42,
output_dir = "outputs",
),
beta = 0.1,
train_dataset = dataset,
# eval_dataset = YOUR_DATASET_HERE,
tokenizer = tokenizer,
max_length = 1024,
max_prompt_length = 512,
)

Key points about SFTTrainer:
Initial step in the fine-tuning process
Trains the model on labeled examples from the target task/domain
Aims to improve performance on that specific task
Adapts the model to the data distribution and output format

The key aspects of DPO are:
Performed after the initial SFT step
Uses preference data consisting of ranked pairs of outputs
Aims to align the model's outputs with human preferences and expectations
Optimizes a binary cross-entropy loss based on the ranked pairs
Simplified approach compared to traditional Reinforcement Learning from Human Feedback (RLHF)
In summary, SFTTrainer is used for the initial supervised fine-tuning on the target task, while DPO is a subsequent step that fine-tunes the model further by incorporating human preferences and feedback on the model's outputs.

Uploaded model

  • Developed by: ebowwa
  • License: apache-2.0
  • Finetuned from model : unsloth/llama-3-8b-bnb-4bit

This llama model was trained 2x faster with Unsloth and Huggingface's TRL library.

https://colab.research.google.com/drive/14ArcJ4hR613jH0HxYcT734it_HVHG_bb?usp=sharing

README history 4 versions

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

  1. 2024-05-17Update README.mdcacbedb4.3 KB
    Loading...
  2. 2024-05-17Update README.mdaef8a384.2 KB
    Loading...
  3. 2024-05-16Update README.md4eee629660 B
    Loading...
  4. 2024-05-16Upload README.md with huggingface_hubb22dc87573 B
    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