Instructions to use Ro551/mbart-large-50-GEC-spanish-LORA-cowsl2h with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ro551/mbart-large-50-GEC-spanish-LORA-cowsl2h with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("facebook/mbart-large-50") model = PeftModel.from_pretrained(base_model, "Ro551/mbart-large-50-GEC-spanish-LORA-cowsl2h") - Transformers
How to use Ro551/mbart-large-50-GEC-spanish-LORA-cowsl2h with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ro551/mbart-large-50-GEC-spanish-LORA-cowsl2h", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model trained and pushed to Hugging Face Hub
Browse files- README.md +7 -6
- adapter_config.json +2 -2
- adapter_model.safetensors +1 -1
- training_args.bin +1 -1
README.md
CHANGED
|
@@ -18,8 +18,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [facebook/mbart-large-50](https://huggingface.co/facebook/mbart-large-50) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss: 8.
|
| 22 |
-
- Gleu: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -45,16 +45,17 @@ The following hyperparameters were used during training:
|
|
| 45 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
- lr_scheduler_warmup_steps: 0.08309212265191754
|
| 48 |
-
- num_epochs:
|
| 49 |
- mixed_precision_training: Native AMP
|
| 50 |
|
| 51 |
### Training results
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss | Gleu |
|
| 54 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 55 |
-
| 9.
|
| 56 |
-
| 8.
|
| 57 |
-
| 8.
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
### Framework versions
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [facebook/mbart-large-50](https://huggingface.co/facebook/mbart-large-50) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 8.1436
|
| 22 |
+
- Gleu: 0.3894
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 45 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
- lr_scheduler_warmup_steps: 0.08309212265191754
|
| 48 |
+
- num_epochs: 4
|
| 49 |
- mixed_precision_training: Native AMP
|
| 50 |
|
| 51 |
### Training results
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss | Gleu |
|
| 54 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 55 |
+
| 9.2131 | 1.0 | 388 | 8.1384 | 0.4301 |
|
| 56 |
+
| 8.1633 | 2.0 | 776 | 8.1093 | 0.5478 |
|
| 57 |
+
| 8.1815 | 3.0 | 1164 | 8.1496 | 0.3411 |
|
| 58 |
+
| 8.1746 | 4.0 | 1552 | 8.1436 | 0.3894 |
|
| 59 |
|
| 60 |
|
| 61 |
### Framework versions
|
adapter_config.json
CHANGED
|
@@ -30,10 +30,10 @@
|
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
"fc2",
|
| 33 |
-
"q_proj",
|
| 34 |
-
"out_proj",
|
| 35 |
"v_proj",
|
|
|
|
| 36 |
"k_proj",
|
|
|
|
| 37 |
"fc1"
|
| 38 |
],
|
| 39 |
"target_parameters": null,
|
|
|
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
"fc2",
|
|
|
|
|
|
|
| 33 |
"v_proj",
|
| 34 |
+
"out_proj",
|
| 35 |
"k_proj",
|
| 36 |
+
"q_proj",
|
| 37 |
"fc1"
|
| 38 |
],
|
| 39 |
"target_parameters": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 69259696
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14f876afb10b0432982ba9173a9b213bda19f9c8ec2eeb0698109af8314d07e7
|
| 3 |
size 69259696
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5393
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4bdbdce01ac05bca4e48fce2ef0cbd4d6fdbb557b5cbad292d985b4803ec8ac5
|
| 3 |
size 5393
|