How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated")
model = AutoModelForCausalLM.from_pretrained("mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

πŸ¦™ Meta-Llama-3.1-8B-Instruct-abliterated

image/png

πŸ¦™ Llama 3.1 70B Instruct lorablated

This is an uncensored version of Llama 3.1 8B Instruct created with abliteration (see this article to know more about it).

Special thanks to @FailSpy for the original code and technique. Please follow him if you're interested in abliterated models.

⚑️ Quantization

Thanks to ZeroWw and Apel-sin for the quants.

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

Metric Value
Avg. 23.13
IFEval (0-Shot) 73.29
BBH (3-Shot) 27.13
MATH Lvl 5 (4-Shot) 6.42
GPQA (0-shot) 0.89
MuSR (0-shot) 3.21
MMLU-PRO (5-shot) 27.81
Downloads last month
6,878
Safetensors
Model size
8B params
Tensor type
BF16
Β·
Inference Providers NEW
Input a message to start chatting with mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated.

Model tree for mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated

Finetuned
(3283)
this model
Adapters
20 models
Finetunes
15 models
Merges
19 models
Quantizations
19 models

Spaces using mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated 79

Collection including mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated

Evaluation results