unalignment/toxic-dpo-v0.2
Viewer β’ Updated β’ 541 β’ 457 β’ 140
How to use ResplendentAI/Datura_7B with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ResplendentAI/Datura_7B") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ResplendentAI/Datura_7B")
model = AutoModelForCausalLM.from_pretrained("ResplendentAI/Datura_7B")How to use ResplendentAI/Datura_7B with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ResplendentAI/Datura_7B"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ResplendentAI/Datura_7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/ResplendentAI/Datura_7B
How to use ResplendentAI/Datura_7B with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "ResplendentAI/Datura_7B" \
--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": "ResplendentAI/Datura_7B",
"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 "ResplendentAI/Datura_7B" \
--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": "ResplendentAI/Datura_7B",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use ResplendentAI/Datura_7B with Docker Model Runner:
docker model run hf.co/ResplendentAI/Datura_7B
Flora with a bit of toxicity.
I've been making progress with my collection of tools, so I thought maybe I'd try something a little more toxic for this space. This should make for a more receptive model with fewer refusals.
Detailed results can be found here
| Metric | Value |
|---|---|
| Avg. | 74.28 |
| AI2 Reasoning Challenge (25-Shot) | 72.10 |
| HellaSwag (10-Shot) | 88.27 |
| MMLU (5-Shot) | 64.15 |
| TruthfulQA (0-shot) | 71.03 |
| Winogrande (5-shot) | 84.53 |
| GSM8k (5-shot) | 65.58 |