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 (7)
- README.md+8-14
- config.json+1-1
- model.safetensors+1-1
- runs/Mar22_11-42-50_gcn28.local.snellius.surf.nl/events.out.tfevents.1711104184.gcn28.local.snellius.surf.nl.3104221.0Added+3
- runs/Mar22_11-44-51_gcn14.local.snellius.surf.nl/events.out.tfevents.1711104302.gcn14.local.snellius.surf.nl.856670.0Added+3
- tokenizer_config.json+1-1
- training_args.bin+1-1
12 unmodified lines1314151617181913 unmodified lines3334353637383940414243444546474849505152535455565758596061626312 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.1915## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.0003- train_batch_size: 1- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 8- 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: 300- num_epochs: 10- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 7.042 | 0.99 | 44 | 6.5393 || 5.6951 | 1.99 | 88 | 5.4631 || 4.7481 | 2.98 | 132 | 4.6474 || 4.1761 | 4.0 | 177 | 4.4405 || 3.6565 | 4.99 | 221 | 4.3291 || 3.5648 | 5.99 | 265 | 4.2850 || 3.3644 | 6.98 | 309 | 4.2276 || 3.1299 | 8.0 | 354 | 4.2050 || 2.5705 | 8.99 | 398 | 4.2062 || 2.1843 | 9.94 | 440 | 4.1915 |### Framework versions12 unmodified lines1314151617181913 unmodified lines3334353637383940414243444546474849505152535455565712 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: 8.3245## Model description13 unmodified linesThe following hyperparameters were used during training:- learning_rate: 0.0003- train_batch_size: 16- eval_batch_size: 8- seed: 42- gradient_accumulation_steps: 8- 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: 300- num_epochs: 4- mixed_precision_training: Native AMP### Training results| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| No log | 0.89 | 2 | 8.5737 || No log | 1.78 | 4 | 8.5252 || No log | 2.67 | 6 | 8.4412 || No log | 3.56 | 8 | 8.3245 |### Framework versions
9 unmodified lines101112131415169 unmodified lines"hidden_size": 1024,"initializer_range": 0.02,"intermediate_size": 3072,"max_position_embeddings": 200,"model_type": "llama","num_attention_heads": 8,"num_hidden_layers": 24,9 unmodified lines101112131415169 unmodified lines"hidden_size": 1024,"initializer_range": 0.02,"intermediate_size": 3072,"max_position_embeddings": 256,"model_type": "llama","num_attention_heads": 8,"num_hidden_layers": 24,
123version https://git-lfs.github.com/spec/v1oid sha256:75005945ce406a49db1b8b4b9aef520f33dd864987fe79a782192a532bf8d76bsize 1344172280123version https://git-lfs.github.com/spec/v1oid sha256:c4e7e2fdbdb2c9d26bec5fe70b1e741eb30888fa00a93c82d8fd5fdbeb7c94a1size 1344172280
123version https://git-lfs.github.com/spec/v1oid sha256:d9b34146abf395d823ae4cda1a6ec400ec4651ac7209ac60ffa9413f01c06747size 5731123version https://git-lfs.github.com/spec/v1oid sha256:578eb156726fc0e7e7211b9c6e5b6e5a6ba390bfdcc60d66a2fc502d9fc13e17size 573136 unmodified lines3738394041424336 unmodified lines"bos_token": "<s>","clean_up_tokenization_spaces": true,"eos_token": "</s>","model_max_length": 100,"pad_token": "<pad>","tokenizer_class": "GPT2Tokenizer","unk_token": "<|endoftext|>"36 unmodified lines3738394041424336 unmodified lines"bos_token": "<s>","clean_up_tokenization_spaces": true,"eos_token": "</s>","model_max_length": 128,"pad_token": "<pad>","tokenizer_class": "GPT2Tokenizer","unk_token": "<|endoftext|>"
123version https://git-lfs.github.com/spec/v1oid sha256:a8087606d28ebab0c1abebab447a0ae1e9c17fda4ef368b96a83e8f2e6950e66size 4728123version https://git-lfs.github.com/spec/v1oid sha256:e3179a2a3fe68b86253b0ba9c42f796efa0b7ead1164a0e56535abe8e14039e7size 4728
README.md+8-14
config.json+1-1
model.safetensors+1-1
runs/Mar22_11-42-50_gcn28.local.snellius.surf.nl/events.out.tfevents.1711104184.gcn28.local.snellius.surf.nl.3104221.0Added+3
runs/Mar22_11-44-51_gcn14.local.snellius.surf.nl/events.out.tfevents.1711104302.gcn14.local.snellius.surf.nl.856670.0Added+3
tokenizer_config.json+1-1
training_args.bin+1-1