Instructions to use osiria/primo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use osiria/primo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="osiria/primo")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("osiria/primo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use osiria/primo with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "osiria/primo" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "osiria/primo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/osiria/primo
- SGLang
How to use osiria/primo 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 "osiria/primo" \ --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": "osiria/primo", "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 "osiria/primo" \ --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": "osiria/primo", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use osiria/primo with Docker Model Runner:
docker model run hf.co/osiria/primo
Commit History
-
Update app_it.py
626523f -
Update app.py
2a1d96f
-
Update README.md
3ed9503
-
Upload primo_screen.png
d5c6483
-
Update README.md
a5678a7 -
Upload primo.png
cf0e776 -
Update README.md
6c0a8ff -
Update README.md
4af1889 -
Upload 2 files
beae39b -
Upload primo_screen.png
247d4d8 -
Upload primo_screen.png
7fcd68e
-
Update README.md
bde76d7 -
Update README.md
132c365 -
Update app_it.py
150c76b -
Update app_it.py
cd41f77 -
Update app.py
b53c8ea -
Update README.md
e2add29 -
Update README.md
fff4fd3 -
Upload primo_screen.png
1c67d07 -
Update README.md
fabeea5 -
Update README.md
d71157d -
Upload 2 files
1118f77
-
Update README.md
7a37673 -
Update README.md
952a537 -
Upload 2 files
d82967a -
Upload 7 files
b88917a -
initial commit
2730bd8