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 550, 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:03e72bc52453741a5a977061d349ab0a06726b5829e937ad47a1c11012b1540f
|
| 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:a4560fb5425fea78ba74f156be382a1cbcb58e351eba39bc932b5701d939b057
|
| 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:a9d51e4a7056c3558a387ed54a4d13c51368f1e567102a0ee859969fb5f31cd3
|
| 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:1204ca9be37de89665f7f1742f206de4543c6c56db448f2a4968fb174cdf1393
|
| 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:0160b3598707f8907336269c674f5ce56b2bbdea80b3e53648f4959f2a4937ca
|
| 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,
|
|
@@ -445,6 +445,49 @@
|
|
| 445 |
"eval_samples_per_second": 265.206,
|
| 446 |
"eval_steps_per_second": 4.24,
|
| 447 |
"step": 500
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 448 |
}
|
| 449 |
],
|
| 450 |
"logging_steps": 10,
|
|
@@ -464,7 +507,7 @@
|
|
| 464 |
"attributes": {}
|
| 465 |
}
|
| 466 |
},
|
| 467 |
-
"total_flos":
|
| 468 |
"train_batch_size": 32,
|
| 469 |
"trial_name": null,
|
| 470 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 42.30769230769231,
|
| 5 |
"eval_steps": 50,
|
| 6 |
+
"global_step": 550,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 445 |
"eval_samples_per_second": 265.206,
|
| 446 |
"eval_steps_per_second": 4.24,
|
| 447 |
"step": 500
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"epoch": 39.23076923076923,
|
| 451 |
+
"grad_norm": 0.419921875,
|
| 452 |
+
"learning_rate": 1.2052624879351104e-05,
|
| 453 |
+
"loss": 9.1771,
|
| 454 |
+
"step": 510
|
| 455 |
+
},
|
| 456 |
+
{
|
| 457 |
+
"epoch": 40.0,
|
| 458 |
+
"grad_norm": 0.41796875,
|
| 459 |
+
"learning_rate": 9.564283930242257e-06,
|
| 460 |
+
"loss": 9.1775,
|
| 461 |
+
"step": 520
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"epoch": 40.76923076923077,
|
| 465 |
+
"grad_norm": 0.416015625,
|
| 466 |
+
"learning_rate": 7.350593278519824e-06,
|
| 467 |
+
"loss": 9.1773,
|
| 468 |
+
"step": 530
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"epoch": 41.53846153846154,
|
| 472 |
+
"grad_norm": 0.41796875,
|
| 473 |
+
"learning_rate": 5.418275829936537e-06,
|
| 474 |
+
"loss": 9.1787,
|
| 475 |
+
"step": 540
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"epoch": 42.30769230769231,
|
| 479 |
+
"grad_norm": 0.41796875,
|
| 480 |
+
"learning_rate": 3.7731999690749585e-06,
|
| 481 |
+
"loss": 9.1761,
|
| 482 |
+
"step": 550
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"epoch": 42.30769230769231,
|
| 486 |
+
"eval_loss": 9.19363784790039,
|
| 487 |
+
"eval_runtime": 5.2646,
|
| 488 |
+
"eval_samples_per_second": 285.113,
|
| 489 |
+
"eval_steps_per_second": 4.559,
|
| 490 |
+
"step": 550
|
| 491 |
}
|
| 492 |
],
|
| 493 |
"logging_steps": 10,
|
|
|
|
| 507 |
"attributes": {}
|
| 508 |
}
|
| 509 |
},
|
| 510 |
+
"total_flos": 225037202227200.0,
|
| 511 |
"train_batch_size": 32,
|
| 512 |
"trial_name": null,
|
| 513 |
"trial_params": null
|