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
Show condensed training mix on model card
Browse files- README.md +14 -4
- export_manifest.json +2 -2
README.md
CHANGED
|
@@ -44,10 +44,20 @@ in the same small language model series. V2 was trained from a fresh initializat
|
|
| 44 |
|
| 45 |
## Training and data
|
| 46 |
|
| 47 |
-
The model was trained on
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
|
| 52 |
## Zero-shot evaluation
|
| 53 |
|
|
|
|
| 44 |
|
| 45 |
## Training and data
|
| 46 |
|
| 47 |
+
The model was trained on this balanced mix:
|
| 48 |
+
|
| 49 |
+
| Source | Share |
|
| 50 |
+
|---|---:|
|
| 51 |
+
| FineWeb-Edu sources | 55% |
|
| 52 |
+
| Cosmopedia v2 | 15% |
|
| 53 |
+
| FineMath 4+ | 10% |
|
| 54 |
+
| DCLM baseline | 10% |
|
| 55 |
+
| Dolma 3 science, question answering, and code | 7% |
|
| 56 |
+
| FinePDFs-Edu | 3% |
|
| 57 |
+
|
| 58 |
+
Training used Muon and AdamW with a 512-token context. See
|
| 59 |
+
[training data](TRAINING_DATA.md) for source details and
|
| 60 |
+
[training provenance](training/provenance.json) for the full recipe.
|
| 61 |
|
| 62 |
## Zero-shot evaluation
|
| 63 |
|
export_manifest.json
CHANGED
|
@@ -13,8 +13,8 @@
|
|
| 13 |
"sha256": "6125f403571b9c2bdf9995946836026822688f56db5ee15ac3e93292573e1ff2"
|
| 14 |
},
|
| 15 |
"README.md": {
|
| 16 |
-
"bytes":
|
| 17 |
-
"sha256": "
|
| 18 |
},
|
| 19 |
"TRAINING_DATA.md": {
|
| 20 |
"bytes": 1953,
|
|
|
|
| 13 |
"sha256": "6125f403571b9c2bdf9995946836026822688f56db5ee15ac3e93292573e1ff2"
|
| 14 |
},
|
| 15 |
"README.md": {
|
| 16 |
+
"bytes": 3212,
|
| 17 |
+
"sha256": "cba301faaae037afc9ba67df6c8c82bc377f24239e81238e6e09b1152f889a11"
|
| 18 |
},
|
| 19 |
"TRAINING_DATA.md": {
|
| 20 |
"bytes": 1953,
|