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 600, 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:da6a17dd4ebabed24d872d4606102003c0e657825096a008c1ebd2fc857ec3e7
|
| 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:272e87f837b0a6554425cf17e2bd0c25c2fd014cc81e381c4c2ca0d5dbb67931
|
| 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:da2a7e5837e8166f34d69c47cbcb9c5f754b8d9aaee67ec69e6f2fe466d72356
|
| 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:bd3708ae31f1069fc45ac5848423f03f6df0cd0e16b6138df98e3ba73d336476
|
| 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:5ad54995b081fae25638228c5d9c8f38ca277e5c5ad00bc3e49897b543f84405
|
| 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,
|
|
@@ -488,6 +488,49 @@
|
|
| 488 |
"eval_samples_per_second": 285.113,
|
| 489 |
"eval_steps_per_second": 4.559,
|
| 490 |
"step": 550
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 491 |
}
|
| 492 |
],
|
| 493 |
"logging_steps": 10,
|
|
@@ -502,12 +545,12 @@
|
|
| 502 |
"should_evaluate": false,
|
| 503 |
"should_log": false,
|
| 504 |
"should_save": true,
|
| 505 |
-
"should_training_stop":
|
| 506 |
},
|
| 507 |
"attributes": {}
|
| 508 |
}
|
| 509 |
},
|
| 510 |
-
"total_flos":
|
| 511 |
"train_batch_size": 32,
|
| 512 |
"trial_name": null,
|
| 513 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 46.15384615384615,
|
| 5 |
"eval_steps": 50,
|
| 6 |
+
"global_step": 600,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 488 |
"eval_samples_per_second": 285.113,
|
| 489 |
"eval_steps_per_second": 4.559,
|
| 490 |
"step": 550
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"epoch": 43.07692307692308,
|
| 494 |
+
"grad_norm": 0.4140625,
|
| 495 |
+
"learning_rate": 2.420361737256438e-06,
|
| 496 |
+
"loss": 9.1784,
|
| 497 |
+
"step": 560
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"epoch": 43.84615384615385,
|
| 501 |
+
"grad_norm": 0.41796875,
|
| 502 |
+
"learning_rate": 1.3638696597277679e-06,
|
| 503 |
+
"loss": 9.1777,
|
| 504 |
+
"step": 570
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"epoch": 44.61538461538461,
|
| 508 |
+
"grad_norm": 0.419921875,
|
| 509 |
+
"learning_rate": 6.069322682050516e-07,
|
| 510 |
+
"loss": 9.1766,
|
| 511 |
+
"step": 580
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"epoch": 45.38461538461539,
|
| 515 |
+
"grad_norm": 0.412109375,
|
| 516 |
+
"learning_rate": 1.518483566683826e-07,
|
| 517 |
+
"loss": 9.1785,
|
| 518 |
+
"step": 590
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"epoch": 46.15384615384615,
|
| 522 |
+
"grad_norm": 0.419921875,
|
| 523 |
+
"learning_rate": 0.0,
|
| 524 |
+
"loss": 9.1762,
|
| 525 |
+
"step": 600
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"epoch": 46.15384615384615,
|
| 529 |
+
"eval_loss": 9.194318771362305,
|
| 530 |
+
"eval_runtime": 5.2604,
|
| 531 |
+
"eval_samples_per_second": 285.34,
|
| 532 |
+
"eval_steps_per_second": 4.562,
|
| 533 |
+
"step": 600
|
| 534 |
}
|
| 535 |
],
|
| 536 |
"logging_steps": 10,
|
|
|
|
| 545 |
"should_evaluate": false,
|
| 546 |
"should_log": false,
|
| 547 |
"should_save": true,
|
| 548 |
+
"should_training_stop": true
|
| 549 |
},
|
| 550 |
"attributes": {}
|
| 551 |
}
|
| 552 |
},
|
| 553 |
+
"total_flos": 245495129702400.0,
|
| 554 |
"train_batch_size": 32,
|
| 555 |
"trial_name": null,
|
| 556 |
"trial_params": null
|