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 lines33343536363738394040414243444445464748495051525354555657585960616251525354555657585912 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.3046- Loss: 4.1886
## Model description
13 unmodified lines
The following hyperparameters were used during training:- learning_rate: 0.0003- train_batch_size: 2- train_batch_size: 1- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 2- total_train_batch_size: 4- total_train_batch_size: 2- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 100- num_epochs: 12- num_epochs: 6- mixed_precision_training: Native AMP
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 6.0662 | 1.0 | 69 | 5.8781 || 5.1419 | 2.0 | 138 | 4.9025 || 4.1271 | 3.0 | 207 | 4.4935 || 3.8908 | 4.0 | 276 | 4.3523 || 3.5293 | 5.0 | 345 | 4.2722 || 3.322 | 6.0 | 414 | 4.2443 || 2.8975 | 7.0 | 483 | 4.2451 || 2.6264 | 8.0 | 552 | 4.2609 || 2.346 | 9.0 | 621 | 4.2915 || 1.9401 | 10.0 | 690 | 4.2793 || 1.7366 | 11.0 | 759 | 4.3004 || 1.676 | 12.0 | 828 | 4.3046 || 5.9345 | 1.0 | 138 | 5.6878 || 4.7674 | 2.0 | 276 | 4.7003 || 3.6914 | 3.0 | 414 | 4.3374 || 3.6076 | 4.0 | 552 | 4.2433 || 3.3436 | 5.0 | 690 | 4.1851 || 2.939 | 6.0 | 828 | 4.1886 |
### Framework versions1223version https://git-lfs.github.com/spec/v1oid sha256:4486339afec1cf614855ff7c7c981cd6604026e99f59f47a8c5557e39d874a23oid sha256:7b4bcbb5356dde8a15329ab11495572f2d66bb3dabc8f7a980ddf651d1e4cd90size 1344172280123version https://git-lfs.github.com/spec/v1oid sha256:1d132b8483ea35d0f6081ace981d6bff4b3719e3ac003ae641a3396eb80bbce2size 127171223version https://git-lfs.github.com/spec/v1oid sha256:92d7d7ba48657e43574e3d1deedfdd10bdc5b34e7b372b3aec112b1d0ce75abdoid sha256:95beafee183dd8c0f8967da1e54d6cb38ab5fe23f886d744fcaba66038c60105size 4728README.md+10-16
model.safetensors+1-1
runs/Mar25_10-22-22_gcn31.local.snellius.surf.nl/events.out.tfevents.1711358551.gcn31.local.snellius.surf.nl.1845946.0Added+3
training_args.bin+1-1