Text Generation
Transformers
TensorBoard
Safetensors
llama
Generated from Trainer
text-generation-inference
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")# 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 files
README.md
CHANGED
|
@@ -13,7 +13,7 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 13 |
|
| 14 |
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 15 |
It achieves the following results on the evaluation set:
|
| 16 |
-
- Loss:
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
@@ -48,21 +48,21 @@ The following hyperparameters were used during training:
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
-
| 8.
|
| 52 |
-
| 7.
|
| 53 |
-
| 6.
|
| 54 |
-
|
|
| 55 |
-
|
|
| 56 |
-
| 4.
|
| 57 |
-
| 4.
|
| 58 |
-
|
|
| 59 |
-
| 3.
|
| 60 |
-
|
|
| 61 |
-
|
|
| 62 |
-
|
|
| 63 |
-
|
|
| 64 |
-
|
|
| 65 |
-
|
|
| 66 |
|
| 67 |
|
| 68 |
### Framework versions
|
|
|
|
| 13 |
|
| 14 |
This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
|
| 15 |
It achieves the following results on the evaluation set:
|
| 16 |
+
- Loss: 5.2706
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
|
|
| 48 |
|
| 49 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 50 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 51 |
+
| 8.4154 | 0.99 | 44 | 8.2674 |
|
| 52 |
+
| 7.3733 | 1.98 | 88 | 7.2246 |
|
| 53 |
+
| 6.4378 | 3.0 | 133 | 6.5650 |
|
| 54 |
+
| 5.5786 | 3.99 | 177 | 6.1513 |
|
| 55 |
+
| 4.8345 | 4.98 | 221 | 5.7858 |
|
| 56 |
+
| 4.3034 | 5.99 | 266 | 5.4541 |
|
| 57 |
+
| 4.019 | 6.99 | 310 | 5.2054 |
|
| 58 |
+
| 3.5206 | 8.0 | 355 | 5.0984 |
|
| 59 |
+
| 3.0144 | 8.99 | 399 | 5.0603 |
|
| 60 |
+
| 2.6052 | 9.98 | 443 | 5.0552 |
|
| 61 |
+
| 2.2063 | 11.0 | 488 | 5.1439 |
|
| 62 |
+
| 1.7308 | 11.99 | 532 | 5.1838 |
|
| 63 |
+
| 1.4794 | 12.98 | 576 | 5.2275 |
|
| 64 |
+
| 1.2218 | 13.99 | 621 | 5.2608 |
|
| 65 |
+
| 1.1556 | 14.87 | 660 | 5.2706 |
|
| 66 |
|
| 67 |
|
| 68 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1344172280
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8964bc33b0bce23ca552b07f763bc59b0b28176fe18c016c02363dcea9199c3c
|
| 3 |
size 1344172280
|
runs/Mar20_15-28-58_gcn7.local.snellius.surf.nl/events.out.tfevents.1710944950.gcn7.local.snellius.surf.nl.1480103.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:016d94e8143710e80b020cf8599903d062f6cb1afb58006f48ba8a13f6ed787e
|
| 3 |
+
size 13889
|
tokenizer_config.json
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
"bos_token": "<s>",
|
| 38 |
"clean_up_tokenization_spaces": true,
|
| 39 |
"eos_token": "</s>",
|
| 40 |
-
"model_max_length":
|
| 41 |
"pad_token": "<pad>",
|
| 42 |
"tokenizer_class": "GPT2Tokenizer",
|
| 43 |
"unk_token": "<|endoftext|>"
|
|
|
|
| 37 |
"bos_token": "<s>",
|
| 38 |
"clean_up_tokenization_spaces": true,
|
| 39 |
"eos_token": "</s>",
|
| 40 |
+
"model_max_length": 100,
|
| 41 |
"pad_token": "<pad>",
|
| 42 |
"tokenizer_class": "GPT2Tokenizer",
|
| 43 |
"unk_token": "<|endoftext|>"
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4728
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f2b624f97bbf017a411c0d68c58ad13a58993c06d08892fa70debc40d6021e32
|
| 3 |
size 4728
|