Instructions to use Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("Helsinki-NLP/opus-mt-es-en") model = PeftModel.from_pretrained(base_model, "Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h") - Transformers
How to use Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ro551/opus-mt-es-en-GEC-spanish-LORA-cowsl2h", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model trained and pushed to Hugging Face Hub
Browse files- README.md +9 -8
- adapter_config.json +4 -4
- 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 [Helsinki-NLP/opus-mt-es-en](https://huggingface.co/Helsinki-NLP/opus-mt-es-en) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss: 0.
|
| 22 |
-
- Gleu: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -42,21 +42,22 @@ The following hyperparameters were used during training:
|
|
| 42 |
- train_batch_size: 8
|
| 43 |
- eval_batch_size: 8
|
| 44 |
- seed: 42
|
| 45 |
-
- gradient_accumulation_steps:
|
| 46 |
-
- total_train_batch_size:
|
| 47 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 48 |
- lr_scheduler_type: linear
|
| 49 |
- lr_scheduler_warmup_steps: 0.09857017609527079
|
| 50 |
-
- num_epochs:
|
| 51 |
- mixed_precision_training: Native AMP
|
| 52 |
|
| 53 |
### Training results
|
| 54 |
|
| 55 |
| Training Loss | Epoch | Step | Validation Loss | Gleu |
|
| 56 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 57 |
-
|
|
| 58 |
-
|
|
| 59 |
-
|
|
|
|
|
| 60 |
|
| 61 |
|
| 62 |
### Framework versions
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [Helsinki-NLP/opus-mt-es-en](https://huggingface.co/Helsinki-NLP/opus-mt-es-en) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.1340
|
| 22 |
+
- Gleu: 0.4355
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 42 |
- train_batch_size: 8
|
| 43 |
- eval_batch_size: 8
|
| 44 |
- seed: 42
|
| 45 |
+
- gradient_accumulation_steps: 2
|
| 46 |
+
- total_train_batch_size: 16
|
| 47 |
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
| 48 |
- lr_scheduler_type: linear
|
| 49 |
- lr_scheduler_warmup_steps: 0.09857017609527079
|
| 50 |
+
- num_epochs: 4
|
| 51 |
- mixed_precision_training: Native AMP
|
| 52 |
|
| 53 |
### Training results
|
| 54 |
|
| 55 |
| Training Loss | Epoch | Step | Validation Loss | Gleu |
|
| 56 |
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
| 57 |
+
| 0.4962 | 1.0 | 388 | 0.1879 | 0.3553 |
|
| 58 |
+
| 0.3441 | 2.0 | 776 | 0.1530 | 0.3935 |
|
| 59 |
+
| 0.2641 | 3.0 | 1164 | 0.1392 | 0.4264 |
|
| 60 |
+
| 0.2190 | 4.0 | 1552 | 0.1340 | 0.4355 |
|
| 61 |
|
| 62 |
|
| 63 |
### Framework versions
|
adapter_config.json
CHANGED
|
@@ -29,12 +29,12 @@
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
-
"
|
| 33 |
"fc1",
|
|
|
|
| 34 |
"v_proj",
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"fc2"
|
| 38 |
],
|
| 39 |
"target_parameters": null,
|
| 40 |
"task_type": "SEQ_2_SEQ_LM",
|
|
|
|
| 29 |
"rank_pattern": {},
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
+
"q_proj",
|
| 33 |
"fc1",
|
| 34 |
+
"fc2",
|
| 35 |
"v_proj",
|
| 36 |
+
"k_proj",
|
| 37 |
+
"out_proj"
|
|
|
|
| 38 |
],
|
| 39 |
"target_parameters": null,
|
| 40 |
"task_type": "SEQ_2_SEQ_LM",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 17327976
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:15504a67ce276ed5be80757b437c187f4bfb29e47408a024e9f48a093be355a4
|
| 3 |
size 17327976
|
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:2e265df70fbd3b4428715f75a424de20588ff58bd81ecb900f1276c2e52259cc
|
| 3 |
size 5393
|