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 lines1314151617181913 unmodified lines33343536373839404142434 unmodified lines4849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929312 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: 5.8024## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.0003- train_batch_size: 8- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 32- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 504 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 8.5041 | 1.0 | 7 | 8.6380 || 6.6883 | 2.0 | 14 | 7.4371 || 5.9557 | 3.0 | 21 | 6.6954 || 4.8588 | 4.0 | 28 | 6.1892 || 4.4731 | 5.0 | 35 | 5.5921 || 3.6281 | 6.0 | 42 | 5.3513 || 2.9612 | 7.0 | 49 | 5.2090 || 2.802 | 8.0 | 56 | 5.1107 || 2.4916 | 9.0 | 63 | 5.1980 || 2.1409 | 10.0 | 70 | 5.1957 || 1.6778 | 11.0 | 77 | 5.2886 || 1.2634 | 12.0 | 84 | 5.3171 || 0.886 | 13.0 | 91 | 5.3896 || 0.6634 | 14.0 | 98 | 5.4225 || 0.4751 | 15.0 | 105 | 5.4527 || 0.3235 | 16.0 | 112 | 5.4897 || 0.2209 | 17.0 | 119 | 5.5317 || 0.179 | 18.0 | 126 | 5.5994 || 0.1267 | 19.0 | 133 | 5.5412 || 0.0678 | 20.0 | 140 | 5.6162 || 0.059 | 21.0 | 147 | 5.6587 || 0.0312 | 22.0 | 154 | 5.6621 || 0.0289 | 23.0 | 161 | 5.6768 || 0.0238 | 24.0 | 168 | 5.6965 || 0.0148 | 25.0 | 175 | 5.7041 || 0.0133 | 26.0 | 182 | 5.7436 || 0.0122 | 27.0 | 189 | 5.7582 || 0.0111 | 28.0 | 196 | 5.7673 || 0.0099 | 29.0 | 203 | 5.7776 || 0.0103 | 30.0 | 210 | 5.7868 || 0.0119 | 31.0 | 217 | 5.7928 || 0.0091 | 32.0 | 224 | 5.7955 || 0.0081 | 33.0 | 231 | 5.7970 || 0.0093 | 34.0 | 238 | 5.7987 || 0.0096 | 35.0 | 245 | 5.8000 || 0.0085 | 36.0 | 252 | 5.8012 || 0.0088 | 37.0 | 259 | 5.8019 || 0.0065 | 38.0 | 266 | 5.8023 || 0.0107 | 39.0 | 273 | 5.8024 || 0.0066 | 40.0 | 280 | 5.8024 |### Framework versions12 unmodified lines1314151617181913 unmodified lines33343536373839404142434 unmodified lines484950515253545556575859606162636465666768697071727374757612 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: 5.3649## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.0003- train_batch_size: 32- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 4- total_train_batch_size: 128- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 504 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 9.5781 | 0.57 | 1 | 9.5646 || 9.4151 | 1.71 | 3 | 9.3660 || 8.6797 | 2.86 | 5 | 8.9242 || 7.7829 | 4.0 | 7 | 8.3276 || 7.4363 | 4.57 | 8 | 8.0833 || 6.9645 | 5.71 | 10 | 7.6931 || 6.6265 | 6.86 | 12 | 7.4268 || 6.2878 | 8.0 | 14 | 7.1965 || 6.1084 | 8.57 | 15 | 7.0904 || 5.7872 | 9.71 | 17 | 6.8732 || 5.43 | 10.86 | 19 | 6.6048 || 5.0767 | 12.0 | 21 | 6.4381 || 4.9363 | 12.57 | 22 | 6.3377 || 4.5648 | 13.71 | 24 | 6.1173 || 4.2417 | 14.86 | 26 | 5.9199 || 3.926 | 16.0 | 28 | 5.7397 || 3.7467 | 16.57 | 29 | 5.6383 || 3.4837 | 17.71 | 31 | 5.5448 || 3.2985 | 18.86 | 33 | 5.4371 || 2.9882 | 20.0 | 35 | 5.4290 || 2.8515 | 20.57 | 36 | 5.4213 || 2.5933 | 21.71 | 38 | 5.3916 || 2.3065 | 22.86 | 40 | 5.3649 |### Framework versions
123version https://git-lfs.github.com/spec/v1oid sha256:74228c349164d80ee62af7c29b63be54d60266aec8f44c532549eefe6da737ddsize 1408774432123version https://git-lfs.github.com/spec/v1oid sha256:b5565075cfacf013834e10d49bc325bd1a80185b85099c949d8dad85d1e04cb1size 1408774432
123version https://git-lfs.github.com/spec/v1oid sha256:738b4f1feb1965f2a2e13b2e15f40429257b5e464fdba685998ff58b71ca5e14size 19308123version https://git-lfs.github.com/spec/v1oid sha256:b31b00a75e81265b81970f32b5ebd7e524ba0b5a165a9ed33f3baada7f115907size 4984123version https://git-lfs.github.com/spec/v1oid sha256:29cdcf928fd468e90e2f2a6126f8cfcf3d4abe128edd25f38df98c1fe01aa3b6size 4984
README.md+26-43
model.safetensors+1-1
runs/Apr17_11-43-33_gcn46.local.snellius.surf.nl/events.out.tfevents.1713347022.gcn46.local.snellius.surf.nl.929188.0Added+3
training_args.bin+1-1