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)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SystemAdmin123/opt-125m") model = AutoModelForCausalLM.from_pretrained("SystemAdmin123/opt-125m", 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/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 80, 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 250490408
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:93dd86ff9c49f760a44ffb114f71868da216852fceb842d16f972a0466408fef
|
| 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:c1a01640571f9afbe7ca0e574211f839e88c711a2bbef5f651160659d39e5b8e
|
| 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 14512
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f762cf91540bcf7946b28532c1cf75c965f79b51d1fb88cba12058ec09b36cc8
|
| 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:6fb084d5318e7452dd167fa6706b2ed07ba51a72e3318c2203b535306ebccc99
|
| 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:5258a10d326b43bb322f9f7412c08a5d462c4dd53d2018b15d95caea3824d34f
|
| 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,
|
|
@@ -65,6 +65,28 @@
|
|
| 65 |
"learning_rate": 0.00019863613034027224,
|
| 66 |
"loss": 4.7735,
|
| 67 |
"step": 60
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
}
|
| 69 |
],
|
| 70 |
"logging_steps": 10,
|
|
@@ -84,7 +106,7 @@
|
|
| 84 |
"attributes": {}
|
| 85 |
}
|
| 86 |
},
|
| 87 |
-
"total_flos":
|
| 88 |
"train_batch_size": 32,
|
| 89 |
"trial_name": null,
|
| 90 |
"trial_params": null
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 6.666666666666667,
|
| 5 |
"eval_steps": 40,
|
| 6 |
+
"global_step": 80,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 65 |
"learning_rate": 0.00019863613034027224,
|
| 66 |
"loss": 4.7735,
|
| 67 |
"step": 60
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"epoch": 5.833333333333333,
|
| 71 |
+
"grad_norm": 4.59375,
|
| 72 |
+
"learning_rate": 0.00019757963826274357,
|
| 73 |
+
"loss": 4.6862,
|
| 74 |
+
"step": 70
|
| 75 |
+
},
|
| 76 |
+
{
|
| 77 |
+
"epoch": 6.666666666666667,
|
| 78 |
+
"grad_norm": 4.3125,
|
| 79 |
+
"learning_rate": 0.00019622680003092503,
|
| 80 |
+
"loss": 4.4865,
|
| 81 |
+
"step": 80
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"epoch": 6.666666666666667,
|
| 85 |
+
"eval_loss": 3.095829725265503,
|
| 86 |
+
"eval_runtime": 10.2886,
|
| 87 |
+
"eval_samples_per_second": 145.89,
|
| 88 |
+
"eval_steps_per_second": 2.333,
|
| 89 |
+
"step": 80
|
| 90 |
}
|
| 91 |
],
|
| 92 |
"logging_steps": 10,
|
|
|
|
| 106 |
"attributes": {}
|
| 107 |
}
|
| 108 |
},
|
| 109 |
+
"total_flos": 5198666264477696.0,
|
| 110 |
"train_batch_size": 32,
|
| 111 |
"trial_name": null,
|
| 112 |
"trial_params": null
|