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+21-21
- model.safetensors+1-1
- training_args.bin+1-1
12 unmodified lines1314151617181926 unmodified lines464748495051525354555657585960616263646566676869707112 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: 3.9790## Model description26 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 205.6138 | 1.0 | 69 | 165.0209 || 140.5155 | 2.0 | 138 | 108.3043 || 71.1999 | 3.0 | 207 | 48.5052 || 26.2745 | 4.0 | 276 | 20.7425 || 13.2665 | 5.0 | 345 | 12.1278 || 9.6075 | 6.0 | 414 | 8.5203 || 6.7498 | 7.0 | 483 | 6.8251 || 6.1128 | 8.0 | 552 | 6.3816 || 5.5661 | 9.0 | 621 | 5.6632 || 4.8771 | 10.0 | 690 | 5.3599 || 4.6769 | 11.0 | 759 | 5.0607 || 4.2186 | 12.0 | 828 | 4.7932 || 3.9824 | 13.0 | 897 | 4.4486 || 3.8089 | 14.0 | 966 | 4.2846 || 3.6713 | 15.0 | 1035 | 4.1736 || 3.4087 | 16.0 | 1104 | 4.1207 || 3.4155 | 17.0 | 1173 | 4.0485 || 3.2099 | 18.0 | 1242 | 4.0001 || 3.2476 | 19.0 | 1311 | 3.9819 || 3.2992 | 20.0 | 1380 | 3.9790 |### Framework versions12 unmodified lines1314151617181926 unmodified lines464748495051525354555657585960616263646566676869707112 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: 3.9805## Model description26 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 208.1439 | 1.0 | 69 | 168.7479 || 137.7666 | 2.0 | 138 | 104.4204 || 64.4054 | 3.0 | 207 | 42.3502 || 26.5661 | 4.0 | 276 | 19.2662 || 14.7544 | 5.0 | 345 | 12.7249 || 10.2813 | 6.0 | 414 | 8.5354 || 6.9142 | 7.0 | 483 | 7.3827 || 6.1554 | 8.0 | 552 | 6.4836 || 5.3557 | 9.0 | 621 | 5.5994 || 4.8551 | 10.0 | 690 | 5.4054 || 4.7462 | 11.0 | 759 | 4.9582 || 4.1657 | 12.0 | 828 | 4.7667 || 4.0338 | 13.0 | 897 | 4.4520 || 3.8436 | 14.0 | 966 | 4.2957 || 3.6859 | 15.0 | 1035 | 4.2060 || 3.4503 | 16.0 | 1104 | 4.0957 || 3.4381 | 17.0 | 1173 | 4.0400 || 3.2315 | 18.0 | 1242 | 4.0068 || 3.2559 | 19.0 | 1311 | 3.9848 || 3.3044 | 20.0 | 1380 | 3.9805 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:6e1af789ab67b927e9857138eaf00c67a67ee0caf68b7ce064d21d7bda7371e9size 185517896123version https://git-lfs.github.com/spec/v1oid sha256:9925d491ca799897f70b48245759259ad5d64b36d4b976076a474865f3e75683size 185517896
123version https://git-lfs.github.com/spec/v1oid sha256:583ec0d9fd1108d00756e1c3b69ddbec684f2f03713c12642e1c41db6c04a6f0size 4792123version https://git-lfs.github.com/spec/v1oid sha256:d72472d90ccb6353e373291e39e33b128c9244c2d501fc745a44c17b455cf604size 4792
README.md+21-21
model.safetensors+1-1
training_args.bin+1-1