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 (6)
12 unmodified lines1314151617181921 unmodified lines41424344454647484950515253545556575859606162636412 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.1886## Model description21 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 100- num_epochs: 6- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 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 versions- Transformers 4.37.2- Pytorch 2.1.2+cu121- Datasets 2.16.1- Tokenizers 0.15.012 unmodified lines1314151617181921 unmodified lines414243444546474849505152535455565758596061626312 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.1441## Model description21 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 100- num_epochs: 5- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 5.7623 | 1.0 | 145 | 5.6148 || 4.6318 | 2.0 | 290 | 4.6321 || 3.8186 | 3.0 | 435 | 4.2714 || 3.447 | 4.0 | 580 | 4.1596 || 3.2664 | 5.0 | 725 | 4.1441 |### Framework versions- Transformers 4.39.1- Pytorch 2.1.2+cu121- Datasets 2.16.1- Tokenizers 0.15.0
21 unmodified lines2223242526272821 unmodified lines"rope_theta": 10000.0,"tie_word_embeddings": false,"torch_dtype": "float32","transformers_version": "4.37.2","use_cache": true,"vocab_size": 4312}21 unmodified lines2223242526272821 unmodified lines"rope_theta": 10000.0,"tie_word_embeddings": false,"torch_dtype": "float32","transformers_version": "4.39.1","use_cache": true,"vocab_size": 4425}
2 unmodified lines345672 unmodified lines"bos_token_id": 1,"eos_token_id": 2,"pad_token_id": 0,"transformers_version": "4.37.2"}2 unmodified lines345672 unmodified lines"bos_token_id": 1,"eos_token_id": 2,"pad_token_id": 0,"transformers_version": "4.39.1"}
123version https://git-lfs.github.com/spec/v1oid sha256:7b4bcbb5356dde8a15329ab11495572f2d66bb3dabc8f7a980ddf651d1e4cd90size 1344172280123version https://git-lfs.github.com/spec/v1oid sha256:9b0b6f38c404c54d4e5c7875184e8efb93d17e41df03afd29e8128cbb901267csize 1345097976
123version https://git-lfs.github.com/spec/v1oid sha256:667deadef273bc1072c516ddc78e9711e561dbcd34fa9c98bf64726ef75d9252size 13842123version https://git-lfs.github.com/spec/v1oid sha256:95beafee183dd8c0f8967da1e54d6cb38ab5fe23f886d744fcaba66038c60105size 4728123version https://git-lfs.github.com/spec/v1oid sha256:cdc9b49c944ad1d600b4c700b9096b7cb8e099f01d17b84e8484cdb0a927b2fcsize 4984
README.md+8-9
config.json+2-2
generation_config.json+1-1
model.safetensors+2-2
runs/Apr02_11-45-25_gcn21.local.snellius.surf.nl/events.out.tfevents.1712051134.gcn21.local.snellius.surf.nl.4193788.0Added+3
training_args.bin+2-2