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 lines131415161617181913 unmodified lines333435363637383940404142434 unmodified lines484950515253545556575859606162636451525354555657585960616263646566676812 unmodified lines
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.It achieves the following results on the evaluation set:- Loss: 6.8937- Loss: 4.7211
## Model description
13 unmodified lines
The following hyperparameters were used during training:- learning_rate: 3e-05- train_batch_size: 8- train_batch_size: 1- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 8- total_train_batch_size: 64- total_train_batch_size: 8- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: cosine- lr_scheduler_warmup_steps: 3004 unmodified lines
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.89 | 5 | 8.5629 || No log | 1.96 | 11 | 8.5316 || No log | 2.84 | 16 | 8.4872 || 8.5217 | 3.91 | 22 | 8.4115 || 8.5217 | 4.98 | 28 | 8.3069 || 8.5217 | 5.87 | 33 | 8.1945 || 8.5217 | 6.93 | 39 | 8.0237 || 8.174 | 8.0 | 45 | 7.8173 || 8.174 | 8.89 | 50 | 7.6343 || 8.174 | 9.96 | 56 | 7.4226 || 7.4864 | 10.84 | 61 | 7.2617 || 7.4864 | 11.91 | 67 | 7.0916 || 7.4864 | 12.98 | 73 | 6.9408 || 7.4864 | 13.33 | 75 | 6.8937 || 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 versions14 unmodified lines15161718181920212 unmodified lines24252627272814 unmodified lines "num_attention_heads": 8, "num_hidden_layers": 24, "num_key_value_heads": 8, "pad_token_id": 0, "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": 4312 "vocab_size": 50257}1 unmodified line23455671 unmodified line "_from_model_config": true, "bos_token_id": 1, "eos_token_id": 2, "pad_token_id": 0, "pad_token_id": 50256, "transformers_version": "4.37.2"}12323version https://git-lfs.github.com/spec/v1oid sha256:9540083c13f66af40a2d681a8cc3433b17aa1087a1ee83d06484297c0ccaad0asize 1344172280oid sha256:52c8d6589ac866b90c44e5b803d259a7ee96f9f9029f707aa7db6e82b4515797size 1720553864123version https://git-lfs.github.com/spec/v1oid sha256:078e9bde84335b92eb3479a1d81a9b3621230071826a1c54206d089f6f4b50c6size 134191223version https://git-lfs.github.com/spec/v1oid sha256:441af247b61748e0071ab6c73277ce2d0e45005e5cab77b93c7097303d530ab4oid sha256:6930c0ab087b6ba724e4cf9b2bcb7b1cd8afe2a296b2b6ad30397ad33891d6cfsize 4728README.md+18-17
config.json+2-2
generation_config.json+1-1
model.safetensors+2-2
runs/Mar21_14-06-12_gcn29.local.snellius.surf.nl/events.out.tfevents.1711026382.gcn29.local.snellius.surf.nl.3605748.0Added+3
training_args.bin+1-1