Text Generation
Transformers
Safetensors
opt
axolotl
Generated from Trainer
conversational
text-generation-inference
Instructions to use SystemAdmin123/opt-125m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SystemAdmin123/opt-125m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="SystemAdmin123/opt-125m") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/opt-125m") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/opt-125m") 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/opt-125m with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SystemAdmin123/opt-125m" # 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/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/SystemAdmin123/opt-125m
- SGLang
How to use SystemAdmin123/opt-125m 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/opt-125m" \ --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/opt-125m", "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/opt-125m" \ --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/opt-125m", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use SystemAdmin123/opt-125m with Docker Model Runner:
docker model run hf.co/SystemAdmin123/opt-125m
Training in progress, step 100, 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 +26 -4
last-checkpoint/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 250490408
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:04c2e4755acfcc66aa21c36f660bab6e9c0522884c8dfc3e01bf29fb889dd2b2
|
| 3 |
size 250490408
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 255265850
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf855f526c2baeae61a5407f698fc194d44acb4c56958d91435bf8e3ec014180
|
| 3 |
size 255265850
|
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:9d8ec3545b76ac71f41d21727701a3d87f460097098e8138aa16b13c3dd2fc3e
|
| 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:96cd719805ad13610164e69f3ed856b75110c72d1c0d2a84ad11ade297409c85
|
| 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:65e9460bf57e8621d5c8825f686824afc4baeffe3beb03ad34e254f7b85bccd7
|
| 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:e1c7bd565c921255ceb6b55c4940901b726a42c50280268071e867e96f607b89
|
| 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:3a60c7d771c1fd156acee762fba03c724cb41829a3f71df370ecd1d20b134982
|
| 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,
|
|
@@ -103,6 +103,28 @@
|
|
| 103 |
"eval_samples_per_second": 277.061,
|
| 104 |
"eval_steps_per_second": 2.215,
|
| 105 |
"step": 80
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
}
|
| 107 |
],
|
| 108 |
"logging_steps": 10,
|
|
@@ -117,12 +139,12 @@
|
|
| 117 |
"should_evaluate": false,
|
| 118 |
"should_log": false,
|
| 119 |
"should_save": true,
|
| 120 |
-
"should_training_stop":
|
| 121 |
},
|
| 122 |
"attributes": {}
|
| 123 |
}
|
| 124 |
},
|
| 125 |
-
"total_flos": 1.
|
| 126 |
"train_batch_size": 32,
|
| 127 |
"trial_name": null,
|
| 128 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 16.666666666666668,
|
| 5 |
"eval_steps": 20,
|
| 6 |
+
"global_step": 100,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 103 |
"eval_samples_per_second": 277.061,
|
| 104 |
"eval_steps_per_second": 2.215,
|
| 105 |
"step": 80
|
| 106 |
+
},
|
| 107 |
+
{
|
| 108 |
+
"epoch": 15.0,
|
| 109 |
+
"grad_norm": 3.046875,
|
| 110 |
+
"learning_rate": 5.418275829936537e-06,
|
| 111 |
+
"loss": 4.4608,
|
| 112 |
+
"step": 90
|
| 113 |
+
},
|
| 114 |
+
{
|
| 115 |
+
"epoch": 16.666666666666668,
|
| 116 |
+
"grad_norm": 1.7734375,
|
| 117 |
+
"learning_rate": 0.0,
|
| 118 |
+
"loss": 4.4609,
|
| 119 |
+
"step": 100
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"epoch": 16.666666666666668,
|
| 123 |
+
"eval_loss": 3.212986707687378,
|
| 124 |
+
"eval_runtime": 5.3548,
|
| 125 |
+
"eval_samples_per_second": 280.31,
|
| 126 |
+
"eval_steps_per_second": 2.241,
|
| 127 |
+
"step": 100
|
| 128 |
}
|
| 129 |
],
|
| 130 |
"logging_steps": 10,
|
|
|
|
| 139 |
"should_evaluate": false,
|
| 140 |
"should_log": false,
|
| 141 |
"should_save": true,
|
| 142 |
+
"should_training_stop": true
|
| 143 |
},
|
| 144 |
"attributes": {}
|
| 145 |
}
|
| 146 |
},
|
| 147 |
+
"total_flos": 1.2971582112661504e+16,
|
| 148 |
"train_batch_size": 32,
|
| 149 |
"trial_name": null,
|
| 150 |
"trial_params": null
|