Instructions to use YousefBarakat/Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use YousefBarakat/Model with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct") model = PeftModel.from_pretrained(base_model, "YousefBarakat/Model") - Transformers
How to use YousefBarakat/Model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="YousefBarakat/Model") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("YousefBarakat/Model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use YousefBarakat/Model with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "YousefBarakat/Model" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "YousefBarakat/Model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/YousefBarakat/Model
- SGLang
How to use YousefBarakat/Model 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 "YousefBarakat/Model" \ --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": "YousefBarakat/Model", "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 "YousefBarakat/Model" \ --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": "YousefBarakat/Model", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use YousefBarakat/Model with Docker Model Runner:
docker model run hf.co/YousefBarakat/Model
Training in progress, step 400, checkpoint
Browse files
last-checkpoint/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 73911112
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:60eadddc9cdc6c3d34399c3aee0728f71486796d5fa497f2b2ec773220eb94d2
|
| 3 |
size 73911112
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 148053627
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:424eec27786b4ccf5c884b553f5900543a0ba5a7d42c33b972de41605732cfa1
|
| 3 |
size 148053627
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14645
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:363c5df1543d2c82b2f13164f35bdd0367ceb32e7fa1b2f67c19df073a08b17b
|
| 3 |
size 14645
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1465
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9aee271141ab610b95fde470ef517f2ca73982be844feca339433f8632bdc1ef
|
| 3 |
size 1465
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
-
"epoch": 0.
|
| 6 |
"eval_steps": 50,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
@@ -180,6 +180,178 @@
|
|
| 180 |
"eval_samples_per_second": 1.171,
|
| 181 |
"eval_steps_per_second": 1.171,
|
| 182 |
"step": 200
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 183 |
}
|
| 184 |
],
|
| 185 |
"logging_steps": 10,
|
|
@@ -199,7 +371,7 @@
|
|
| 199 |
"attributes": {}
|
| 200 |
}
|
| 201 |
},
|
| 202 |
-
"total_flos":
|
| 203 |
"train_batch_size": 1,
|
| 204 |
"trial_name": null,
|
| 205 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": null,
|
| 3 |
"best_metric": null,
|
| 4 |
"best_model_checkpoint": null,
|
| 5 |
+
"epoch": 0.9768009768009768,
|
| 6 |
"eval_steps": 50,
|
| 7 |
+
"global_step": 400,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 180 |
"eval_samples_per_second": 1.171,
|
| 181 |
"eval_steps_per_second": 1.171,
|
| 182 |
"step": 200
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"epoch": 0.5128205128205128,
|
| 186 |
+
"grad_norm": 0.8788589239120483,
|
| 187 |
+
"learning_rate": 5.700080724843147e-05,
|
| 188 |
+
"loss": 0.5496622562408447,
|
| 189 |
+
"step": 210
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"epoch": 0.5372405372405372,
|
| 193 |
+
"grad_norm": 1.0257195234298706,
|
| 194 |
+
"learning_rate": 5.2765573307992036e-05,
|
| 195 |
+
"loss": 0.7461658000946045,
|
| 196 |
+
"step": 220
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"epoch": 0.5616605616605617,
|
| 200 |
+
"grad_norm": 1.6746125221252441,
|
| 201 |
+
"learning_rate": 4.851030526738321e-05,
|
| 202 |
+
"loss": 0.5698539733886718,
|
| 203 |
+
"step": 230
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"epoch": 0.5860805860805861,
|
| 207 |
+
"grad_norm": 0.8949107527732849,
|
| 208 |
+
"learning_rate": 4.4265828730079987e-05,
|
| 209 |
+
"loss": 0.5721668243408203,
|
| 210 |
+
"step": 240
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"epoch": 0.6105006105006106,
|
| 214 |
+
"grad_norm": 2.384493350982666,
|
| 215 |
+
"learning_rate": 4.0062891124787e-05,
|
| 216 |
+
"loss": 0.7134846687316895,
|
| 217 |
+
"step": 250
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"epoch": 0.6105006105006106,
|
| 221 |
+
"eval_loss": 0.36719319224357605,
|
| 222 |
+
"eval_runtime": 155.0828,
|
| 223 |
+
"eval_samples_per_second": 1.174,
|
| 224 |
+
"eval_steps_per_second": 1.174,
|
| 225 |
+
"step": 250
|
| 226 |
+
},
|
| 227 |
+
{
|
| 228 |
+
"epoch": 0.6349206349206349,
|
| 229 |
+
"grad_norm": 1.2632209062576294,
|
| 230 |
+
"learning_rate": 3.5931938967872766e-05,
|
| 231 |
+
"loss": 0.7118762969970703,
|
| 232 |
+
"step": 260
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"epoch": 0.6593406593406593,
|
| 236 |
+
"grad_norm": 1.3680095672607422,
|
| 237 |
+
"learning_rate": 3.1902897305644095e-05,
|
| 238 |
+
"loss": 0.8658300399780273,
|
| 239 |
+
"step": 270
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"epoch": 0.6837606837606838,
|
| 243 |
+
"grad_norm": 1.2788431644439697,
|
| 244 |
+
"learning_rate": 2.8004952934203838e-05,
|
| 245 |
+
"loss": 0.7101179122924804,
|
| 246 |
+
"step": 280
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"epoch": 0.7081807081807082,
|
| 250 |
+
"grad_norm": 1.044674277305603,
|
| 251 |
+
"learning_rate": 2.4266342967269552e-05,
|
| 252 |
+
"loss": 0.5662980079650879,
|
| 253 |
+
"step": 290
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"epoch": 0.7326007326007326,
|
| 257 |
+
"grad_norm": 1.589475154876709,
|
| 258 |
+
"learning_rate": 2.071415028359026e-05,
|
| 259 |
+
"loss": 0.5755983352661133,
|
| 260 |
+
"step": 300
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"epoch": 0.7326007326007326,
|
| 264 |
+
"eval_loss": 0.355652779340744,
|
| 265 |
+
"eval_runtime": 155.57,
|
| 266 |
+
"eval_samples_per_second": 1.17,
|
| 267 |
+
"eval_steps_per_second": 1.17,
|
| 268 |
+
"step": 300
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"epoch": 0.757020757020757,
|
| 272 |
+
"grad_norm": 1.370431900024414,
|
| 273 |
+
"learning_rate": 1.7374107335760936e-05,
|
| 274 |
+
"loss": 0.539859390258789,
|
| 275 |
+
"step": 310
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 0.7814407814407814,
|
| 279 |
+
"grad_norm": 0.995492160320282,
|
| 280 |
+
"learning_rate": 1.427040974166427e-05,
|
| 281 |
+
"loss": 0.2917079210281372,
|
| 282 |
+
"step": 320
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"epoch": 0.8058608058608059,
|
| 286 |
+
"grad_norm": 1.1896394491195679,
|
| 287 |
+
"learning_rate": 1.1425541008902851e-05,
|
| 288 |
+
"loss": 0.7617981433868408,
|
| 289 |
+
"step": 330
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"epoch": 0.8302808302808303,
|
| 293 |
+
"grad_norm": 2.3315072059631348,
|
| 294 |
+
"learning_rate": 8.860109661935674e-06,
|
| 295 |
+
"loss": 0.6248091697692871,
|
| 296 |
+
"step": 340
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 0.8547008547008547,
|
| 300 |
+
"grad_norm": 0.6425564885139465,
|
| 301 |
+
"learning_rate": 6.592699951787362e-06,
|
| 302 |
+
"loss": 0.4457353115081787,
|
| 303 |
+
"step": 350
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"epoch": 0.8547008547008547,
|
| 307 |
+
"eval_loss": 0.35156095027923584,
|
| 308 |
+
"eval_runtime": 155.323,
|
| 309 |
+
"eval_samples_per_second": 1.172,
|
| 310 |
+
"eval_steps_per_second": 1.172,
|
| 311 |
+
"step": 350
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"epoch": 0.8791208791208791,
|
| 315 |
+
"grad_norm": 1.164421796798706,
|
| 316 |
+
"learning_rate": 4.639737229804403e-06,
|
| 317 |
+
"loss": 0.36368584632873535,
|
| 318 |
+
"step": 360
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"epoch": 0.9035409035409036,
|
| 322 |
+
"grad_norm": 1.071614146232605,
|
| 323 |
+
"learning_rate": 3.0153689607045845e-06,
|
| 324 |
+
"loss": 0.5256676197052002,
|
| 325 |
+
"step": 370
|
| 326 |
+
},
|
| 327 |
+
{
|
| 328 |
+
"epoch": 0.927960927960928,
|
| 329 |
+
"grad_norm": 0.6991368532180786,
|
| 330 |
+
"learning_rate": 1.7313622368738014e-06,
|
| 331 |
+
"loss": 0.5124877452850342,
|
| 332 |
+
"step": 380
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"epoch": 0.9523809523809523,
|
| 336 |
+
"grad_norm": 1.053227186203003,
|
| 337 |
+
"learning_rate": 7.970185363271431e-07,
|
| 338 |
+
"loss": 0.444692325592041,
|
| 339 |
+
"step": 390
|
| 340 |
+
},
|
| 341 |
+
{
|
| 342 |
+
"epoch": 0.9768009768009768,
|
| 343 |
+
"grad_norm": 1.5848822593688965,
|
| 344 |
+
"learning_rate": 2.1910634183644474e-07,
|
| 345 |
+
"loss": 0.5859388828277587,
|
| 346 |
+
"step": 400
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"epoch": 0.9768009768009768,
|
| 350 |
+
"eval_loss": 0.3502028286457062,
|
| 351 |
+
"eval_runtime": 155.3968,
|
| 352 |
+
"eval_samples_per_second": 1.171,
|
| 353 |
+
"eval_steps_per_second": 1.171,
|
| 354 |
+
"step": 400
|
| 355 |
}
|
| 356 |
],
|
| 357 |
"logging_steps": 10,
|
|
|
|
| 371 |
"attributes": {}
|
| 372 |
}
|
| 373 |
},
|
| 374 |
+
"total_flos": 6159172374405120.0,
|
| 375 |
"train_batch_size": 1,
|
| 376 |
"trial_name": null,
|
| 377 |
"trial_params": null
|