Instructions to use Open-Orca/OpenOrca-Platypus2-13B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Open-Orca/OpenOrca-Platypus2-13B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Open-Orca/OpenOrca-Platypus2-13B")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Open-Orca/OpenOrca-Platypus2-13B") model = AutoModelForCausalLM.from_pretrained("Open-Orca/OpenOrca-Platypus2-13B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Open-Orca/OpenOrca-Platypus2-13B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Open-Orca/OpenOrca-Platypus2-13B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Open-Orca/OpenOrca-Platypus2-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Open-Orca/OpenOrca-Platypus2-13B
- SGLang
How to use Open-Orca/OpenOrca-Platypus2-13B 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 "Open-Orca/OpenOrca-Platypus2-13B" \ --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": "Open-Orca/OpenOrca-Platypus2-13B", "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 "Open-Orca/OpenOrca-Platypus2-13B" \ --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": "Open-Orca/OpenOrca-Platypus2-13B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Open-Orca/OpenOrca-Platypus2-13B with Docker Model Runner:
docker model run hf.co/Open-Orca/OpenOrca-Platypus2-13B
Commit History
-
Update special_tokens_map.json
04e2288
-
Set cache to true
df35f18 -
Set cache to true
21fe622
-
Update README.md
03cce7b
-
Update README.md
7e041f6 -
Update README.md
67ecbc8 -
Update README.md
baf39b6 -
update arXiv link for platypus
778f9a9 -
update platypus citation!
a09c29b
-
Upload OrcaPlatypus13BHFLeaderboard.webp
4350795 -
Update README.md
f840bd1 -
Update README.md
66cd022 -
Upload 2 files
9724828 -
Update README.md
402cb09 -
Update README.md
7121d7c
-
Update README.md
e7a4013 -
Update README.md
04efe3f -
Update README.md
f8cbb31 -
Upload OrcaPlatypus13BHFLeaderboard.webp
41197c3 -
Delete Images/OrcaPlatypus13BHFLeaderboard.gif
e39fb8f -
Upload OrcaPlatypus13BHFLeaderboard.gif
a0f4f1d -
Delete Images/OrcaPlatypus13BHFLeaderboard.jpg
94fb559 -
Upload OrcaPlatypus13BHFLeaderboard.jpg
4bad703 -
Update README.md
58a75e6 -
Update README.md
b734d6b -
Update README.md
082b15b -
Upload OrcaPlatypusMerge.jpg
321eca9 -
Upload OrcaPlatypus.jpg
5db42e9 -
Update README.md
a0f5543 -
Update README.md
812717c
-
Upload Best_Platty_small.jpeg
342e41d -
Update README.md
8a857f6 -
model
22e993e -
initial commit
dca515e