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 lines1314151617181912 unmodified lines323334353637382 unmodified lines41424344454647484950515253545556575859606162636465666768697071727312 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.9825## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 0.0003- train_batch_size: 1- eval_batch_size: 8- seed: 422 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 300- num_epochs: 20- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 10.7103 | 0.98 | 32 | 8.8380 || 7.6149 | 1.99 | 65 | 6.7963 || 6.4154 | 2.97 | 97 | 5.7262 || 5.0267 | 3.98 | 130 | 5.1313 || 4.387 | 5.0 | 163 | 4.9127 || 4.1622 | 5.98 | 195 | 4.7890 || 3.7426 | 6.99 | 228 | 4.7529 || 3.483 | 8.0 | 261 | 4.7366 || 3.2482 | 8.98 | 293 | 4.7420 || 2.8495 | 9.99 | 326 | 4.7989 || 2.7111 | 10.97 | 358 | 4.7948 || 2.129 | 11.98 | 391 | 4.8183 || 1.6497 | 13.0 | 424 | 4.8724 || 1.3473 | 13.98 | 456 | 4.9136 || 0.9066 | 14.99 | 489 | 4.9447 || 0.6857 | 16.0 | 522 | 4.9582 || 0.5487 | 16.98 | 554 | 4.9712 || 0.3983 | 17.99 | 587 | 4.9771 || 0.3503 | 18.97 | 619 | 4.9824 || 0.3477 | 19.62 | 640 | 4.9825 |### Framework versions12 unmodified lines1314151617181912 unmodified lines323334353637382 unmodified lines4142434445464748495051525354555657585960616263646566676812 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.3345## Model description12 unmodified lines### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 3e-05- train_batch_size: 1- eval_batch_size: 8- seed: 422 unmodified lines- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 300- num_epochs: 15- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 8.5386 | 0.99 | 34 | 8.3354 || 7.896 | 2.0 | 69 | 7.4834 || 6.8868 | 2.99 | 103 | 6.7625 || 6.4658 | 4.0 | 138 | 6.1839 || 5.8471 | 4.99 | 172 | 5.7833 || 5.2893 | 6.0 | 207 | 5.2802 || 4.6612 | 6.99 | 241 | 4.8722 || 4.5265 | 8.0 | 276 | 4.6448 || 4.093 | 8.99 | 310 | 4.5199 || 3.8628 | 10.0 | 345 | 4.4178 || 3.7924 | 10.99 | 379 | 4.3819 || 3.5135 | 12.0 | 414 | 4.3379 || 3.2653 | 12.99 | 448 | 4.3451 || 3.2222 | 14.0 | 483 | 4.3393 || 3.2136 | 14.78 | 510 | 4.3345 |### Framework versions
14 unmodified lines151617181920212 unmodified lines242526272814 unmodified lines"num_attention_heads": 8,"num_hidden_layers": 24,"num_key_value_heads": 8,"pad_token_id": 50256,"pretraining_tp": 1,"rms_norm_eps": 1e-06,"rope_scaling": null,2 unmodified lines"torch_dtype": "float32","transformers_version": "4.37.2","use_cache": true,"vocab_size": 50257}14 unmodified lines151617181920212 unmodified lines242526272814 unmodified lines"num_attention_heads": 8,"num_hidden_layers": 24,"num_key_value_heads": 8,"pad_token_id": 0,"pretraining_tp": 1,"rms_norm_eps": 1e-06,"rope_scaling": null,2 unmodified lines"torch_dtype": "float32","transformers_version": "4.37.2","use_cache": true,"vocab_size": 4312}
1 unmodified line2345671 unmodified line"_from_model_config": true,"bos_token_id": 1,"eos_token_id": 2,"pad_token_id": 50256,"transformers_version": "4.37.2"}1 unmodified line2345671 unmodified line"_from_model_config": true,"bos_token_id": 1,"eos_token_id": 2,"pad_token_id": 0,"transformers_version": "4.37.2"}
123version https://git-lfs.github.com/spec/v1oid sha256:ef3156a8d151356cdcfd3ab09b9a293a70e7f912816fe61313a1f217edb048e1size 1720553864123version https://git-lfs.github.com/spec/v1oid sha256:4df6aa3aecda4f15a5dfe56935f69dca228660de335ada3018f6e3224cb03fdcsize 1344172280
123version https://git-lfs.github.com/spec/v1oid sha256:e85d5762e9aee1b399f833ea513fc50b74e62b5b6541c4fbacf52392353a800dsize 12629123version https://git-lfs.github.com/spec/v1oid sha256:1ea73475b4a87801ca9770b73f428a8fd2309528c132f1b917b55adfe8c25dfesize 4728123version https://git-lfs.github.com/spec/v1oid sha256:c18414f50a1a1d06089eb32903b401e02fe3d9906ae6e5586de44ccbeda6707asize 4728
README.md+18-23
config.json+2-2
generation_config.json+1-1
model.safetensors+2-2
runs/Mar20_14-59-31_gcn51.local.snellius.surf.nl/events.out.tfevents.1710943181.gcn51.local.snellius.surf.nl.948558.0Added+3
training_args.bin+1-1