Instructions to use microsoft/Orca-2-13b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/Orca-2-13b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="microsoft/Orca-2-13b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("microsoft/Orca-2-13b") model = AutoModelForCausalLM.from_pretrained("microsoft/Orca-2-13b") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use microsoft/Orca-2-13b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "microsoft/Orca-2-13b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "microsoft/Orca-2-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/microsoft/Orca-2-13b
- SGLang
How to use microsoft/Orca-2-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 "microsoft/Orca-2-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": "microsoft/Orca-2-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 "microsoft/Orca-2-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": "microsoft/Orca-2-13b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use microsoft/Orca-2-13b with Docker Model Runner:
docker model run hf.co/microsoft/Orca-2-13b
Repeatability
#25 opened about 2 years ago
by
peterlian
Adding `safetensors` variant of this model
#24 opened about 2 years ago
by
SFconvertbot
add tokenizer.json
#23 opened over 2 years ago
by
mmoskal
add safetensors files
#22 opened over 2 years ago
by
mmoskal
Built in support for reading and summarizing documents?
#21 opened over 2 years ago
by
drwootton
Orca-2-13b
1
#19 opened over 2 years ago
by
Khalid776826
Update README.md
#18 opened over 2 years ago
by
Khalid776826
Request: DOI hiii
#17 opened over 2 years ago
by
Khalid776826
It can not even answer this question: 一公斤的棉花和一公斤的铁,哪一个更重?
10
#16 opened over 2 years ago
by
lucasjin
Confusion about the amount of data used in the training process.
#15 opened over 2 years ago
by
StevenTu
Dataset
❤️ 12
3
#13 opened over 2 years ago
by
Hypersniper
Fp32 vs fp16
2
#12 opened over 2 years ago
by
wiccanmind
Update README.md
#8 opened over 2 years ago
by
lucianodelcorro
Add chat template
2
#6 opened over 2 years ago
by
Rocketknight1
Published a GGUF format for Orca-2-13b
❤️ 8
#5 opened over 2 years ago
by
alabulei