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 lines131415161617181913 unmodified lines333435363637383940404142434 unmodified lines484950515253545556575859606162636465515253545556575859606162636465666712 unmodified lines
This 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.3606- Loss: 7.0554
## Model description
13 unmodified lines
The following hyperparameters were used during training:- learning_rate: 3e-05- train_batch_size: 1- train_batch_size: 8- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 8- total_train_batch_size: 8- total_train_batch_size: 64- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 3004 unmodified lines
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 8.3772 | 0.99 | 44 | 8.2600 || 7.4813 | 1.99 | 88 | 7.1917 || 6.7108 | 2.98 | 132 | 6.4281 || 6.0293 | 4.0 | 177 | 5.8969 || 5.1002 | 4.99 | 221 | 5.3150 || 4.5767 | 5.99 | 265 | 4.8598 || 4.3085 | 6.98 | 309 | 4.6251 || 4.1028 | 8.0 | 354 | 4.4794 || 3.765 | 8.99 | 398 | 4.4287 || 3.6087 | 9.99 | 442 | 4.3823 || 3.4937 | 10.98 | 486 | 4.3547 || 3.2339 | 12.0 | 531 | 4.3534 || 3.0636 | 12.99 | 575 | 4.3613 || 2.9827 | 13.99 | 619 | 4.3627 || 3.0038 | 14.92 | 660 | 4.3606 || No log | 0.89 | 5 | 8.5606 || No log | 1.96 | 11 | 8.5292 || No log | 2.84 | 16 | 8.4846 || 8.4864 | 3.91 | 22 | 8.4073 || 8.4864 | 4.98 | 28 | 8.3008 || 8.4864 | 5.87 | 33 | 8.1839 || 8.4864 | 6.93 | 39 | 8.0042 || 7.9713 | 8.0 | 45 | 7.7971 || 7.9713 | 8.89 | 50 | 7.6271 || 7.9713 | 9.96 | 56 | 7.4406 || 7.1329 | 10.84 | 61 | 7.3101 || 7.1329 | 11.91 | 67 | 7.1784 || 7.1329 | 12.98 | 73 | 7.0835 || 7.1329 | 13.33 | 75 | 7.0554 |
### Framework versions1223version https://git-lfs.github.com/spec/v1oid sha256:6bbf983db3a389a9896edd6e16758396cd5c8f0a0885175848b5f5b82ebbaef3oid sha256:e203949035322b93f96b32e33a3b46f8c77bd3c483c213fc723687fa1c693a6fsize 1344172280123version https://git-lfs.github.com/spec/v1oid sha256:b3169131d0782747d9292c36ca86717f670f03a6cd87545b712936dbda8e8204size 88521223version https://git-lfs.github.com/spec/v1oid sha256:ff767715fe6d836b914073aef0c4ff6866ea24394c87468c1b6d8cf0a0f8e6d0oid sha256:1cd45b93b103b11a2d592bcdfebeb34897c8c0f1a33e8d2c49fad0f8943a6900size 4728README.md+17-18
model.safetensors+1-1
runs/Mar20_16-10-51_gcn51.local.snellius.surf.nl/events.out.tfevents.1710947464.gcn51.local.snellius.surf.nl.1064152.0Added+3
training_args.bin+1-1