exaone3.5-abliterated
Collection
2 items • Updated • 1
How to use huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated", trust_remote_code=True)
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated", trust_remote_code=True, dtype="auto")How to use huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated
How to use huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "huihui-ai/EXAONE-3.5-7.8B-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/EXAONE-3.5-7.8B-Instruct-abliterated",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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/EXAONE-3.5-7.8B-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/EXAONE-3.5-7.8B-Instruct-abliterated",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated with Docker Model Runner:
docker model run hf.co/huihui-ai/EXAONE-3.5-7.8B-Instruct-abliterated
This is an uncensored version of LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct 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.
You can use huihui_ai/exaone3.5-abliterated directly,
ollama run huihui_ai/exaone3.5-abliterated:7.8b