Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/SmolLM-360M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/SmolLM-360M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/SmolLM-360M") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/SmolLM-360M") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/SmolLM-360M", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SystemAdmin123/SmolLM-360M with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/SmolLM-360M" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/SmolLM-360M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/SmolLM-360M
- SGLang
How to use SystemAdmin123/SmolLM-360M 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 "SystemAdmin123/SmolLM-360M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/SmolLM-360M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "SystemAdmin123/SmolLM-360M" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SystemAdmin123/SmolLM-360M", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/SmolLM-360M with Docker Model Runner:
docker model run hf.co/SystemAdmin123/SmolLM-360M
Training in progress, step 160, checkpoint
Browse files- last-checkpoint/model.safetensors +1 -1
- last-checkpoint/optimizer.pt +1 -1
- last-checkpoint/rng_state_0.pth +1 -1
- last-checkpoint/rng_state_1.pth +1 -1
- last-checkpoint/rng_state_2.pth +1 -1
- last-checkpoint/rng_state_3.pth +1 -1
- last-checkpoint/scheduler.pt +1 -1
- last-checkpoint/trainer_state.json +25 -3
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 723674912
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e64380cdeda885e3f553ba7fcb7d6ff8d4418829bf89dcf425b6fd78879cb6fb
|
| 3 |
size 723674912
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 735625370
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:936bdc7085d91b4f1f2e0ce6a7cca97f7dc1249ed3b5140e8b9cc64a5bf4c88c
|
| 3 |
size 735625370
|
last-checkpoint/rng_state_0.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:dd022fe9a852268c9938ee7ec723da82135f24b7b81519ddd3fa10bc5532abc3
|
| 3 |
size 15024
|
last-checkpoint/rng_state_1.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09d5b7286e18d17d32a5d7eefb437a53934b7aa905d2edb287b66e963a806d73
|
| 3 |
size 15024
|
last-checkpoint/rng_state_2.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a5060e223b8d6548a605200749266caae1209b0c1599f9a178131935fc077fa
|
| 3 |
size 15024
|
last-checkpoint/rng_state_3.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bddfa187dc754906a5ece5a1101d66a597575ede390926eb4c7dae90e1450ce8
|
| 3 |
size 15024
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1064
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2ef6aff989d644b47d122f2b587320b4b7487648735e57cddc52e97c1261de49
|
| 3 |
size 1064
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch":
|
| 5 |
"eval_steps": 20,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -169,6 +169,28 @@
|
|
| 169 |
"eval_samples_per_second": 281.135,
|
| 170 |
"eval_steps_per_second": 3.184,
|
| 171 |
"step": 140
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 172 |
}
|
| 173 |
],
|
| 174 |
"logging_steps": 10,
|
|
@@ -188,7 +210,7 @@
|
|
| 188 |
"attributes": {}
|
| 189 |
}
|
| 190 |
},
|
| 191 |
-
"total_flos":
|
| 192 |
"train_batch_size": 23,
|
| 193 |
"trial_name": null,
|
| 194 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 20.0,
|
| 5 |
"eval_steps": 20,
|
| 6 |
+
"global_step": 160,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 169 |
"eval_samples_per_second": 281.135,
|
| 170 |
"eval_steps_per_second": 3.184,
|
| 171 |
"step": 140
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"epoch": 18.75,
|
| 175 |
+
"grad_norm": 0.1337890625,
|
| 176 |
+
"learning_rate": 3.227184283742591e-05,
|
| 177 |
+
"loss": 2.009,
|
| 178 |
+
"step": 150
|
| 179 |
+
},
|
| 180 |
+
{
|
| 181 |
+
"epoch": 20.0,
|
| 182 |
+
"grad_norm": 0.1357421875,
|
| 183 |
+
"learning_rate": 2.1085949060360654e-05,
|
| 184 |
+
"loss": 2.0108,
|
| 185 |
+
"step": 160
|
| 186 |
+
},
|
| 187 |
+
{
|
| 188 |
+
"epoch": 20.0,
|
| 189 |
+
"eval_loss": 2.0700676441192627,
|
| 190 |
+
"eval_runtime": 4.9064,
|
| 191 |
+
"eval_samples_per_second": 305.926,
|
| 192 |
+
"eval_steps_per_second": 3.465,
|
| 193 |
+
"step": 160
|
| 194 |
}
|
| 195 |
],
|
| 196 |
"logging_steps": 10,
|
|
|
|
| 210 |
"attributes": {}
|
| 211 |
}
|
| 212 |
},
|
| 213 |
+
"total_flos": 5.691101391146189e+16,
|
| 214 |
"train_batch_size": 23,
|
| 215 |
"trial_name": null,
|
| 216 |
"trial_params": null
|