Instructions to use stage-babylm/llama-64-12L with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stage-babylm/llama-64-12L with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stage-babylm/llama-64-12L")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stage-babylm/llama-64-12L") model = AutoModelForCausalLM.from_pretrained("stage-babylm/llama-64-12L", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stage-babylm/llama-64-12L with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "stage-babylm/llama-64-12L" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "stage-babylm/llama-64-12L", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/stage-babylm/llama-64-12L
- SGLang
How to use stage-babylm/llama-64-12L 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 "stage-babylm/llama-64-12L" \ --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": "stage-babylm/llama-64-12L", "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 "stage-babylm/llama-64-12L" \ --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": "stage-babylm/llama-64-12L", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use stage-babylm/llama-64-12L with Docker Model Runner:
docker model run hf.co/stage-babylm/llama-64-12L
llama-64-12L
This model is a fine-tuned version of on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 2.0049
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0014
- train_batch_size: 32
- eval_batch_size: 32
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.95) and epsilon=1e-06 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: warmup_stable_decay
- lr_scheduler_warmup_steps: 0.05
- num_epochs: 1.0
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| No log | 0 | 0 | 6.9369 |
| 4.3029 | 0.0124 | 500 | 4.0407 |
| 3.0137 | 0.0248 | 1000 | 2.9706 |
| 2.6976 | 0.0372 | 1500 | 2.6802 |
| 2.5811 | 0.0497 | 2000 | 2.5656 |
| 2.4809 | 0.0621 | 2500 | 2.4790 |
| 2.4237 | 0.0745 | 3000 | 2.4152 |
| 2.3832 | 0.0869 | 3500 | 2.3751 |
| 2.3600 | 0.0993 | 4000 | 2.3496 |
| 2.3388 | 0.1117 | 4500 | 2.3242 |
| 2.3209 | 0.1241 | 5000 | 2.3140 |
| 2.3043 | 0.1366 | 5500 | 2.2940 |
| 2.2830 | 0.1490 | 6000 | 2.2771 |
| 2.2618 | 0.1614 | 6500 | 2.2732 |
| 2.2638 | 0.1738 | 7000 | 2.2620 |
| 2.2474 | 0.1862 | 7500 | 2.2544 |
| 2.2466 | 0.1986 | 8000 | 2.2480 |
| 2.2465 | 0.2110 | 8500 | 2.2457 |
| 2.2325 | 0.2234 | 9000 | 2.2366 |
| 2.2327 | 0.2359 | 9500 | 2.2297 |
| 2.2318 | 0.2483 | 10000 | 2.2241 |
| 2.2205 | 0.2607 | 10500 | 2.2177 |
| 2.2209 | 0.2731 | 11000 | 2.2162 |
| 2.2072 | 0.2855 | 11500 | 2.2128 |
| 2.2131 | 0.2979 | 12000 | 2.2168 |
| 2.2065 | 0.3103 | 12500 | 2.2130 |
| 2.2020 | 0.3228 | 13000 | 2.2034 |
| 2.2108 | 0.3352 | 13500 | 2.2009 |
| 2.1963 | 0.3476 | 14000 | 2.1993 |
| 2.1967 | 0.3600 | 14500 | 2.1960 |
| 2.1858 | 0.3724 | 15000 | 2.2049 |
| 2.1956 | 0.3848 | 15500 | 2.1949 |
| 2.1917 | 0.3972 | 16000 | 2.1942 |
| 2.1985 | 0.4097 | 16500 | 2.1905 |
| 2.1975 | 0.4221 | 17000 | 2.1930 |
| 2.1848 | 0.4345 | 17500 | 2.1923 |
| 2.1970 | 0.4469 | 18000 | 2.1843 |
| 2.1795 | 0.4593 | 18500 | 2.1857 |
| 2.1842 | 0.4717 | 19000 | 2.1833 |
| 2.1842 | 0.4841 | 19500 | 2.1786 |
| 2.1792 | 0.4965 | 20000 | 2.1799 |
| 2.1781 | 0.5090 | 20500 | 2.1799 |
| 2.1849 | 0.5214 | 21000 | 2.1800 |
| 2.1755 | 0.5338 | 21500 | 2.1745 |
| 2.1787 | 0.5462 | 22000 | 2.1800 |
| 2.1767 | 0.5586 | 22500 | 2.1757 |
| 2.1765 | 0.5710 | 23000 | 2.1759 |
| 2.1752 | 0.5834 | 23500 | 2.1764 |
| 2.1775 | 0.5959 | 24000 | 2.1764 |
| 2.1789 | 0.6083 | 24500 | 2.1716 |
| 2.1820 | 0.6207 | 25000 | 2.1731 |
| 2.1646 | 0.6331 | 25500 | 2.1691 |
| 2.1685 | 0.6455 | 26000 | 2.1702 |
| 2.1649 | 0.6579 | 26500 | 2.1669 |
| 2.1683 | 0.6703 | 27000 | 2.1708 |
| 2.1663 | 0.6828 | 27500 | 2.1703 |
| 2.1738 | 0.6952 | 28000 | 2.1676 |
| 2.1637 | 0.7076 | 28500 | 2.1701 |
| 2.1687 | 0.7200 | 29000 | 2.1625 |
| 2.1631 | 0.7324 | 29500 | 2.1646 |
| 2.1624 | 0.7448 | 30000 | 2.1624 |
| 2.1682 | 0.7572 | 30500 | 2.1649 |
| 2.1646 | 0.7697 | 31000 | 2.1662 |
| 2.1595 | 0.7821 | 31500 | 2.1637 |
| 2.1552 | 0.7945 | 32000 | 2.1622 |
| 2.1618 | 0.8069 | 32500 | 2.1599 |
| 2.1690 | 0.8193 | 33000 | 2.1655 |
| 2.1684 | 0.8317 | 33500 | 2.1616 |
| 2.1698 | 0.8441 | 34000 | 2.1619 |
| 2.1643 | 0.8565 | 34500 | 2.1636 |
| 2.1637 | 0.8690 | 35000 | 2.1620 |
| 2.1551 | 0.8814 | 35500 | 2.1649 |
| 2.1551 | 0.8938 | 36000 | 2.1634 |
| 2.1640 | 0.9062 | 36500 | 2.1576 |
| 2.1378 | 0.9186 | 37000 | 2.1533 |
| 2.1266 | 0.9310 | 37500 | 2.1272 |
| 2.1001 | 0.9434 | 38000 | 2.1011 |
| 2.0739 | 0.9559 | 38500 | 2.0685 |
| 2.0372 | 0.9683 | 39000 | 2.0389 |
| 2.0189 | 0.9807 | 39500 | 2.0164 |
| 2.0014 | 0.9931 | 40000 | 2.0059 |
| 1.9974 | 1.0 | 40278 | 2.0049 |
Framework versions
- Transformers 5.14.1
- Pytorch 2.13.0+cu130
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- -