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 (10)
12 unmodified lines1314151617181912 unmodified lines323334353637389 unmodified lines48495051525354555657585960616263646566676812 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.7211## 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: 429 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 10.8127 | 0.98 | 41 | 10.5984 || 9.6409 | 1.98 | 83 | 9.0771 || 8.3725 | 2.99 | 125 | 8.0192 || 7.2983 | 3.99 | 167 | 7.0163 || 6.408 | 4.99 | 209 | 6.2115 || 5.4886 | 5.99 | 251 | 5.4663 || 4.8987 | 7.0 | 293 | 5.1240 || 4.4918 | 8.0 | 335 | 4.9146 || 4.2381 | 8.98 | 376 | 4.8076 || 4.0984 | 9.98 | 418 | 4.7645 || 3.9135 | 10.99 | 460 | 4.7195 || 3.6736 | 11.99 | 502 | 4.7150 || 3.467 | 12.99 | 544 | 4.7175 || 3.4323 | 13.99 | 586 | 4.7194 || 3.443 | 14.69 | 615 | 4.7211 |### Framework versions12 unmodified lines1314151617181912 unmodified lines323334353637389 unmodified lines48495051525354555657585960616263646566676812 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.4066## 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: 429 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 7.1842 | 0.99 | 44 | 6.6664 || 5.6972 | 1.99 | 88 | 5.4155 || 4.8124 | 2.98 | 132 | 4.6722 || 4.1773 | 4.0 | 177 | 4.4451 || 3.6907 | 4.99 | 221 | 4.3309 || 3.5861 | 5.99 | 265 | 4.2794 || 3.3727 | 6.98 | 309 | 4.2343 || 3.1369 | 8.0 | 354 | 4.2810 || 2.7116 | 8.99 | 398 | 4.2828 || 2.3491 | 9.99 | 442 | 4.3183 || 2.0411 | 10.98 | 486 | 4.3084 || 1.5302 | 12.0 | 531 | 4.3548 || 1.1022 | 12.99 | 575 | 4.3852 || 0.8591 | 13.99 | 619 | 4.4058 || 0.7952 | 14.92 | 660 | 4.4066 |### 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:52c8d6589ac866b90c44e5b803d259a7ee96f9f9029f707aa7db6e82b4515797size 1720553864123version https://git-lfs.github.com/spec/v1oid sha256:78c1fe6f7d2437c2bafc14f73fde089a7b787a9de39c6d9b251e0f45d3dad955size 1344172280
123version https://git-lfs.github.com/spec/v1oid sha256:e98aa76f66cf91ee9f810b47e7b86d7e7453e0a328b397f5b569aecf19ea7277size 138901 unmodified line234561 unmodified line"bos_token": "<s>","eos_token": "</s>","pad_token": "<pad>","unk_token": "<|endoftext|>"}1 unmodified line234567891011121 unmodified line"bos_token": "<s>","eos_token": "</s>","pad_token": "<pad>","unk_token": {"content": "<|endoftext|>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false}}
123456789101112131415161718192021222324252627282930313233342 unmodified lines373839404142{"add_prefix_space": false,"added_tokens_decoder": {"0": {"content": "<pad>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"1": {"content": "<s>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"2": {"content": "</s>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true},"4312": {"content": "<|endoftext|>","lstrip": false,"normalized": false,"rstrip": false,"single_word": false,"special": true2 unmodified lines"bos_token": "<s>","clean_up_tokenization_spaces": true,"eos_token": "</s>","model_max_length": 100,"pad_token": "<pad>","tokenizer_class": "GPT2Tokenizer",12345678910112 unmodified lines14151617181920{"add_bos_token": false,"add_prefix_space": false,"added_tokens_decoder": {"50256": {"content": "<|endoftext|>","lstrip": false,"normalized": true,"rstrip": false,"single_word": false,"special": true2 unmodified lines"bos_token": "<s>","clean_up_tokenization_spaces": true,"eos_token": "</s>","errors": "replace","model_max_length": 100,"pad_token": "<pad>","tokenizer_class": "GPT2Tokenizer",
123version https://git-lfs.github.com/spec/v1oid sha256:6930c0ab087b6ba724e4cf9b2bcb7b1cd8afe2a296b2b6ad30397ad33891d6cfsize 4728123version https://git-lfs.github.com/spec/v1oid sha256:f13366bfb195d096cd3184a397ce800d616db058f4a3641146de48e5a915eec0size 4728
README.md+17-17
config.json+2-2
generation_config.json+1-1
merges.txt
model.safetensors+2-2
runs/Mar21_14-19-37_gcn7.local.snellius.surf.nl/events.out.tfevents.1711027186.gcn7.local.snellius.surf.nl.2387174.0Added+3
special_tokens_map.json+7-1
tokenizer_config.json+4-26
training_args.bin+1-1
vocab.json