Text Generation
Transformers
Safetensors
phi3
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/tiny-random-Phi3ForCausalLM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/tiny-random-Phi3ForCausalLM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/tiny-random-Phi3ForCausalLM") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/tiny-random-Phi3ForCausalLM") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/tiny-random-Phi3ForCausalLM") 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
- vLLM
How to use SystemAdmin123/tiny-random-Phi3ForCausalLM with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/tiny-random-Phi3ForCausalLM" # 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-Phi3ForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/tiny-random-Phi3ForCausalLM
- SGLang
How to use SystemAdmin123/tiny-random-Phi3ForCausalLM 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-Phi3ForCausalLM" \ --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-Phi3ForCausalLM", "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-Phi3ForCausalLM" \ --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-Phi3ForCausalLM", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/tiny-random-Phi3ForCausalLM with Docker Model Runner:
docker model run hf.co/SystemAdmin123/tiny-random-Phi3ForCausalLM
Training in progress, step 80, checkpoint
Browse files- last-checkpoint/model.safetensors +1 -1
- last-checkpoint/optimizer.pt +1 -1
- last-checkpoint/rng_state_0.pth +1 -1
- last-checkpoint/rng_state_1.pth +1 -1
- last-checkpoint/rng_state_2.pth +1 -1
- last-checkpoint/rng_state_3.pth +1 -1
- last-checkpoint/scheduler.pt +1 -1
- last-checkpoint/trainer_state.json +25 -3
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4140280
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6e10bf400529e94f432815385ce44f8e973a32eec3c9be3ec7acb4befb5dddb
|
| 3 |
size 4140280
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4291766
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d025fb3332edbb7be7f811c4700970dac0a63ff9085905c32fab3d64583bd4c1
|
| 3 |
size 4291766
|
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 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d808c6b7b18375173160ea5614f4474ba68bfdb4e4128fb96aa9c3edc2450cb
|
| 3 |
size 15024
|
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 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:df89f21b55b2d65718ed1d2cdeadc1ff16958bc5f6ac66f1e557ef70c9dfe8e2
|
| 3 |
size 15024
|
last-checkpoint/rng_state_2.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de0d61bbd2d2279b9ea09ac3613573a205fb5f5a279324183ce6c23ca8fbac77
|
| 3 |
size 15024
|
last-checkpoint/rng_state_3.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 15024
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aec03eba7d44b82e794b52483557f97fad5167bb70a3cf0811cfd3a0a2764f32
|
| 3 |
size 15024
|
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:c420644371984c0c279fff13e73e1c3067315dc564ce90ee02e2ca237d8a9e35
|
| 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": 20,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -81,6 +81,28 @@
|
|
| 81 |
"eval_samples_per_second": 646.34,
|
| 82 |
"eval_steps_per_second": 5.167,
|
| 83 |
"step": 60
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
}
|
| 85 |
],
|
| 86 |
"logging_steps": 10,
|
|
@@ -100,7 +122,7 @@
|
|
| 100 |
"attributes": {}
|
| 101 |
}
|
| 102 |
},
|
| 103 |
-
"total_flos":
|
| 104 |
"train_batch_size": 32,
|
| 105 |
"trial_name": null,
|
| 106 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 13.333333333333334,
|
| 5 |
"eval_steps": 20,
|
| 6 |
+
"global_step": 80,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 81 |
"eval_samples_per_second": 646.34,
|
| 82 |
"eval_steps_per_second": 5.167,
|
| 83 |
"step": 60
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"epoch": 11.666666666666666,
|
| 87 |
+
"grad_norm": 0.4609375,
|
| 88 |
+
"learning_rate": 4.530518418775733e-05,
|
| 89 |
+
"loss": 9.9373,
|
| 90 |
+
"step": 70
|
| 91 |
+
},
|
| 92 |
+
{
|
| 93 |
+
"epoch": 13.333333333333334,
|
| 94 |
+
"grad_norm": 0.462890625,
|
| 95 |
+
"learning_rate": 2.1085949060360654e-05,
|
| 96 |
+
"loss": 9.9182,
|
| 97 |
+
"step": 80
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"epoch": 13.333333333333334,
|
| 101 |
+
"eval_loss": 9.922646522521973,
|
| 102 |
+
"eval_runtime": 2.3435,
|
| 103 |
+
"eval_samples_per_second": 640.486,
|
| 104 |
+
"eval_steps_per_second": 5.12,
|
| 105 |
+
"step": 80
|
| 106 |
}
|
| 107 |
],
|
| 108 |
"logging_steps": 10,
|
|
|
|
| 122 |
"attributes": {}
|
| 123 |
}
|
| 124 |
},
|
| 125 |
+
"total_flos": 131490423767040.0,
|
| 126 |
"train_batch_size": 32,
|
| 127 |
"trial_name": null,
|
| 128 |
"trial_params": null
|