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)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-random-LlamaForCausalLM", device_map="auto") 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=256) 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 240, 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:a8055d2764c12216b0e46e9e6bf1bdb2ed21e379d85c4c630698a9f4b56f3abe
|
| 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:002030670da2c6c1d5f6f14b7e7d0cf24108da51304d9ecb3a09892895958096
|
| 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:eac82c9e97acc88aa1fa4930480a8fc2c4136df9608e7f4941250ac47b8c3ac9
|
| 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:10ac16ada9aeee5f77175e25a04261752f50812666958fe6ce8c2d82948a891d
|
| 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:108ec0968af236f6199c1f716a40487225162213cb414b717c6f1aeb82bcbc29
|
| 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,
|
|
@@ -209,6 +209,28 @@
|
|
| 209 |
"learning_rate": 0.00015000000000000001,
|
| 210 |
"loss": 9.4381,
|
| 211 |
"step": 220
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
}
|
| 213 |
],
|
| 214 |
"logging_steps": 10,
|
|
@@ -228,7 +250,7 @@
|
|
| 228 |
"attributes": {}
|
| 229 |
}
|
| 230 |
},
|
| 231 |
-
"total_flos":
|
| 232 |
"train_batch_size": 32,
|
| 233 |
"trial_name": null,
|
| 234 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 18.46153846153846,
|
| 5 |
"eval_steps": 40,
|
| 6 |
+
"global_step": 240,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 209 |
"learning_rate": 0.00015000000000000001,
|
| 210 |
"loss": 9.4381,
|
| 211 |
"step": 220
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"epoch": 17.692307692307693,
|
| 215 |
+
"grad_norm": 0.39453125,
|
| 216 |
+
"learning_rate": 0.00014515333583108896,
|
| 217 |
+
"loss": 9.4021,
|
| 218 |
+
"step": 230
|
| 219 |
+
},
|
| 220 |
+
{
|
| 221 |
+
"epoch": 18.46153846153846,
|
| 222 |
+
"grad_norm": 0.396484375,
|
| 223 |
+
"learning_rate": 0.00014016954246529696,
|
| 224 |
+
"loss": 9.3725,
|
| 225 |
+
"step": 240
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"epoch": 18.46153846153846,
|
| 229 |
+
"eval_loss": 9.3687162399292,
|
| 230 |
+
"eval_runtime": 5.2722,
|
| 231 |
+
"eval_samples_per_second": 284.702,
|
| 232 |
+
"eval_steps_per_second": 4.552,
|
| 233 |
+
"step": 240
|
| 234 |
}
|
| 235 |
],
|
| 236 |
"logging_steps": 10,
|
|
|
|
| 250 |
"attributes": {}
|
| 251 |
}
|
| 252 |
},
|
| 253 |
+
"total_flos": 98198051880960.0,
|
| 254 |
"train_batch_size": 32,
|
| 255 |
"trial_name": null,
|
| 256 |
"trial_params": null
|