Instructions to use Andyrasika/mistral-ft-optimized-dpo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Andyrasika/mistral-ft-optimized-dpo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Andyrasika/mistral-ft-optimized-dpo")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Andyrasika/mistral-ft-optimized-dpo") model = AutoModelForCausalLM.from_pretrained("Andyrasika/mistral-ft-optimized-dpo") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Andyrasika/mistral-ft-optimized-dpo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Andyrasika/mistral-ft-optimized-dpo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Andyrasika/mistral-ft-optimized-dpo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Andyrasika/mistral-ft-optimized-dpo
- SGLang
How to use Andyrasika/mistral-ft-optimized-dpo 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 "Andyrasika/mistral-ft-optimized-dpo" \ --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": "Andyrasika/mistral-ft-optimized-dpo", "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 "Andyrasika/mistral-ft-optimized-dpo" \ --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": "Andyrasika/mistral-ft-optimized-dpo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Andyrasika/mistral-ft-optimized-dpo with Docker Model Runner:
docker model run hf.co/Andyrasika/mistral-ft-optimized-dpo
Update README.md
Browse files
README.md
CHANGED
|
@@ -8,6 +8,8 @@ language:
|
|
| 8 |
- en
|
| 9 |
metrics:
|
| 10 |
- accuracy
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
# Model Card for Model ID
|
|
@@ -25,11 +27,6 @@ metrics:
|
|
| 25 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 26 |
|
| 27 |
- **Developed by:** Ankush Singal
|
| 28 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 29 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 30 |
-
- **Model type:** [More Information Needed]
|
| 31 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 32 |
-
- **License:** [More Information Needed]
|
| 33 |
- **Finetuned from model [optional]:** https://huggingface.co/OpenPipe/mistral-ft-optimized-1227
|
| 34 |
|
| 35 |
|
|
|
|
| 8 |
- en
|
| 9 |
metrics:
|
| 10 |
- accuracy
|
| 11 |
+
datasets:
|
| 12 |
+
- jondurbin/truthy-dpo-v0.1
|
| 13 |
---
|
| 14 |
|
| 15 |
# Model Card for Model ID
|
|
|
|
| 27 |
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
| 28 |
|
| 29 |
- **Developed by:** Ankush Singal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
- **Finetuned from model [optional]:** https://huggingface.co/OpenPipe/mistral-ft-optimized-1227
|
| 31 |
|
| 32 |
|