Text Generation
Transformers
Safetensors
llama
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/tiny-random-LlamaForCausalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/tiny-random-LlamaForCausalLM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM") 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/tiny-random-LlamaForCausalLM" # 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/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
- SGLang
How to use SystemAdmin123/tiny-random-LlamaForCausalLM 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/tiny-random-LlamaForCausalLM" \ --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/tiny-random-LlamaForCausalLM", "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/tiny-random-LlamaForCausalLM" \ --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/tiny-random-LlamaForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/tiny-random-LlamaForCausalLM with Docker Model Runner:
docker model run hf.co/SystemAdmin123/tiny-random-LlamaForCausalLM
Training in progress, step 350, checkpoint
Browse files
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2066752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e64c8f22073f810e14ea11a51c997d214e79493ceb718231c712f6890686cd0a
|
| 3 |
size 2066752
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2162798
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f58b607dd2bb3376b1a270f24d36d7e6ad6b3fbcf77fb0f3a3fa5f5a10a5ee3
|
| 3 |
size 2162798
|
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 14512
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb5daaf1199744204be7b2c0227bbbc86b8f02198eb2753856850454b418ba43
|
| 3 |
size 14512
|
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 14512
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ef0a11ec368bc2c0da98c701c736f96e203337d9c97fab18e13b92ce5dd6d5b
|
| 3 |
size 14512
|
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:972684576ff55802aec9ad573b837fe663d45ec783d38050b5b6dc1fc7271117
|
| 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": 50,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -273,6 +273,49 @@
|
|
| 273 |
"eval_samples_per_second": 284.199,
|
| 274 |
"eval_steps_per_second": 4.544,
|
| 275 |
"step": 300
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 276 |
}
|
| 277 |
],
|
| 278 |
"logging_steps": 10,
|
|
@@ -292,7 +335,7 @@
|
|
| 292 |
"attributes": {}
|
| 293 |
}
|
| 294 |
},
|
| 295 |
-
"total_flos":
|
| 296 |
"train_batch_size": 32,
|
| 297 |
"trial_name": null,
|
| 298 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 26.923076923076923,
|
| 5 |
"eval_steps": 50,
|
| 6 |
+
"global_step": 350,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 273 |
"eval_samples_per_second": 284.199,
|
| 274 |
"eval_steps_per_second": 4.544,
|
| 275 |
"step": 300
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 23.846153846153847,
|
| 279 |
+
"grad_norm": 0.412109375,
|
| 280 |
+
"learning_rate": 0.00010275543423681621,
|
| 281 |
+
"loss": 9.2185,
|
| 282 |
+
"step": 310
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"epoch": 24.615384615384617,
|
| 286 |
+
"grad_norm": 0.4140625,
|
| 287 |
+
"learning_rate": 9.724456576318381e-05,
|
| 288 |
+
"loss": 9.2101,
|
| 289 |
+
"step": 320
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"epoch": 25.384615384615383,
|
| 293 |
+
"grad_norm": 0.412109375,
|
| 294 |
+
"learning_rate": 9.174206545276677e-05,
|
| 295 |
+
"loss": 9.2002,
|
| 296 |
+
"step": 330
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 26.153846153846153,
|
| 300 |
+
"grad_norm": 0.416015625,
|
| 301 |
+
"learning_rate": 8.626464421815919e-05,
|
| 302 |
+
"loss": 9.193,
|
| 303 |
+
"step": 340
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"epoch": 26.923076923076923,
|
| 307 |
+
"grad_norm": 0.41015625,
|
| 308 |
+
"learning_rate": 8.082893680762619e-05,
|
| 309 |
+
"loss": 9.1896,
|
| 310 |
+
"step": 350
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"epoch": 26.923076923076923,
|
| 314 |
+
"eval_loss": 9.20389461517334,
|
| 315 |
+
"eval_runtime": 5.2643,
|
| 316 |
+
"eval_samples_per_second": 285.129,
|
| 317 |
+
"eval_steps_per_second": 4.559,
|
| 318 |
+
"step": 350
|
| 319 |
}
|
| 320 |
],
|
| 321 |
"logging_steps": 10,
|
|
|
|
| 335 |
"attributes": {}
|
| 336 |
}
|
| 337 |
},
|
| 338 |
+
"total_flos": 143205492326400.0,
|
| 339 |
"train_batch_size": 32,
|
| 340 |
"trial_name": null,
|
| 341 |
"trial_params": null
|