Instructions to use Ro551/mt5-small-GEC-spanish-LORA-merged with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Ro551/mt5-small-GEC-spanish-LORA-merged with PEFT:
from peft import PeftModel from transformers import AutoModelForSeq2SeqLM base_model = AutoModelForSeq2SeqLM.from_pretrained("google/mt5-small") model = PeftModel.from_pretrained(base_model, "Ro551/mt5-small-GEC-spanish-LORA-merged") - Transformers
How to use Ro551/mt5-small-GEC-spanish-LORA-merged with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Ro551/mt5-small-GEC-spanish-LORA-merged", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model trained and pushed to Hugging Face Hub
Browse files- .gitattributes +1 -0
- README.md +66 -0
- adapter_config.json +46 -0
- adapter_model.safetensors +3 -0
- tokenizer.json +3 -0
- tokenizer_config.json +115 -0
- training_args.bin +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: peft
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model: google/mt5-small
|
| 5 |
+
tags:
|
| 6 |
+
- base_model:adapter:google/mt5-small
|
| 7 |
+
- lora
|
| 8 |
+
- transformers
|
| 9 |
+
model-index:
|
| 10 |
+
- name: mt5-small-GEC-spanish-LORA-merged
|
| 11 |
+
results: []
|
| 12 |
+
---
|
| 13 |
+
|
| 14 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 15 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 16 |
+
|
| 17 |
+
# mt5-small-GEC-spanish-LORA-merged
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [google/mt5-small](https://huggingface.co/google/mt5-small) on the None dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.1014
|
| 22 |
+
- Gleu: 0.7351
|
| 23 |
+
|
| 24 |
+
## Model description
|
| 25 |
+
|
| 26 |
+
More information needed
|
| 27 |
+
|
| 28 |
+
## Intended uses & limitations
|
| 29 |
+
|
| 30 |
+
More information needed
|
| 31 |
+
|
| 32 |
+
## Training and evaluation data
|
| 33 |
+
|
| 34 |
+
More information needed
|
| 35 |
+
|
| 36 |
+
## Training procedure
|
| 37 |
+
|
| 38 |
+
### Training hyperparameters
|
| 39 |
+
|
| 40 |
+
The following hyperparameters were used during training:
|
| 41 |
+
- learning_rate: 0.001635475313478006
|
| 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.0993688388184371
|
| 50 |
+
- num_epochs: 2
|
| 51 |
+
|
| 52 |
+
### Training results
|
| 53 |
+
|
| 54 |
+
| Training Loss | Epoch | Step | Validation Loss | Gleu |
|
| 55 |
+
|:-------------:|:-----:|:-----:|:---------------:|:------:|
|
| 56 |
+
| 0.2319 | 1.0 | 11213 | 0.1196 | 0.7133 |
|
| 57 |
+
| 0.1766 | 2.0 | 22426 | 0.1014 | 0.7351 |
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
### Framework versions
|
| 61 |
+
|
| 62 |
+
- PEFT 0.18.1
|
| 63 |
+
- Transformers 5.0.0
|
| 64 |
+
- Pytorch 2.7.0+cu126
|
| 65 |
+
- Datasets 4.8.5
|
| 66 |
+
- Tokenizers 0.22.2
|
adapter_config.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"alora_invocation_tokens": null,
|
| 3 |
+
"alpha_pattern": {},
|
| 4 |
+
"arrow_config": null,
|
| 5 |
+
"auto_mapping": null,
|
| 6 |
+
"base_model_name_or_path": "google/mt5-small",
|
| 7 |
+
"bias": "none",
|
| 8 |
+
"corda_config": null,
|
| 9 |
+
"ensure_weight_tying": false,
|
| 10 |
+
"eva_config": null,
|
| 11 |
+
"exclude_modules": null,
|
| 12 |
+
"fan_in_fan_out": false,
|
| 13 |
+
"inference_mode": true,
|
| 14 |
+
"init_lora_weights": true,
|
| 15 |
+
"layer_replication": null,
|
| 16 |
+
"layers_pattern": null,
|
| 17 |
+
"layers_to_transform": null,
|
| 18 |
+
"loftq_config": {},
|
| 19 |
+
"lora_alpha": 16,
|
| 20 |
+
"lora_bias": false,
|
| 21 |
+
"lora_dropout": 0.15,
|
| 22 |
+
"megatron_config": null,
|
| 23 |
+
"megatron_core": "megatron.core",
|
| 24 |
+
"modules_to_save": null,
|
| 25 |
+
"peft_type": "LORA",
|
| 26 |
+
"peft_version": "0.18.1",
|
| 27 |
+
"qalora_group_size": 16,
|
| 28 |
+
"r": 64,
|
| 29 |
+
"rank_pattern": {},
|
| 30 |
+
"revision": null,
|
| 31 |
+
"target_modules": [
|
| 32 |
+
"k",
|
| 33 |
+
"v",
|
| 34 |
+
"wi_1",
|
| 35 |
+
"wo",
|
| 36 |
+
"q",
|
| 37 |
+
"o",
|
| 38 |
+
"wi_0"
|
| 39 |
+
],
|
| 40 |
+
"target_parameters": null,
|
| 41 |
+
"task_type": "SEQ_2_SEQ_LM",
|
| 42 |
+
"trainable_token_indices": null,
|
| 43 |
+
"use_dora": false,
|
| 44 |
+
"use_qalora": false,
|
| 45 |
+
"use_rslora": false
|
| 46 |
+
}
|
adapter_model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63c9c4e3011286912075d835d85c2bcf3f0815132cc4fc790d744090967c0bee
|
| 3 |
+
size 40935440
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b31adff76c33d263bf238da902695ba9b6223cb55e8195c580fe56d48077a2c5
|
| 3 |
+
size 16032985
|
tokenizer_config.json
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"backend": "tokenizers",
|
| 3 |
+
"eos_token": "</s>",
|
| 4 |
+
"extra_ids": 0,
|
| 5 |
+
"extra_special_tokens": [
|
| 6 |
+
"<pad>",
|
| 7 |
+
"</s>",
|
| 8 |
+
"β<extra_id_99>",
|
| 9 |
+
"β<extra_id_98>",
|
| 10 |
+
"β<extra_id_97>",
|
| 11 |
+
"β<extra_id_96>",
|
| 12 |
+
"β<extra_id_95>",
|
| 13 |
+
"β<extra_id_94>",
|
| 14 |
+
"β<extra_id_93>",
|
| 15 |
+
"β<extra_id_92>",
|
| 16 |
+
"β<extra_id_91>",
|
| 17 |
+
"β<extra_id_90>",
|
| 18 |
+
"β<extra_id_89>",
|
| 19 |
+
"β<extra_id_88>",
|
| 20 |
+
"β<extra_id_87>",
|
| 21 |
+
"β<extra_id_86>",
|
| 22 |
+
"β<extra_id_85>",
|
| 23 |
+
"β<extra_id_84>",
|
| 24 |
+
"β<extra_id_83>",
|
| 25 |
+
"β<extra_id_82>",
|
| 26 |
+
"β<extra_id_81>",
|
| 27 |
+
"β<extra_id_80>",
|
| 28 |
+
"β<extra_id_79>",
|
| 29 |
+
"β<extra_id_78>",
|
| 30 |
+
"β<extra_id_77>",
|
| 31 |
+
"β<extra_id_76>",
|
| 32 |
+
"β<extra_id_75>",
|
| 33 |
+
"β<extra_id_74>",
|
| 34 |
+
"β<extra_id_73>",
|
| 35 |
+
"β<extra_id_72>",
|
| 36 |
+
"β<extra_id_71>",
|
| 37 |
+
"β<extra_id_70>",
|
| 38 |
+
"β<extra_id_69>",
|
| 39 |
+
"β<extra_id_68>",
|
| 40 |
+
"β<extra_id_67>",
|
| 41 |
+
"β<extra_id_66>",
|
| 42 |
+
"β<extra_id_65>",
|
| 43 |
+
"β<extra_id_64>",
|
| 44 |
+
"β<extra_id_63>",
|
| 45 |
+
"β<extra_id_62>",
|
| 46 |
+
"β<extra_id_61>",
|
| 47 |
+
"β<extra_id_60>",
|
| 48 |
+
"β<extra_id_59>",
|
| 49 |
+
"β<extra_id_58>",
|
| 50 |
+
"β<extra_id_57>",
|
| 51 |
+
"β<extra_id_56>",
|
| 52 |
+
"β<extra_id_55>",
|
| 53 |
+
"β<extra_id_54>",
|
| 54 |
+
"β<extra_id_53>",
|
| 55 |
+
"β<extra_id_52>",
|
| 56 |
+
"β<extra_id_51>",
|
| 57 |
+
"β<extra_id_50>",
|
| 58 |
+
"β<extra_id_49>",
|
| 59 |
+
"β<extra_id_48>",
|
| 60 |
+
"β<extra_id_47>",
|
| 61 |
+
"β<extra_id_46>",
|
| 62 |
+
"β<extra_id_45>",
|
| 63 |
+
"β<extra_id_44>",
|
| 64 |
+
"β<extra_id_43>",
|
| 65 |
+
"β<extra_id_42>",
|
| 66 |
+
"β<extra_id_41>",
|
| 67 |
+
"β<extra_id_40>",
|
| 68 |
+
"β<extra_id_39>",
|
| 69 |
+
"β<extra_id_38>",
|
| 70 |
+
"β<extra_id_37>",
|
| 71 |
+
"β<extra_id_36>",
|
| 72 |
+
"β<extra_id_35>",
|
| 73 |
+
"β<extra_id_34>",
|
| 74 |
+
"β<extra_id_33>",
|
| 75 |
+
"β<extra_id_32>",
|
| 76 |
+
"β<extra_id_31>",
|
| 77 |
+
"β<extra_id_30>",
|
| 78 |
+
"β<extra_id_29>",
|
| 79 |
+
"β<extra_id_28>",
|
| 80 |
+
"β<extra_id_27>",
|
| 81 |
+
"β<extra_id_26>",
|
| 82 |
+
"β<extra_id_25>",
|
| 83 |
+
"β<extra_id_24>",
|
| 84 |
+
"β<extra_id_23>",
|
| 85 |
+
"β<extra_id_22>",
|
| 86 |
+
"β<extra_id_21>",
|
| 87 |
+
"β<extra_id_20>",
|
| 88 |
+
"β<extra_id_19>",
|
| 89 |
+
"β<extra_id_18>",
|
| 90 |
+
"β<extra_id_17>",
|
| 91 |
+
"β<extra_id_16>",
|
| 92 |
+
"β<extra_id_15>",
|
| 93 |
+
"β<extra_id_14>",
|
| 94 |
+
"β<extra_id_13>",
|
| 95 |
+
"β<extra_id_12>",
|
| 96 |
+
"β<extra_id_11>",
|
| 97 |
+
"β<extra_id_10>",
|
| 98 |
+
"β<extra_id_9>",
|
| 99 |
+
"β<extra_id_8>",
|
| 100 |
+
"β<extra_id_7>",
|
| 101 |
+
"β<extra_id_6>",
|
| 102 |
+
"β<extra_id_5>",
|
| 103 |
+
"β<extra_id_4>",
|
| 104 |
+
"β<extra_id_3>",
|
| 105 |
+
"β<extra_id_2>",
|
| 106 |
+
"β<extra_id_1>",
|
| 107 |
+
"β<extra_id_0>"
|
| 108 |
+
],
|
| 109 |
+
"is_local": true,
|
| 110 |
+
"model_max_length": 1000000000000000019884624838656,
|
| 111 |
+
"pad_token": "<pad>",
|
| 112 |
+
"tokenizer_class": "T5Tokenizer",
|
| 113 |
+
"unk_id": 2,
|
| 114 |
+
"unk_token": "<unk>"
|
| 115 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0dabca51e72114eaca81aeef4be9b4ef21431994010b6e32ac801b4e53b25ee
|
| 3 |
+
size 5393
|