Instructions to use w-ahmad/tiny-llama-baseline-situglu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use w-ahmad/tiny-llama-baseline-situglu with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="w-ahmad/tiny-llama-baseline-situglu") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("w-ahmad/tiny-llama-baseline-situglu", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use w-ahmad/tiny-llama-baseline-situglu with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "w-ahmad/tiny-llama-baseline-situglu" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "w-ahmad/tiny-llama-baseline-situglu", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/w-ahmad/tiny-llama-baseline-situglu
- SGLang
How to use w-ahmad/tiny-llama-baseline-situglu 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 "w-ahmad/tiny-llama-baseline-situglu" \ --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": "w-ahmad/tiny-llama-baseline-situglu", "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 "w-ahmad/tiny-llama-baseline-situglu" \ --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": "w-ahmad/tiny-llama-baseline-situglu", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use w-ahmad/tiny-llama-baseline-situglu with Docker Model Runner:
docker model run hf.co/w-ahmad/tiny-llama-baseline-situglu
tiny-llama-baseline-situglu
This model is a fine-tuned version of on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 1.3839
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.0003
- train_batch_size: 32
- eval_batch_size: 32
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 64
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: constant
- training_steps: 10000
Training results
| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 5.8313 | 0.0159 | 250 | 2.8854 |
| 4.6325 | 0.0319 | 500 | 2.3345 |
| 4.1802 | 0.0478 | 750 | 2.0870 |
| 3.8631 | 0.0637 | 1000 | 1.9404 |
| 3.7073 | 0.0796 | 1250 | 1.8444 |
| 3.5027 | 0.0956 | 1500 | 1.7725 |
| 3.4414 | 0.1115 | 1750 | 1.7238 |
| 3.3564 | 0.1274 | 2000 | 1.6845 |
| 3.3003 | 0.1433 | 2250 | 1.6524 |
| 3.1822 | 0.1593 | 2500 | 1.6235 |
| 3.1618 | 0.1752 | 2750 | 1.5997 |
| 3.1667 | 0.1911 | 3000 | 1.5814 |
| 3.1793 | 0.2071 | 3250 | 1.5652 |
| 3.1133 | 0.2230 | 3500 | 1.5505 |
| 3.0683 | 0.2389 | 3750 | 1.5347 |
| 3.0116 | 0.2548 | 4000 | 1.5229 |
| 3.0286 | 0.2708 | 4250 | 1.5121 |
| 2.9835 | 0.2867 | 4500 | 1.5008 |
| 2.9524 | 0.3026 | 4750 | 1.4927 |
| 2.9365 | 0.3185 | 5000 | 1.4838 |
| 2.9148 | 0.3345 | 5250 | 1.4760 |
| 2.9646 | 0.3504 | 5500 | 1.4690 |
| 2.9633 | 0.3663 | 5750 | 1.4613 |
| 2.9265 | 0.3823 | 6000 | 1.4567 |
| 2.9072 | 0.3982 | 6250 | 1.4485 |
| 2.8895 | 0.4141 | 6500 | 1.4441 |
| 2.8846 | 0.4300 | 6750 | 1.4385 |
| 2.8704 | 0.4460 | 7000 | 1.4334 |
| 2.8507 | 0.4619 | 7250 | 1.4272 |
| 2.8462 | 0.4778 | 7500 | 1.4215 |
| 2.8561 | 0.4937 | 7750 | 1.4190 |
| 2.7884 | 0.5097 | 8000 | 1.4141 |
| 2.8249 | 0.5256 | 8250 | 1.4105 |
| 2.8453 | 0.5415 | 8500 | 1.4060 |
| 2.7967 | 0.5574 | 8750 | 1.4015 |
| 2.8201 | 0.5734 | 9000 | 1.3981 |
| 2.7965 | 0.5893 | 9250 | 1.3942 |
| 2.7560 | 0.6052 | 9500 | 1.3919 |
| 2.7896 | 0.6212 | 9750 | 1.3868 |
| 2.7553 | 0.6371 | 10000 | 1.3839 |
Framework versions
- Transformers 5.15.0.dev0
- Pytorch 2.6.0+cu124
- Datasets 5.0.1
- Tokenizers 0.22.2
- Downloads last month
- 12