How to use from
SGLang
Install from pip and serve model
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
    --model-path "huihui-ai/Llama-3.2-3B-Instruct-abliterated" \
    --host 0.0.0.0 \
    --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "huihui-ai/Llama-3.2-3B-Instruct-abliterated",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Use Docker images
docker run --gpus all \
    --shm-size 32g \
    -p 30000:30000 \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    --env "HF_TOKEN=<secret>" \
    --ipc=host \
    lmsysorg/sglang:latest \
    python3 -m sglang.launch_server \
        --model-path "huihui-ai/Llama-3.2-3B-Instruct-abliterated" \
        --host 0.0.0.0 \
        --port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "huihui-ai/Llama-3.2-3B-Instruct-abliterated",
		"messages": [
			{
				"role": "user",
				"content": "What is the capital of France?"
			}
		]
	}'
Quick Links

πŸ¦™ Llama-3.2-3B-Instruct-abliterated

This is an uncensored version of Llama 3.2 3B 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.

ollama

You can use huihui_ai/llama3.2-abliterate:3b directly,

ollama run huihui_ai/llama3.2-abliterate

or create your own model using the following methods.

  1. Download this model.
huggingface-cli download huihui-ai/Llama-3.2-3B-Instruct-abliterated --local-dir ./huihui-ai/Llama-3.2-3B-Instruct-abliterated
  1. Get Llama-3.2-3B-Instruct model for reference.
ollama pull llama3.2
  1. Export Llama-3.2-3B-Instruct model parameters.
ollama show llama3.2 --modelfile > Modelfile
  1. Modify Modelfile, Remove all comment lines (indicated by #) before the "FROM" keyword. Replace the "FROM" with the following content.
FROM huihui-ai/Llama-3.2-3B-Instruct-abliterated
  1. Use ollama create to then create the quantized model.
ollama create --quantize q4_K_M -f Modelfile Llama-3.2-3B-Instruct-abliterated-q4_K_M
  1. Run model
ollama run Llama-3.2-3B-Instruct-abliterated-q4_K_M

The running architecture is llama.

Evaluations

The following data has been re-evaluated and calculated as the average for each test.

Benchmark Llama-3.2-3B-Instruct Llama-3.2-3B-Instruct-abliterated
IF_Eval 76.55 76.76
MMLU Pro 27.88 28.00
TruthfulQA 50.55 50.73
BBH 41.81 41.86
GPQA 28.39 28.41

The script used for evaluation can be found inside this repository under /eval.sh, or click here

Downloads last month
1,034
Safetensors
Model size
4B params
Tensor type
BF16
Β·
Inference Providers NEW
Input a message to start chatting with huihui-ai/Llama-3.2-3B-Instruct-abliterated.

Model tree for huihui-ai/Llama-3.2-3B-Instruct-abliterated

Finetuned
(1624)
this model
Adapters
1 model
Finetunes
22 models
Merges
50 models
Quantizations
20 models

Spaces using huihui-ai/Llama-3.2-3B-Instruct-abliterated 3

Collection including huihui-ai/Llama-3.2-3B-Instruct-abliterated