Instructions to use Open-Orca/oo-phi-1_5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Open-Orca/oo-phi-1_5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Open-Orca/oo-phi-1_5", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Open-Orca/oo-phi-1_5", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Open-Orca/oo-phi-1_5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Open-Orca/oo-phi-1_5" # 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/oo-phi-1_5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Open-Orca/oo-phi-1_5
- SGLang
How to use Open-Orca/oo-phi-1_5 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/oo-phi-1_5" \ --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/oo-phi-1_5", "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/oo-phi-1_5" \ --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/oo-phi-1_5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Open-Orca/oo-phi-1_5 with Docker Model Runner:
docker model run hf.co/Open-Orca/oo-phi-1_5
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.21a5dae
-
Fix: MS breaking upstream code (#6)
- Fix: MS breaking upstream code (714b401b1825a4ca72c8476afbeb5ac820da6307)2eb05ed
-
Update config.json
085b8a6
-
Upload oo-phi-1_5-HFLeaderboard.png
68de82c
-
Update README.md
cdff12f -
Upload oo-phi-1_5-mtbench.png
4d93865 -
Update README.md
b58e599 -
Update README.md
7becd74
-
Update README.md
c69d37f -
Update README.md
a9bc9a9 -
Upload oo-phi-1_5-HFLeaderboard.png
64384d8
-
Update README.md
4803f4c -
Update README.md
01bf954 -
Update README.md
2122e51 -
Update README.md
045558d
-
Training in progress, step 166960
9ff32be
-
Training in progress, step 150264
aa05eb2 -
Training in progress, step 133568
22d78c2 -
Training in progress, step 116872
f7754d8 -
Update README.md
1c3889a -
Create configs/phi-oo.yml
1ec8159 -
Update README.md
e099f79 -
Training in progress, step 100176
37b3052 -
Create README.md
750b317
-
Training in progress, step 83480
be42b0f -
Training in progress, step 66784
0ff3150 -
Training in progress, step 50088
1e95816 -
Training in progress, step 33392
2818e89
-
Upload folder using huggingface_hub
dc9b12c -
Training in progress, step 16696
8de8dd9 -
initial commit
dad6bff