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 (5)
12 unmodified lines1314151617181921 unmodified lines41424344454647484950515253545556575859606112 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.8269## 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: 8- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 2.9655 | 1.0 | 254 | 3.7658 || 1.7363 | 2.0 | 509 | 3.5948 || 0.9884 | 3.0 | 763 | 3.6899 || 0.6078 | 4.0 | 1018 | 3.7297 || 0.3566 | 5.0 | 1272 | 3.7598 || 0.2182 | 6.0 | 1527 | 3.8006 || 0.1633 | 7.0 | 1781 | 3.8219 || 0.1284 | 7.98 | 2032 | 3.8269 |### Framework versions12 unmodified lines1314151617181921 unmodified lines41424344454647484950515253545512 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.5128## 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: 2- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 2.9191 | 1.0 | 254 | 3.7445 || 1.828 | 2.0 | 508 | 3.5128 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:dd82abd3133a184ba4773b3c6a75792665145cf367d5308fd529d07d7da1e95csize 1570992472123version https://git-lfs.github.com/spec/v1oid sha256:06c31e469dafc14f5b44973fff506cb6b58c7e9a29212eca1a94b10698acd27esize 1570992472
123version https://git-lfs.github.com/spec/v1oid sha256:380d8369928ff546700ce9feb6f12afd293429b4318c79a7d98fb385d03bf24dsize 1070931 unmodified lines3233343536373831 unmodified lines"clean_up_tokenization_spaces": false,"eos_token": "</s>","legacy": true,"model_max_length": 128,"pad_token": "<pad>","sp_model_kwargs": {},"spaces_between_special_tokens": false,31 unmodified lines3233343536373831 unmodified lines"clean_up_tokenization_spaces": false,"eos_token": "</s>","legacy": true,"model_max_length": 30,"pad_token": "<pad>","sp_model_kwargs": {},"spaces_between_special_tokens": false,
123version https://git-lfs.github.com/spec/v1oid sha256:6e192133b205882b76e8d67aa6c28e4a7aece21d9df363db42b30a69b6cd47b7size 4984123version https://git-lfs.github.com/spec/v1oid sha256:56176203a926a2239766a855e8a4c7e560543261d6afbdedcc1dfba1e0c75197size 4984
README.md+4-10
model.safetensors+1-1
runs/Apr02_16-38-15_gcn36.local.snellius.surf.nl/events.out.tfevents.1712068707.gcn36.local.snellius.surf.nl.1729376.0Added+3
tokenizer_config.json+1-1
training_args.bin+1-1