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 200, 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:c36e0e6e72d331231c75519120e36a9242a8bff07537a0f65827a336f1b79a44
|
| 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:99f20a54dee8d027bcc9bbaea42ff161e8cbba806bb3f35869be2a2f744d29fc
|
| 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:7b9a2678740824fb589a72819ef8a2601a1af7909330828a265812e5b5ff9c95
|
| 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:db973c8a6e8032795aca2e0edfd5e46b92aea774c79981d12eef1bcb25c3d7d4
|
| 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:9cd11d413bc67bf01de9a1a006e9e7655be307353028b25f5b3c299e5b6b7a44
|
| 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,
|
|
@@ -144,6 +144,49 @@
|
|
| 144 |
"eval_samples_per_second": 284.626,
|
| 145 |
"eval_steps_per_second": 4.551,
|
| 146 |
"step": 150
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
}
|
| 148 |
],
|
| 149 |
"logging_steps": 10,
|
|
@@ -163,7 +206,7 @@
|
|
| 163 |
"attributes": {}
|
| 164 |
}
|
| 165 |
},
|
| 166 |
-
"total_flos":
|
| 167 |
"train_batch_size": 32,
|
| 168 |
"trial_name": null,
|
| 169 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 15.384615384615385,
|
| 5 |
"eval_steps": 50,
|
| 6 |
+
"global_step": 200,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 144 |
"eval_samples_per_second": 284.626,
|
| 145 |
"eval_steps_per_second": 4.551,
|
| 146 |
"step": 150
|
| 147 |
+
},
|
| 148 |
+
{
|
| 149 |
+
"epoch": 12.307692307692308,
|
| 150 |
+
"grad_norm": 0.369140625,
|
| 151 |
+
"learning_rate": 0.00017541066097768963,
|
| 152 |
+
"loss": 9.688,
|
| 153 |
+
"step": 160
|
| 154 |
+
},
|
| 155 |
+
{
|
| 156 |
+
"epoch": 13.076923076923077,
|
| 157 |
+
"grad_norm": 0.3671875,
|
| 158 |
+
"learning_rate": 0.00017167825131684513,
|
| 159 |
+
"loss": 9.6416,
|
| 160 |
+
"step": 170
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"epoch": 13.846153846153847,
|
| 164 |
+
"grad_norm": 0.375,
|
| 165 |
+
"learning_rate": 0.00016772815716257412,
|
| 166 |
+
"loss": 9.597,
|
| 167 |
+
"step": 180
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"epoch": 14.615384615384615,
|
| 171 |
+
"grad_norm": 0.380859375,
|
| 172 |
+
"learning_rate": 0.00016357237482099684,
|
| 173 |
+
"loss": 9.5534,
|
| 174 |
+
"step": 190
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"epoch": 15.384615384615385,
|
| 178 |
+
"grad_norm": 0.37890625,
|
| 179 |
+
"learning_rate": 0.00015922352526649803,
|
| 180 |
+
"loss": 9.5151,
|
| 181 |
+
"step": 200
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"epoch": 15.384615384615385,
|
| 185 |
+
"eval_loss": 9.504176139831543,
|
| 186 |
+
"eval_runtime": 5.2799,
|
| 187 |
+
"eval_samples_per_second": 284.283,
|
| 188 |
+
"eval_steps_per_second": 4.545,
|
| 189 |
+
"step": 200
|
| 190 |
}
|
| 191 |
],
|
| 192 |
"logging_steps": 10,
|
|
|
|
| 206 |
"attributes": {}
|
| 207 |
}
|
| 208 |
},
|
| 209 |
+
"total_flos": 81831709900800.0,
|
| 210 |
"train_batch_size": 32,
|
| 211 |
"trial_name": null,
|
| 212 |
"trial_params": null
|