Instructions to use DLCS/contract-clause-phi3-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use DLCS/contract-clause-phi3-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/Phi-3-mini-4k-instruct") model = PeftModel.from_pretrained(base_model, "DLCS/contract-clause-phi3-lora") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 250, 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 50366280
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f7d277987adf7ca0941bae8de058bc019f3ce85173c12db70caecefcc182971
|
| 3 |
size 50366280
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 51423589
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ecf2b940b90db4471e0450023e2a64305efaf02e46db8dd897ea1745e7589aa
|
| 3 |
size 51423589
|
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:9a293f1a3b4a23a3cb57acac90399b9b6fc68748c4b2c9e6a04eed0b85f1e3ba
|
| 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:895aed6196643d36ef6cbddb8f6ec7dfed3dfb1782bccd838262ea1bd4f43d03
|
| 3 |
size 1465
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
| 2 |
"best_global_step": 225,
|
| 3 |
"best_metric": 0.3082694709300995,
|
| 4 |
"best_model_checkpoint": "./outputs/phi3-clause-lora/checkpoint-225",
|
| 5 |
-
"epoch": 1.
|
| 6 |
"eval_steps": 25,
|
| 7 |
-
"global_step":
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
@@ -197,6 +197,27 @@
|
|
| 197 |
"eval_samples_per_second": 6.599,
|
| 198 |
"eval_steps_per_second": 0.825,
|
| 199 |
"step": 225
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 200 |
}
|
| 201 |
],
|
| 202 |
"logging_steps": 25,
|
|
@@ -216,7 +237,7 @@
|
|
| 216 |
"attributes": {}
|
| 217 |
}
|
| 218 |
},
|
| 219 |
-
"total_flos": 1.
|
| 220 |
"train_batch_size": 2,
|
| 221 |
"trial_name": null,
|
| 222 |
"trial_params": null
|
|
|
|
| 2 |
"best_global_step": 225,
|
| 3 |
"best_metric": 0.3082694709300995,
|
| 4 |
"best_model_checkpoint": "./outputs/phi3-clause-lora/checkpoint-225",
|
| 5 |
+
"epoch": 1.3313293253173013,
|
| 6 |
"eval_steps": 25,
|
| 7 |
+
"global_step": 250,
|
| 8 |
"is_hyper_param_search": false,
|
| 9 |
"is_local_process_zero": true,
|
| 10 |
"is_world_process_zero": true,
|
|
|
|
| 197 |
"eval_samples_per_second": 6.599,
|
| 198 |
"eval_steps_per_second": 0.825,
|
| 199 |
"step": 225
|
| 200 |
+
},
|
| 201 |
+
{
|
| 202 |
+
"entropy": 0.08755811513226945,
|
| 203 |
+
"epoch": 1.3313293253173013,
|
| 204 |
+
"grad_norm": 0.76953125,
|
| 205 |
+
"learning_rate": 5.40267260547896e-05,
|
| 206 |
+
"loss": 0.07890403747558594,
|
| 207 |
+
"mean_token_accuracy": 0.9718732798099518,
|
| 208 |
+
"num_tokens": 532346.0,
|
| 209 |
+
"step": 250
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"epoch": 1.3313293253173013,
|
| 213 |
+
"eval_entropy": 0.2591260080442811,
|
| 214 |
+
"eval_loss": 0.3835108280181885,
|
| 215 |
+
"eval_mean_token_accuracy": 0.8907573750126834,
|
| 216 |
+
"eval_num_tokens": 532346.0,
|
| 217 |
+
"eval_runtime": 428.291,
|
| 218 |
+
"eval_samples_per_second": 6.612,
|
| 219 |
+
"eval_steps_per_second": 0.827,
|
| 220 |
+
"step": 250
|
| 221 |
}
|
| 222 |
],
|
| 223 |
"logging_steps": 25,
|
|
|
|
| 237 |
"attributes": {}
|
| 238 |
}
|
| 239 |
},
|
| 240 |
+
"total_flos": 1.5338604885700608e+16,
|
| 241 |
"train_batch_size": 2,
|
| 242 |
"trial_name": null,
|
| 243 |
"trial_params": null
|