Instructions to use airedefined/dpo-exp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use airedefined/dpo-exp with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="airedefined/dpo-exp")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("airedefined/dpo-exp") model = AutoModelForCausalLM.from_pretrained("airedefined/dpo-exp", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use airedefined/dpo-exp with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "airedefined/dpo-exp" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "airedefined/dpo-exp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/airedefined/dpo-exp
- SGLang
How to use airedefined/dpo-exp 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 "airedefined/dpo-exp" \ --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": "airedefined/dpo-exp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "airedefined/dpo-exp" \ --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": "airedefined/dpo-exp", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use airedefined/dpo-exp with Docker Model Runner:
docker model run hf.co/airedefined/dpo-exp
Commit History
-
Training in progress, epoch 1
Verified signature8c80d5f -
Training in progress, epoch 3
Verified signature6aec836 -
Training in progress, epoch 2
Verified signaturebe8f241 -
Training in progress, epoch 1
Verified signature99bf626 -
Training in progress, epoch 1
Verified signature394e594 -
Training in progress, epoch 3
Verified signature87f4074 -
Training in progress, epoch 2
Verified signaturea8aa1ea -
Training in progress, epoch 1
Verified signature07a7f5f -
Training in progress, epoch 3
Verified signature18c0d63 -
Training in progress, epoch 2
Verified signaturea61ab68 -
Training in progress, epoch 1
Verified signaturec4da058 -
Training in progress, epoch 3
Verified signature149dcc1 -
Training in progress, epoch 2
Verified signature8aaef55 -
Training in progress, epoch 1
Verified signatured1d36bb -
Training in progress, epoch 3
Verified signature888e982 -
Training in progress, epoch 2
Verified signaturefc379ea -
Training in progress, epoch 1
Verified signature983bd36 -
Training in progress, epoch 3
Verified signature2ecd760 -
Training in progress, epoch 2
Verified signaturec408518 -
Training in progress, epoch 1
Verified signature9008916 -
Training in progress, epoch 3
Verified signature45f8f7d -
Training in progress, epoch 2
Verified signature927894a -
Training in progress, epoch 1
Verified signature8b68d56 -
Training in progress, epoch 1
Verified signature79500ea -
initial commit
Verified signaturec523f58