Instructions to use lightblue/openorca_stx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lightblue/openorca_stx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="lightblue/openorca_stx")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("lightblue/openorca_stx") model = AutoModelForCausalLM.from_pretrained("lightblue/openorca_stx") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use lightblue/openorca_stx with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "lightblue/openorca_stx" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "lightblue/openorca_stx", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/lightblue/openorca_stx
- SGLang
How to use lightblue/openorca_stx 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 "lightblue/openorca_stx" \ --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": "lightblue/openorca_stx", "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 "lightblue/openorca_stx" \ --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": "lightblue/openorca_stx", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use lightblue/openorca_stx with Docker Model Runner:
docker model run hf.co/lightblue/openorca_stx
Update README.md
Browse files
README.md
CHANGED
|
@@ -31,8 +31,8 @@ With these datasets, we achieve the following scores on the JGLUE benchmark:
|
|
| 31 |
| jnli-1.1-0.3 | 0.504 | 0.48 |
|
| 32 |
| marc_ja-1.1-0.3 | 0.936 | 0.959 |
|
| 33 |
|
| 34 |
-
We achieved these scores by using the [lm-evaluation-harness](https://github.com/Stability-AI/lm-evaluation-harness) from Stability AI.
|
| 35 |
|
|
|
|
| 36 |
```bash
|
| 37 |
MODEL_ARGS=pretrained=lightblue/openorca_stx,use_accelerate=True
|
| 38 |
TASK="jsquad-1.1-0.3,jcommonsenseqa-1.1-0.3,jnli-1.1-0.3,marc_ja-1.1-0.3"
|
|
|
|
| 31 |
| jnli-1.1-0.3 | 0.504 | 0.48 |
|
| 32 |
| marc_ja-1.1-0.3 | 0.936 | 0.959 |
|
| 33 |
|
|
|
|
| 34 |
|
| 35 |
+
We achieved these scores by using the [lm-evaluation-harness](https://github.com/Stability-AI/lm-evaluation-harness) from Stability AI using the below commands:
|
| 36 |
```bash
|
| 37 |
MODEL_ARGS=pretrained=lightblue/openorca_stx,use_accelerate=True
|
| 38 |
TASK="jsquad-1.1-0.3,jcommonsenseqa-1.1-0.3,jnli-1.1-0.3,marc_ja-1.1-0.3"
|