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)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Open-Orca/oo-phi-1_5", trust_remote_code=True, dtype="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
Update README.md
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ This model doesn't dramatically improve on the base model's general task perform
|
|
| 18 |
|
| 19 |
# Evaluations
|
| 20 |
|
| 21 |
-
We've only done
|
| 22 |
|
| 23 |
## HuggingFaceH4 Open LLM Leaderboard Performance
|
| 24 |
|
|
@@ -29,6 +29,9 @@ The only significant improvement was with TruthfulQA.
|
|
| 29 |
|
| 30 |
## MT-bench Performance
|
| 31 |
|
|
|
|
|
|
|
|
|
|
| 32 |
| Epoch | Average | Turn 1 | Turn 2 |
|
| 33 |
|:----------|:----------|:----------|:----------|
|
| 34 |
| 3 | 4.85 | 5.69 | 4.01 |
|
|
|
|
| 18 |
|
| 19 |
# Evaluations
|
| 20 |
|
| 21 |
+
We've only done limited testing as yet. The [epoch 3.5 checkpoint](https://huggingface.co/Open-Orca/oo-phi-1_5/commit/f7754d8b8b4c3e0748eaf47be4cf5aac1f80a401) scores above 5.1 on MT-Bench (better than Alpaca-13B, worse than Llama2-7b-chat), while preliminary benchmarks suggest peak average performance was achieved roughly at epoch 4.
|
| 22 |
|
| 23 |
## HuggingFaceH4 Open LLM Leaderboard Performance
|
| 24 |
|
|
|
|
| 29 |
|
| 30 |
## MT-bench Performance
|
| 31 |
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
| Epoch | Average | Turn 1 | Turn 2 |
|
| 36 |
|:----------|:----------|:----------|:----------|
|
| 37 |
| 3 | 4.85 | 5.69 | 4.01 |
|