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, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM") model = AutoModelForMultimodalLM.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:7ce82a4c5826666916dca5fced06b2ed9a31f38b84c0f05a77b63fc8b2faafbe
|
| 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:f12dbd0e046c0dd5b8cf15bd086b00347583042f40900c1fced314071c1fb807
|
| 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:aa20c10368c9b6560fc415cff6934039731a02984b5d43451c95162cb063b4de
|
| 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:92b7afd2237234322bfb3424f202a630e518f7e447f4fb99f19d2471d4ee793c
|
| 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": 40,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -353,6 +353,28 @@
|
|
| 353 |
"learning_rate": 6.493624448072457e-05,
|
| 354 |
"loss": 9.1822,
|
| 355 |
"step": 380
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 356 |
}
|
| 357 |
],
|
| 358 |
"logging_steps": 10,
|
|
@@ -372,7 +394,7 @@
|
|
| 372 |
"attributes": {}
|
| 373 |
}
|
| 374 |
},
|
| 375 |
-
"total_flos":
|
| 376 |
"train_batch_size": 32,
|
| 377 |
"trial_name": null,
|
| 378 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 30.76923076923077,
|
| 5 |
"eval_steps": 40,
|
| 6 |
+
"global_step": 400,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 353 |
"learning_rate": 6.493624448072457e-05,
|
| 354 |
"loss": 9.1822,
|
| 355 |
"step": 380
|
| 356 |
+
},
|
| 357 |
+
{
|
| 358 |
+
"epoch": 30.0,
|
| 359 |
+
"grad_norm": 0.4140625,
|
| 360 |
+
"learning_rate": 5.983045753470308e-05,
|
| 361 |
+
"loss": 9.1806,
|
| 362 |
+
"step": 390
|
| 363 |
+
},
|
| 364 |
+
{
|
| 365 |
+
"epoch": 30.76923076923077,
|
| 366 |
+
"grad_norm": 0.419921875,
|
| 367 |
+
"learning_rate": 5.484666416891109e-05,
|
| 368 |
+
"loss": 9.18,
|
| 369 |
+
"step": 400
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"epoch": 30.76923076923077,
|
| 373 |
+
"eval_loss": 9.19638442993164,
|
| 374 |
+
"eval_runtime": 5.3201,
|
| 375 |
+
"eval_samples_per_second": 282.139,
|
| 376 |
+
"eval_steps_per_second": 4.511,
|
| 377 |
+
"step": 400
|
| 378 |
}
|
| 379 |
],
|
| 380 |
"logging_steps": 10,
|
|
|
|
| 394 |
"attributes": {}
|
| 395 |
}
|
| 396 |
},
|
| 397 |
+
"total_flos": 163663419801600.0,
|
| 398 |
"train_batch_size": 32,
|
| 399 |
"trial_name": null,
|
| 400 |
"trial_params": null
|