Text Generation
Transformers
Safetensors
English
microloop_diffusion
causal-lm
base-model
small-language-model
custom_code
muon
hummingbird
hummingbird-v2
conversational
Instructions to use juinron/Hummingbird-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use juinron/Hummingbird-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="juinron/Hummingbird-V2", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("juinron/Hummingbird-V2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use juinron/Hummingbird-V2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "juinron/Hummingbird-V2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "juinron/Hummingbird-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/juinron/Hummingbird-V2
- SGLang
How to use juinron/Hummingbird-V2 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 "juinron/Hummingbird-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "juinron/Hummingbird-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "juinron/Hummingbird-V2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "juinron/Hummingbird-V2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use juinron/Hummingbird-V2 with Docker Model Runner:
docker model run hf.co/juinron/Hummingbird-V2
Replace Hummingbird-V2 banner image
Browse files- README.md +1 -1
- export_manifest.json +6 -6
- hummingbird-v2-banner.jpg +2 -2
README.md
CHANGED
|
@@ -22,7 +22,7 @@ datasets:
|
|
| 22 |
- HuggingFaceFW/finepdfs-edu
|
| 23 |
---
|
| 24 |
|
| 25 |
-

|
| 26 |
|
| 27 |
# Hummingbird-V2
|
| 28 |
|
export_manifest.json
CHANGED
|
@@ -12,9 +12,9 @@
|
|
| 12 |
"bytes": 581,
|
| 13 |
"sha256": "6125f403571b9c2bdf9995946836026822688f56db5ee15ac3e93292573e1ff2"
|
| 14 |
},
|
| 15 |
-
"README.md": {
|
| 16 |
-
"bytes":
|
| 17 |
-
"sha256": "
|
| 18 |
},
|
| 19 |
"TRAINING_DATA.md": {
|
| 20 |
"bytes": 1953,
|
|
@@ -44,9 +44,9 @@
|
|
| 44 |
"bytes": 250,
|
| 45 |
"sha256": "c086c408dba55e547bac299549a8b7713c768cb94a52fd2043429b1564d76094"
|
| 46 |
},
|
| 47 |
-
"hummingbird-v2-banner.jpg": {
|
| 48 |
-
"bytes":
|
| 49 |
-
"sha256": "
|
| 50 |
},
|
| 51 |
"model.safetensors": {
|
| 52 |
"bytes": 39041336,
|
|
|
|
| 12 |
"bytes": 581,
|
| 13 |
"sha256": "6125f403571b9c2bdf9995946836026822688f56db5ee15ac3e93292573e1ff2"
|
| 14 |
},
|
| 15 |
+
"README.md": {
|
| 16 |
+
"bytes": 3275,
|
| 17 |
+
"sha256": "07660e0fd62867bbdb48dec5332cf455a086a52e0d3032580368a72324eb4c30"
|
| 18 |
},
|
| 19 |
"TRAINING_DATA.md": {
|
| 20 |
"bytes": 1953,
|
|
|
|
| 44 |
"bytes": 250,
|
| 45 |
"sha256": "c086c408dba55e547bac299549a8b7713c768cb94a52fd2043429b1564d76094"
|
| 46 |
},
|
| 47 |
+
"hummingbird-v2-banner.jpg": {
|
| 48 |
+
"bytes": 135376,
|
| 49 |
+
"sha256": "f91214ac9d73b3ce3fd855d1c0d875e7b07e86688c14ab11cb0b6095a5cec948"
|
| 50 |
},
|
| 51 |
"model.safetensors": {
|
| 52 |
"bytes": 39041336,
|
hummingbird-v2-banner.jpg
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|