Instructions to use stage-babylm/llama-128-12L with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use stage-babylm/llama-128-12L with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="stage-babylm/llama-128-12L")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("stage-babylm/llama-128-12L") model = AutoModelForCausalLM.from_pretrained("stage-babylm/llama-128-12L", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use stage-babylm/llama-128-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-128-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-128-12L", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/stage-babylm/llama-128-12L
- SGLang
How to use stage-babylm/llama-128-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-128-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-128-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-128-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-128-12L", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use stage-babylm/llama-128-12L with Docker Model Runner:
docker model run hf.co/stage-babylm/llama-128-12L
llama-128-12L
This model is a fine-tuned version of on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.8314
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.9236 |
| 3.5254 | 0.0124 | 500 | 3.3697 |
| 2.7384 | 0.0248 | 1000 | 2.7186 |
| 2.5260 | 0.0372 | 1500 | 2.5190 |
| 2.4335 | 0.0497 | 2000 | 2.4186 |
| 2.3391 | 0.0621 | 2500 | 2.3297 |
| 2.2774 | 0.0745 | 3000 | 2.2772 |
| 2.2378 | 0.0869 | 3500 | 2.2310 |
| 2.2117 | 0.0993 | 4000 | 2.2034 |
| 2.1927 | 0.1117 | 4500 | 2.1756 |
| 2.1733 | 0.1241 | 5000 | 2.1671 |
| 2.1537 | 0.1366 | 5500 | 2.1493 |
| 2.1369 | 0.1490 | 6000 | 2.1323 |
| 2.1127 | 0.1614 | 6500 | 2.1177 |
| 2.1113 | 0.1738 | 7000 | 2.1131 |
| 2.0952 | 0.1862 | 7500 | 2.1030 |
| 2.0961 | 0.1986 | 8000 | 2.0963 |
| 2.0940 | 0.2110 | 8500 | 2.0911 |
| 2.0800 | 0.2234 | 9000 | 2.0861 |
| 2.0795 | 0.2359 | 9500 | 2.0751 |
| 2.0781 | 0.2483 | 10000 | 2.0710 |
| 2.0666 | 0.2607 | 10500 | 2.0667 |
| 2.0677 | 0.2731 | 11000 | 2.0623 |
| 2.0568 | 0.2855 | 11500 | 2.0615 |
| 2.0594 | 0.2979 | 12000 | 2.0596 |
| 2.0522 | 0.3103 | 12500 | 2.0555 |
| 2.0473 | 0.3228 | 13000 | 2.0460 |
| 2.0562 | 0.3352 | 13500 | 2.0466 |
| 2.0405 | 0.3476 | 14000 | 2.0417 |
| 2.0406 | 0.3600 | 14500 | 2.0448 |
| 2.0320 | 0.3724 | 15000 | 2.0462 |
| 2.0362 | 0.3848 | 15500 | 2.0368 |
| 2.0326 | 0.3972 | 16000 | 2.0392 |
| 2.0433 | 0.4097 | 16500 | 2.0318 |
| 2.0382 | 0.4221 | 17000 | 2.0352 |
| 2.0284 | 0.4345 | 17500 | 2.0347 |
| 2.0360 | 0.4469 | 18000 | 2.0296 |
| 2.0206 | 0.4593 | 18500 | 2.0261 |
| 2.0270 | 0.4717 | 19000 | 2.0253 |
| 2.0260 | 0.4841 | 19500 | 2.0255 |
| 2.0187 | 0.4965 | 20000 | 2.0209 |
| 2.0189 | 0.5090 | 20500 | 2.0218 |
| 2.0266 | 0.5214 | 21000 | 2.0176 |
| 2.0158 | 0.5338 | 21500 | 2.0209 |
| 2.0180 | 0.5462 | 22000 | 2.0195 |
| 2.0162 | 0.5586 | 22500 | 2.0167 |
| 2.0172 | 0.5710 | 23000 | 2.0149 |
| 2.0161 | 0.5834 | 23500 | 2.0186 |
| 2.0167 | 0.5959 | 24000 | 2.0161 |
| 2.0184 | 0.6083 | 24500 | 2.0154 |
| 2.0212 | 0.6207 | 25000 | 2.0127 |
| 2.0052 | 0.6331 | 25500 | 2.0062 |
| 2.0083 | 0.6455 | 26000 | 2.0118 |
| 2.0069 | 0.6579 | 26500 | 2.0097 |
| 2.0065 | 0.6703 | 27000 | 2.0066 |
| 2.0058 | 0.6828 | 27500 | 2.0089 |
| 2.0133 | 0.6952 | 28000 | 2.0092 |
| 2.0043 | 0.7076 | 28500 | 2.0086 |
| 2.0075 | 0.7200 | 29000 | 2.0060 |
| 2.0019 | 0.7324 | 29500 | 2.0034 |
| 2.0011 | 0.7448 | 30000 | 2.0033 |
| 2.0039 | 0.7572 | 30500 | 2.0037 |
| 2.0039 | 0.7697 | 31000 | 2.0037 |
| 1.9979 | 0.7821 | 31500 | 2.0023 |
| 1.9961 | 0.7945 | 32000 | 2.0006 |
| 2.0007 | 0.8069 | 32500 | 2.0004 |
| 2.0039 | 0.8193 | 33000 | 2.0046 |
| 2.0026 | 0.8317 | 33500 | 2.0001 |
| 2.0076 | 0.8441 | 34000 | 1.9967 |
| 1.9992 | 0.8565 | 34500 | 2.0042 |
| 2.0044 | 0.8690 | 35000 | 2.0016 |
| 1.9936 | 0.8814 | 35500 | 2.0026 |
| 1.9928 | 0.8938 | 36000 | 1.9994 |
| 2.0002 | 0.9062 | 36500 | 1.9951 |
| 1.9761 | 0.9186 | 37000 | 1.9876 |
| 1.9606 | 0.9310 | 37500 | 1.9585 |
| 1.9321 | 0.9434 | 38000 | 1.9356 |
| 1.9050 | 0.9559 | 38500 | 1.8997 |
| 1.8659 | 0.9683 | 39000 | 1.8676 |
| 1.8442 | 0.9807 | 39500 | 1.8429 |
| 1.8280 | 0.9931 | 40000 | 1.8322 |
| 1.8253 | 1.0 | 40278 | 1.8314 |
Framework versions
- Transformers 5.14.1
- Pytorch 2.13.0+cu130
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- -