Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
text-generation-inference
Run this model with HF Jobs
Run ninagroot/Llama-360M-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/Llama-360M-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/Llama-360M-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/Llama-360M-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/Llama-360M-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/Llama-360M-RUN1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ninagroot/Llama-360M-RUN1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ninagroot/Llama-360M-RUN1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ninagroot/Llama-360M-RUN1") model = AutoModelForCausalLM.from_pretrained("ninagroot/Llama-360M-RUN1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ninagroot/Llama-360M-RUN1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ninagroot/Llama-360M-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/Llama-360M-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ninagroot/Llama-360M-RUN1
- SGLang
How to use ninagroot/Llama-360M-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/Llama-360M-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/Llama-360M-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/Llama-360M-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/Llama-360M-RUN1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ninagroot/Llama-360M-RUN1 with Docker Model Runner:
docker model run hf.co/ninagroot/Llama-360M-RUN1
ninagroot/Llama-360Mtest
Browse filesFiles changed (4)
12 unmodified lines1314151617181921 unmodified lines4142434445464748495051525354555657585960616212 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.0688## Model description21 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 50- num_epochs: 15- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 9.6377 | 0.57 | 1 | 9.6302 || 9.4525 | 1.71 | 3 | 9.4287 || 8.7163 | 2.86 | 5 | 8.9832 || 7.8128 | 4.0 | 7 | 8.3895 || 7.4521 | 4.57 | 8 | 8.1403 || 6.9301 | 5.71 | 10 | 7.7375 || 6.5872 | 6.86 | 12 | 7.4260 || 6.2594 | 8.0 | 14 | 7.2005 || 6.073 | 8.57 | 15 | 7.0688 |### Framework versions12 unmodified lines1314151617181921 unmodified lines4142434445464748495051525354555657585960616263646512 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: 6.5980## Model description21 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 50- num_epochs: 20- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 9.6138 | 0.57 | 1 | 9.6268 || 9.4594 | 1.71 | 3 | 9.4257 || 8.7153 | 2.86 | 5 | 8.9917 || 7.7997 | 4.0 | 7 | 8.3919 || 7.4748 | 4.57 | 8 | 8.1416 || 6.9795 | 5.71 | 10 | 7.7509 || 6.6277 | 6.86 | 12 | 7.4589 || 6.2995 | 8.0 | 14 | 7.2322 || 6.1166 | 8.57 | 15 | 7.1325 || 5.7999 | 9.71 | 17 | 6.9254 || 5.4888 | 10.86 | 19 | 6.6730 || 5.3856 | 11.43 | 20 | 6.5980 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:7c9c21db99fcd97e1ecf5b7c802156a6a9f884d5bc607d7db3cfec7d95179624size 1408774432123version https://git-lfs.github.com/spec/v1oid sha256:1a28d5ff4b352756a95bff49f21aa02925143e768fa85267275560477094dec1size 1408774432
123version https://git-lfs.github.com/spec/v1oid sha256:8061c12bb7fa786406e663ea8fe245e892bf776404972a2731f6c2ea3d25ee80size 12241123version https://git-lfs.github.com/spec/v1oid sha256:aab47956e03301f319c490c7a433eb881c15373168f14ed294725b34da173253size 4984123version https://git-lfs.github.com/spec/v1oid sha256:b05e54949eb8fdf41cb0d84830786d09439c7ac5c5cc32ac399ebef740d18dd5size 4984
README.md+14-11
model.safetensors+1-1
runs/Apr17_10-07-02_gcn7.local.snellius.surf.nl/events.out.tfevents.1713341231.gcn7.local.snellius.surf.nl.1399995.0Added+3
training_args.bin+1-1