Instructions to use SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B") 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("SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B") model = AutoModelForCausalLM.from_pretrained("SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B
- SGLang
How to use SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B with 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 "SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B" \ --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": "SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B", "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 "SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B" \ --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": "SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B with Docker Model Runner:
docker model run hf.co/SAIFIINDUSTRIES/Abliterated-Dolphin3.0-R1-Mistral-24B
Abliterated-Dolphin3.0-R1-Mistral-24B
"Abliterated Dolphin" is a result of my 3AM brain reading about technique called abliteration and then thinking what would happen if I tried to abliterate a model that is already relatively free, such as Dolphin.
Heavily inspired by mlabonne's article on abliteration on how to redirect refusals and effectively remove, or ablate, censorship from a language model.
There is really no deeper meaning to any of this than pure curiosity.
Model Details
GGUF quants: saukko/Abliterated-Dolphin3.0-R1-Mistral-24B-GGUF
Model Description
This is basically a dumbed down version of the original Dolphin model I used as a base, as I have not done any DPOs to heal the damage caused by abliteration.
Don't try to do anything meaningful with this model. Use the original Dolphin3.0-R1-Mistral-24B instead.
Uses
There's really no good use for this model as is really. This is basically a Dolphin that has had its brain poked at and then glued back together by some self-taught and unlicensed doctor, who got lost and found himself in a surgery room.
Bias, Risks, and Limitations
- Bias: none or very low
- Risks: a lot. please use the original model instead
- Limitations: same as original but this one is lot dumber
Training, Evaluation and Model Examination
TBD
Technical Specifications
I strongly suggest you look at directly the sources I used myself. Go see mlabonne here on hf to start with. Below are some of the many sources I dug through on my mission.
References
- Downloads last month
- 380