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 400, 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:02e5d1b25f242c4059e38af761fe20109094cf4ff071e1b42eae5fe27d3898d9
|
| 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:7d3a2fe70770abb05b9a17211f4d92b1c5c9b9326c74929f9fd7a6b607ab5e01
|
| 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:8de433ccc2eb550cd1203215b586d51ab7806aea1bd10df48f783bc82071b584
|
| 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:2af68b5e1729c4169c5bcdf83d662c94d2aac05a4d0e5f5a1fd64f69c1c27280
|
| 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:0e4c78e85c4ba926d25150d4aaddeaf5728dcb066f4afc01202e3e56f29a5487
|
| 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,
|
|
@@ -316,6 +316,49 @@
|
|
| 316 |
"eval_samples_per_second": 285.129,
|
| 317 |
"eval_steps_per_second": 4.559,
|
| 318 |
"step": 350
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 319 |
}
|
| 320 |
],
|
| 321 |
"logging_steps": 10,
|
|
@@ -335,7 +378,7 @@
|
|
| 335 |
"attributes": {}
|
| 336 |
}
|
| 337 |
},
|
| 338 |
-
"total_flos":
|
| 339 |
"train_batch_size": 32,
|
| 340 |
"trial_name": null,
|
| 341 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 30.76923076923077,
|
| 5 |
"eval_steps": 50,
|
| 6 |
+
"global_step": 400,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 316 |
"eval_samples_per_second": 285.129,
|
| 317 |
"eval_steps_per_second": 4.559,
|
| 318 |
"step": 350
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"epoch": 27.692307692307693,
|
| 322 |
+
"grad_norm": 0.416015625,
|
| 323 |
+
"learning_rate": 7.54514512859201e-05,
|
| 324 |
+
"loss": 9.186,
|
| 325 |
+
"step": 360
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"epoch": 28.46153846153846,
|
| 329 |
+
"grad_norm": 0.412109375,
|
| 330 |
+
"learning_rate": 7.014851889983057e-05,
|
| 331 |
+
"loss": 9.182,
|
| 332 |
+
"step": 370
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"epoch": 29.23076923076923,
|
| 336 |
+
"grad_norm": 0.416015625,
|
| 337 |
+
"learning_rate": 6.493624448072457e-05,
|
| 338 |
+
"loss": 9.1823,
|
| 339 |
+
"step": 380
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"epoch": 30.0,
|
| 343 |
+
"grad_norm": 0.4140625,
|
| 344 |
+
"learning_rate": 5.983045753470308e-05,
|
| 345 |
+
"loss": 9.1806,
|
| 346 |
+
"step": 390
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"epoch": 30.76923076923077,
|
| 350 |
+
"grad_norm": 0.419921875,
|
| 351 |
+
"learning_rate": 5.484666416891109e-05,
|
| 352 |
+
"loss": 9.18,
|
| 353 |
+
"step": 400
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"epoch": 30.76923076923077,
|
| 357 |
+
"eval_loss": 9.195965766906738,
|
| 358 |
+
"eval_runtime": 5.2708,
|
| 359 |
+
"eval_samples_per_second": 284.775,
|
| 360 |
+
"eval_steps_per_second": 4.553,
|
| 361 |
+
"step": 400
|
| 362 |
}
|
| 363 |
],
|
| 364 |
"logging_steps": 10,
|
|
|
|
| 378 |
"attributes": {}
|
| 379 |
}
|
| 380 |
},
|
| 381 |
+
"total_flos": 163663419801600.0,
|
| 382 |
"train_batch_size": 32,
|
| 383 |
"trial_name": null,
|
| 384 |
"trial_params": null
|