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 440, 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:43c1d813f5aa26feeb60e8865dfa61c223ae0848d343e955f01c29bd4c4eaa8c
|
| 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:e96f716c753b6ebfd0ee340c67bc8ce9f9cc8009288f86bb3e1839939a6c8370
|
| 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:dfba244eb594b94dbaee2a8133c34e6d4fb3321c919b0d4c36bbf3c64495c646
|
| 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:b5de4c69e76e1426849123e6be19b27395b0e7a791b5cc054f922bb9ef7b0bc5
|
| 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:9d3a8d3a9de9d4e767952b9eebe7c2390356d0c8586b110844c79e24bc9bdec0
|
| 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": 40,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -389,6 +389,28 @@
|
|
| 389 |
"learning_rate": 4.530518418775733e-05,
|
| 390 |
"loss": 9.1782,
|
| 391 |
"step": 420
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 392 |
}
|
| 393 |
],
|
| 394 |
"logging_steps": 10,
|
|
@@ -408,7 +430,7 @@
|
|
| 408 |
"attributes": {}
|
| 409 |
}
|
| 410 |
},
|
| 411 |
-
"total_flos":
|
| 412 |
"train_batch_size": 32,
|
| 413 |
"trial_name": null,
|
| 414 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 33.84615384615385,
|
| 5 |
"eval_steps": 40,
|
| 6 |
+
"global_step": 440,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 389 |
"learning_rate": 4.530518418775733e-05,
|
| 390 |
"loss": 9.1782,
|
| 391 |
"step": 420
|
| 392 |
+
},
|
| 393 |
+
{
|
| 394 |
+
"epoch": 33.07692307692308,
|
| 395 |
+
"grad_norm": 0.41796875,
|
| 396 |
+
"learning_rate": 4.077647473350201e-05,
|
| 397 |
+
"loss": 9.1776,
|
| 398 |
+
"step": 430
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"epoch": 33.84615384615385,
|
| 402 |
+
"grad_norm": 0.416015625,
|
| 403 |
+
"learning_rate": 3.642762517900322e-05,
|
| 404 |
+
"loss": 9.1787,
|
| 405 |
+
"step": 440
|
| 406 |
+
},
|
| 407 |
+
{
|
| 408 |
+
"epoch": 33.84615384615385,
|
| 409 |
+
"eval_loss": 9.194502830505371,
|
| 410 |
+
"eval_runtime": 5.2758,
|
| 411 |
+
"eval_samples_per_second": 284.509,
|
| 412 |
+
"eval_steps_per_second": 4.549,
|
| 413 |
+
"step": 440
|
| 414 |
}
|
| 415 |
],
|
| 416 |
"logging_steps": 10,
|
|
|
|
| 430 |
"attributes": {}
|
| 431 |
}
|
| 432 |
},
|
| 433 |
+
"total_flos": 180029761781760.0,
|
| 434 |
"train_batch_size": 32,
|
| 435 |
"trial_name": null,
|
| 436 |
"trial_params": null
|