Instructions to use microsoft/Dayhoff-170m-UR90 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/Dayhoff-170m-UR90 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="microsoft/Dayhoff-170m-UR90")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("microsoft/Dayhoff-170m-UR90") model = AutoModelForCausalLM.from_pretrained("microsoft/Dayhoff-170m-UR90", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use microsoft/Dayhoff-170m-UR90 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "microsoft/Dayhoff-170m-UR90" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "microsoft/Dayhoff-170m-UR90", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/microsoft/Dayhoff-170m-UR90
- SGLang
How to use microsoft/Dayhoff-170m-UR90 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/Dayhoff-170m-UR90" \ --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/Dayhoff-170m-UR90", "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/Dayhoff-170m-UR90" \ --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/Dayhoff-170m-UR90", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use microsoft/Dayhoff-170m-UR90 with Docker Model Runner:
docker model run hf.co/microsoft/Dayhoff-170m-UR90
Commit History
-
Upload README.md with huggingface_hub
Verified signature3466035 -
Update transformers version in installation instructions
Verified signatured2f41e4 -
Update transformers version in installation instructions
Verified signature9a5161c -
Update transformers version in installation instructions
Verified signature1c8898b
-
Add installation instructions
Verified signature8f4266a
-
Update `README.md` with metadata (#1)
Verified signature- Update `README.md` with metadata (249ff666f8d7c4793122b1f377098efc43adac5f) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>dc009a0 -
Add missing MIT `LICENSE` (#2)
Verified signature- Add missing MIT `LICENSE` (c7fb34e5e6edc130c5b038d1b78957f88c167962) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>e0e9d81 -
Upload data_summary_card.md (#5)
Verified signature- Upload data_summary_card.md (d7794e12a5aee1dab0e94069fc0224ad309c9d9a) Co-authored-by: Blake S <bsnelling@users.noreply.huggingface.co>c7eb1fc -
Update README.md (#4)
Verified signature- Update README.md (c9a7d55faefdee5fb5e8cd5cb4519ef8e0c0d956) Co-authored-by: Blake S <bsnelling@users.noreply.huggingface.co>ba876e4
-
Update config.json
Verified signature7dfd63b
-
Update README.md
Verified signature5531d0c
-
Update README.md
Verified signature5292c30
-
Add files using upload-large-folder tool
Verified signature332656d -
initial commit
Verified signatured9f0045