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="huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated")
model = AutoModelForCausalLM.from_pretrained("huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated")
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=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated

This is an uncensored version of mistralai/Mistral-Small-24B-Instruct-2501 created with abliteration (see remove-refusals-with-transformers to know more about it).
This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens.

Use with ollama

You can use huihui_ai/mistral-small-abliterated directly

ollama run huihui_ai/mistral-small-abliterated
Downloads last month
1,012
Inference Providers NEW
Input a message to start chatting with huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated.

Model tree for huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated

Finetuned
(71)
this model
Finetunes
2 models
Merges
16 models
Quantizations
12 models

Spaces using huihui-ai/Mistral-Small-24B-Instruct-2501-abliterated 21