Instructions to use microsoft/Dayhoff-3b-GR-HM-c with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/Dayhoff-3b-GR-HM-c with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="microsoft/Dayhoff-3b-GR-HM-c")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("microsoft/Dayhoff-3b-GR-HM-c") model = AutoModelForCausalLM.from_pretrained("microsoft/Dayhoff-3b-GR-HM-c", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use microsoft/Dayhoff-3b-GR-HM-c 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-c" # 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-c", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/microsoft/Dayhoff-3b-GR-HM-c
- SGLang
How to use microsoft/Dayhoff-3b-GR-HM-c 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-c" \ --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-c", "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-c" \ --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-c", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use microsoft/Dayhoff-3b-GR-HM-c with Docker Model Runner:
docker model run hf.co/microsoft/Dayhoff-3b-GR-HM-c
Commit History
-
Upload README.md with huggingface_hub
Verified signature1a5bb7a -
Update transformers version in installation instructions
Verified signatured659cf6 -
Update transformers version in installation instructions
Verified signature809faa0 -
Update transformers version in installation instructions
Verified signature4a48f6c
-
Add installation instructions
Verified signaturef0d8bb1
-
Update README.md (#5)
Verified signature- Update README.md (c2e63bfc9e3794e9f4adf1a66430898ed1a2c9cb) Co-authored-by: Blake S <bsnelling@users.noreply.huggingface.co>6f5b82c -
Upload data_summary_card.md (#3)
Verified signature- Upload data_summary_card.md (ada29486271dfa9782b5e3884cf222ba019d028a) Co-authored-by: Blake S <bsnelling@users.noreply.huggingface.co>9dec4f4 -
Add missing MIT `LICENSE` (#2)
Verified signature- Add missing MIT `LICENSE` (2f76e53415dc231513a664392b9295c2671ec5c8) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>97c85de -
Update `README.md` with metadata (#1)
Verified signature- Update `README.md` with metadata (597792369f0f7a1e40b925e59e7675482d366072) Co-authored-by: Alvaro Bartolome <alvarobartt@users.noreply.huggingface.co>6d0db56
-
Update config.json
Verified signature8733821
-
Update README.md
Verified signaturef12f1b8
-
Update README.md
Verified signaturecc4008c
-
Add files using upload-large-folder tool
Verified signature9dc4787 -
initial commit
Verified signature08029cd