Instructions to use ninagroot/Baby-Llama-58M-RUN3_5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ninagroot/Baby-Llama-58M-RUN3_5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ninagroot/Baby-Llama-58M-RUN3_5")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ninagroot/Baby-Llama-58M-RUN3_5") model = AutoModelForCausalLM.from_pretrained("ninagroot/Baby-Llama-58M-RUN3_5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ninagroot/Baby-Llama-58M-RUN3_5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ninagroot/Baby-Llama-58M-RUN3_5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ninagroot/Baby-Llama-58M-RUN3_5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ninagroot/Baby-Llama-58M-RUN3_5
- SGLang
How to use ninagroot/Baby-Llama-58M-RUN3_5 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/Baby-Llama-58M-RUN3_5" \ --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/Baby-Llama-58M-RUN3_5", "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/Baby-Llama-58M-RUN3_5" \ --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/Baby-Llama-58M-RUN3_5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ninagroot/Baby-Llama-58M-RUN3_5 with Docker Model Runner:
docker model run hf.co/ninagroot/Baby-Llama-58M-RUN3_5
ninagroot/Baby-Llama-58M-RUN3_5
Browse files- README.md +21 -21
- model.safetensors +1 -1
- training_args.bin +1 -1
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: 5.
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
@@ -46,26 +46,26 @@ The following hyperparameters were used during training:
|
|
| 46 |
|
| 47 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 48 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 49 |
-
|
|
| 50 |
-
|
|
| 51 |
-
| 207.
|
| 52 |
-
|
|
| 53 |
-
|
|
| 54 |
-
|
|
| 55 |
-
| 24.
|
| 56 |
-
|
|
| 57 |
-
| 10.
|
| 58 |
-
| 7.
|
| 59 |
-
| 6.
|
| 60 |
-
| 6.
|
| 61 |
-
| 5.
|
| 62 |
-
| 5.
|
| 63 |
-
| 4.
|
| 64 |
-
| 4.
|
| 65 |
-
| 4.
|
| 66 |
-
| 4.
|
| 67 |
-
| 4.
|
| 68 |
-
| 4.
|
| 69 |
|
| 70 |
|
| 71 |
### 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.2656
|
| 17 |
|
| 18 |
## Model description
|
| 19 |
|
|
|
|
| 46 |
|
| 47 |
| Training Loss | Epoch | Step | Validation Loss |
|
| 48 |
|:-------------:|:-----:|:----:|:---------------:|
|
| 49 |
+
| 287.9659 | 1.0 | 12 | 256.0041 |
|
| 50 |
+
| 230.7873 | 2.0 | 24 | 212.6014 |
|
| 51 |
+
| 207.1002 | 3.0 | 36 | 180.9384 |
|
| 52 |
+
| 121.5561 | 4.0 | 48 | 107.3193 |
|
| 53 |
+
| 81.2108 | 5.0 | 60 | 71.6529 |
|
| 54 |
+
| 45.9781 | 6.0 | 72 | 40.4501 |
|
| 55 |
+
| 24.5986 | 7.0 | 84 | 22.4212 |
|
| 56 |
+
| 15.2205 | 8.0 | 96 | 13.7469 |
|
| 57 |
+
| 10.1247 | 9.0 | 108 | 9.8119 |
|
| 58 |
+
| 7.975 | 10.0 | 120 | 7.8583 |
|
| 59 |
+
| 6.7087 | 11.0 | 132 | 7.0360 |
|
| 60 |
+
| 6.1988 | 12.0 | 144 | 6.4104 |
|
| 61 |
+
| 5.6752 | 13.0 | 156 | 6.1222 |
|
| 62 |
+
| 5.5155 | 14.0 | 168 | 5.8179 |
|
| 63 |
+
| 4.7754 | 15.0 | 180 | 5.5676 |
|
| 64 |
+
| 4.816 | 16.0 | 192 | 5.4583 |
|
| 65 |
+
| 4.817 | 17.0 | 204 | 5.3641 |
|
| 66 |
+
| 4.6966 | 18.0 | 216 | 5.3147 |
|
| 67 |
+
| 4.8322 | 19.0 | 228 | 5.2867 |
|
| 68 |
+
| 4.4875 | 20.0 | 240 | 5.2656 |
|
| 69 |
|
| 70 |
|
| 71 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 185829192
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94259b9329f0b57791803a734917bc8a4814098eca9f0f1144b01154b59b46d5
|
| 3 |
size 185829192
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4984
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1582fe73503bb94141ee70d619cabbb13cd185c5434b091c50ebee223da58a5c
|
| 3 |
size 4984
|