Run this model with HF Jobs
Run ninagroot/Baby-Llama-58M-RUN1 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/ninagroot/Baby-Llama-58M-RUN1. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/ninagroot/Baby-Llama-58M-RUN1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/ninagroot/Baby-Llama-58M-RUN1. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/ninagroot/Baby-Llama-58M-RUN1. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
Instructions to use ninagroot/Baby-Llama-58M-RUN1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ninagroot/Baby-Llama-58M-RUN1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ninagroot/Baby-Llama-58M-RUN1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ninagroot/Baby-Llama-58M-RUN1") model = AutoModelForCausalLM.from_pretrained("ninagroot/Baby-Llama-58M-RUN1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ninagroot/Baby-Llama-58M-RUN1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ninagroot/Baby-Llama-58M-RUN1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ninagroot/Baby-Llama-58M-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ninagroot/Baby-Llama-58M-RUN1
- SGLang
How to use ninagroot/Baby-Llama-58M-RUN1 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 "ninagroot/Baby-Llama-58M-RUN1" \ --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": "ninagroot/Baby-Llama-58M-RUN1", "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 "ninagroot/Baby-Llama-58M-RUN1" \ --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": "ninagroot/Baby-Llama-58M-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ninagroot/Baby-Llama-58M-RUN1 with Docker Model Runner:
docker model run hf.co/ninagroot/Baby-Llama-58M-RUN1
ninagroot/babyllamatest
Browse filesFiles changed (3)
- README.md+23-9
- model.safetensors+1-1
- training_args.bin+1-1
12 unmodified lines1314151617181913 unmodified lines3334353637383940414243444546474849505152535455565712 unmodified linesThis model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 7.6556## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.00025- train_batch_size: 32- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 200- num_epochs: 6- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 1.0 | 9 | 19.5340 || No log | 2.0 | 18 | 17.4242 || 19.1821 | 3.0 | 27 | 13.5117 || 19.1821 | 4.0 | 36 | 10.3060 || 12.6195 | 5.0 | 45 | 8.3484 || 12.6195 | 6.0 | 54 | 7.6556 |### Framework versions12 unmodified lines1314151617181913 unmodified lines33343536373839404142434445464748495051525354555657585960616263646566676869707112 unmodified linesThis model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 4.7798## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.00025- train_batch_size: 4- eval_batch_size: 8- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 200- num_epochs: 20- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 228.9046 | 1.0 | 69 | 183.9362 || 158.6568 | 2.0 | 138 | 122.8038 || 87.0199 | 3.0 | 207 | 62.3969 || 39.1635 | 4.0 | 276 | 29.1315 || 19.4916 | 5.0 | 345 | 16.1894 || 13.4191 | 6.0 | 414 | 11.5129 || 9.3492 | 7.0 | 483 | 8.9074 || 8.2602 | 8.0 | 552 | 7.9025 || 6.829 | 9.0 | 621 | 7.0024 || 6.1546 | 10.0 | 690 | 7.2613 || 5.9399 | 11.0 | 759 | 6.2635 || 5.1628 | 12.0 | 828 | 5.8800 || 4.7436 | 13.0 | 897 | 5.4414 || 4.4796 | 14.0 | 966 | 5.2233 || 4.2451 | 15.0 | 1035 | 5.0823 || 3.9813 | 16.0 | 1104 | 4.9157 || 3.964 | 17.0 | 1173 | 4.8591 || 3.7291 | 18.0 | 1242 | 4.8019 || 3.6921 | 19.0 | 1311 | 4.7856 || 3.7736 | 20.0 | 1380 | 4.7798 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:7fdf72852b78931c6f7cb5ecfe501284d8c0b6dc5143b6dbcd1a8bfeadca59c1size 185517896123version https://git-lfs.github.com/spec/v1oid sha256:f2daa0ab16d93e32a0089dabf0bee621d9e6e82887f2c55c0655ca5d43b050d5size 185517896
123version https://git-lfs.github.com/spec/v1oid sha256:7fd6f39ae4b261d70954f564d70c3d3b85f9c83600101c57d771ce9b66bbaf12size 4792123version https://git-lfs.github.com/spec/v1oid sha256:c69c378e4a1c40fb2a61be22b4600cbba143f862ccd36b473635296ae0616e1bsize 4792
README.md+23-9
model.safetensors+1-1
training_args.bin+1-1