Instructions to use microsoft/Dayhoff-3b-GR-HM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/Dayhoff-3b-GR-HM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="microsoft/Dayhoff-3b-GR-HM")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("microsoft/Dayhoff-3b-GR-HM") model = AutoModelForCausalLM.from_pretrained("microsoft/Dayhoff-3b-GR-HM", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use microsoft/Dayhoff-3b-GR-HM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "microsoft/Dayhoff-3b-GR-HM" # 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-3b-GR-HM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/microsoft/Dayhoff-3b-GR-HM
- SGLang
How to use microsoft/Dayhoff-3b-GR-HM 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-3b-GR-HM" \ --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-3b-GR-HM", "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-3b-GR-HM" \ --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-3b-GR-HM", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use microsoft/Dayhoff-3b-GR-HM with Docker Model Runner:
docker model run hf.co/microsoft/Dayhoff-3b-GR-HM
Commit History
-
Upload README.md with huggingface_hub
Verified signature81ffa52 -
Update transformers version in installation instructions
Verified signaturea70e0e4 -
Update transformers version in installation instructions
Verified signature2c44f9a -
Update transformers version in installation instructions
Verified signature95c2791
-
Add installation instructions
Verified signatureeba7b27
-
Update README.md (#4)
Verified signature- Update README.md (e0143f8fce0f4d256efe4d0bd37a3da69428ccc1) Co-authored-by: Blake S <bsnelling@users.noreply.huggingface.co>f812ca9 -
Upload data_summary_card.md (#3)
Verified signature- Upload data_summary_card.md (5c642b621db18cfa8a4837c89ea6caad7237fb96) Co-authored-by: Blake S <bsnelling@users.noreply.huggingface.co>c7c6134 -
Add missing MIT `LICENSE` (#2)
Verified signature- Add missing MIT `LICENSE` (d7fc825883ed4b8a22ec5efad7dd9e2ba90e841f) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>d5faa6b -
Update `README.md` with metadata (#1)
Verified signature- Update `README.md` with metadata (c4188f7ab000257ac1c6658e723a261d26bc8556) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>987f881
-
Update config.json
Verified signature16b7131
-
Update README.md
Verified signature15a5762
-
Update README.md
Verified signature59e2d58
-
Add files using upload-large-folder tool
Verified signature3bc7a5a -
initial commit
Verified signaturef8af854