mlabonne/orpo-dpo-mix-40k
Viewer β’ Updated β’ 44.2k β’ 1.59k β’ 310
How to use Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2")
model = AutoModelForCausalLM.from_pretrained("Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2", device_map="auto")How to use Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2
How to use Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2 with Docker Model Runner:
docker model run hf.co/Zoyd/mlabonne_NeuralDaredevil-8B-abliterated-4_0bpw_exl2
Exllamav2 quant (exl2 / 4.0 bpw) made with ExLlamaV2 v0.1.1
Other EXL2 quants:
| Quant | Model Size | lm_head |
|---|---|---|
This is a DPO fine-tune of mlabonne/Daredevil-8-abliterated trained on one epoch of mlabonne/orpo-dpo-mix-40k.
TBD.
Evaluation performed using LLM AutoEval. See the entire leaderboard here.
| Model | Average | AGIEval | GPT4All | TruthfulQA | Bigbench |
|---|---|---|---|---|---|
| mlabonne/NeuralDaredevil-8B-abliterated π | 55.87 | 43.73 | 73.6 | 59.36 | 46.8 |
| mlabonne/Daredevil-8B π | 55.87 | 44.13 | 73.52 | 59.05 | 46.77 |
| mlabonne/Daredevil-8B-abliterated π | 55.06 | 43.29 | 73.33 | 57.47 | 46.17 |
| NousResearch/Hermes-2-Theta-Llama-3-8B π | 54.28 | 43.9 | 72.62 | 56.36 | 44.23 |
| openchat/openchat-3.6-8b-20240522 π | 53.49 | 44.03 | 73.67 | 49.78 | 46.48 |
| meta-llama/Meta-Llama-3-8B-Instruct π | 51.34 | 41.22 | 69.86 | 51.65 | 42.64 |
| meta-llama/Meta-Llama-3-8B π | 45.42 | 31.1 | 69.95 | 43.91 | 36.7 |