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)
- README.md+8-8
- config.json+2-2
- model.safetensors+2-2
- runs/Apr10_10-13-45_gcn68.local.snellius.surf.nl/events.out.tfevents.1712736835.gcn68.local.snellius.surf.nl.3597541.0Added+3
- runs/Apr10_10-19-18_gcn16.local.snellius.surf.nl/events.out.tfevents.1712737168.gcn16.local.snellius.surf.nl.150583.0Added+3
- training_args.bin+1-1
12 unmodified lines1314151617181928 unmodified lines4849505152535455565758596012 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.6344## Model description28 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 4.5524 | 1.0 | 42 | 4.7852 || 2.1679 | 2.0 | 84 | 4.1345 || 1.4522 | 3.0 | 126 | 4.2880 || 0.9328 | 4.0 | 168 | 4.4565 || 0.5606 | 5.0 | 210 | 4.6031 || 0.3514 | 6.0 | 252 | 4.6564 || 0.2839 | 7.0 | 294 | 4.6344 |### Framework versions12 unmodified lines1314151617181928 unmodified lines4849505152535455565758596012 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: 3.4944## Model description28 unmodified lines| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 3.0504 | 1.0 | 197 | 3.3870 || 1.9707 | 2.0 | 394 | 3.2436 || 0.9107 | 3.0 | 591 | 3.3470 || 0.5113 | 4.0 | 788 | 3.4348 || 0.3692 | 5.0 | 985 | 3.4695 || 0.2936 | 6.0 | 1182 | 3.4905 || 0.2342 | 7.0 | 1379 | 3.4944 |### Framework versions
9 unmodified lines101112131415167 unmodified lines24252627289 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,7 unmodified lines"torch_dtype": "float32","transformers_version": "4.39.1","use_cache": true,"vocab_size": 12214}9 unmodified lines101112131415167 unmodified lines24252627289 unmodified lines"hidden_size": 1024,"initializer_range": 0.02,"intermediate_size": 3072,"max_position_embeddings": 64,"model_type": "llama","num_attention_heads": 8,"num_hidden_layers": 24,7 unmodified lines"torch_dtype": "float32","transformers_version": "4.39.1","use_cache": true,"vocab_size": 32000}
123version https://git-lfs.github.com/spec/v1oid sha256:581986c8393aab378ba562c2e1515606e5f06fcb1b3cd14bf03d7ba824cd0bcesize 1408905504123version https://git-lfs.github.com/spec/v1oid sha256:59b8a5e4c46e9d9a9f3a4211804b7c30c33ff390779c553649ef74ee8ab7cb36size 1570992472
123version https://git-lfs.github.com/spec/v1oid sha256:d70e0bdd4cd3a06c0b23d8ea797205d2805135b31f5cc2e59c4d81aec544723bsize 13007123version https://git-lfs.github.com/spec/v1oid sha256:d91c1da480cb97fc52467549542d5313f88afaff7f18fdfee41499544f3a13d9size 21137123version https://git-lfs.github.com/spec/v1oid sha256:3ed61a658032aee43721b02ee38be59a2bf2b6b2a5447552875f86900ad7932esize 4984123version https://git-lfs.github.com/spec/v1oid sha256:c909776f3d4c8ae287c4e7b022d707381710ed10e5e8ad0394e3fe7325f879d8size 4984
README.md+8-8
config.json+2-2
model.safetensors+2-2
runs/Apr10_10-13-45_gcn68.local.snellius.surf.nl/events.out.tfevents.1712736835.gcn68.local.snellius.surf.nl.3597541.0Added+3
runs/Apr10_10-19-18_gcn16.local.snellius.surf.nl/events.out.tfevents.1712737168.gcn16.local.snellius.surf.nl.150583.0Added+3
training_args.bin+1-1