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 150, 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:a53818166c997a5f044919047269de5637df30c7f3e35e43de5a49620a745bac
|
| 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:28dd6e6307fa015e692b6b556932fde5666659c25197be0bf989d11c190341f1
|
| 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:6371144a111a3072f591f746239d824c555a871e29310d8421824db33cb69d80
|
| 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:2bc12850c9ff9801525024d9966df4799da11201038cba4971a720ddadfcd7ec
|
| 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:bb0e11d33e42a9adcc5c976e37e059307e91eb6ae74c969ff1b3eb2f755782d6
|
| 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,
|
|
@@ -101,6 +101,49 @@
|
|
| 101 |
"eval_samples_per_second": 284.164,
|
| 102 |
"eval_steps_per_second": 4.544,
|
| 103 |
"step": 100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
}
|
| 105 |
],
|
| 106 |
"logging_steps": 10,
|
|
@@ -120,7 +163,7 @@
|
|
| 120 |
"attributes": {}
|
| 121 |
}
|
| 122 |
},
|
| 123 |
-
"total_flos":
|
| 124 |
"train_batch_size": 32,
|
| 125 |
"trial_name": null,
|
| 126 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 11.538461538461538,
|
| 5 |
"eval_steps": 50,
|
| 6 |
+
"global_step": 150,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 101 |
"eval_samples_per_second": 284.164,
|
| 102 |
"eval_steps_per_second": 4.544,
|
| 103 |
"step": 100
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"epoch": 8.461538461538462,
|
| 107 |
+
"grad_norm": 0.345703125,
|
| 108 |
+
"learning_rate": 0.00019043571606975777,
|
| 109 |
+
"loss": 9.942,
|
| 110 |
+
"step": 110
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"epoch": 9.23076923076923,
|
| 114 |
+
"grad_norm": 0.34765625,
|
| 115 |
+
"learning_rate": 0.0001879473751206489,
|
| 116 |
+
"loss": 9.8887,
|
| 117 |
+
"step": 120
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"epoch": 10.0,
|
| 121 |
+
"grad_norm": 0.349609375,
|
| 122 |
+
"learning_rate": 0.00018519194088383273,
|
| 123 |
+
"loss": 9.836,
|
| 124 |
+
"step": 130
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"epoch": 10.76923076923077,
|
| 128 |
+
"grad_norm": 0.357421875,
|
| 129 |
+
"learning_rate": 0.0001821777815225245,
|
| 130 |
+
"loss": 9.7845,
|
| 131 |
+
"step": 140
|
| 132 |
+
},
|
| 133 |
+
{
|
| 134 |
+
"epoch": 11.538461538461538,
|
| 135 |
+
"grad_norm": 0.361328125,
|
| 136 |
+
"learning_rate": 0.00017891405093963938,
|
| 137 |
+
"loss": 9.7359,
|
| 138 |
+
"step": 150
|
| 139 |
+
},
|
| 140 |
+
{
|
| 141 |
+
"epoch": 11.538461538461538,
|
| 142 |
+
"eval_loss": 9.719038963317871,
|
| 143 |
+
"eval_runtime": 5.2736,
|
| 144 |
+
"eval_samples_per_second": 284.626,
|
| 145 |
+
"eval_steps_per_second": 4.551,
|
| 146 |
+
"step": 150
|
| 147 |
}
|
| 148 |
],
|
| 149 |
"logging_steps": 10,
|
|
|
|
| 163 |
"attributes": {}
|
| 164 |
}
|
| 165 |
},
|
| 166 |
+
"total_flos": 61373782425600.0,
|
| 167 |
"train_batch_size": 32,
|
| 168 |
"trial_name": null,
|
| 169 |
"trial_params": null
|