Portuguese Variety Identification and Rewriting with T5Gemma 2
This repository contains 36 models, including the original 34 dissertation models and two additional decoder-controlled rewriting-only models. The models support Portuguese variety identification and bidirectional rewriting between European and Brazilian Portuguese.
Code, configurations, evaluation scripts, result tables, and artifact manifests are available at https://github.com/laiarodrigo/Thesis.
Original dissertation release source revision: 4af70204bf1a0435d047b27ab737e93b7a19001f
Each model is stored in a folder named with its dissertation model ID. Every folder includes the exact training configuration, tokenizer files, artifact metadata, and either a PEFT LoRA adapter or a fully fine-tuned model. The artifact metadata records the SHA-256 value of the weight file.
| Model | Stage | Control | Supervision | Variant | Artifact |
|---|---|---|---|---|---|
| B4-D-G-PTBR | B | decoder | gpt_wikipedia | rank48 | peft_lora_adapter |
| B4-E-G-PTBR-CLS | B | encoder | gpt_wikipedia | rank48 | peft_lora_adapter |
| B4-D-GF-PTBR | B | decoder | gpt_wikipedia_frmt | rank48 | peft_lora_adapter |
| B4-E-GF-PTBR-CLS | B | encoder | gpt_wikipedia_frmt | rank48 | peft_lora_adapter |
| B4-D-G-PTBR-no-stage-a | B | decoder | gpt_wikipedia | no_stage_a | peft_lora_adapter |
| B4-E-G-PTBR-CLS-no-stage-a | B | encoder | gpt_wikipedia | no_stage_a | peft_lora_adapter |
| B4-D-GF-PTBR-no-stage-a | B | decoder | gpt_wikipedia_frmt | no_stage_a | peft_lora_adapter |
| B4-E-GF-PTBR-CLS-no-stage-a | B | encoder | gpt_wikipedia_frmt | no_stage_a | peft_lora_adapter |
| B4-E-G-PTBR-rewriting-only | B | encoder | gpt_wikipedia | rewriting_only | peft_lora_adapter |
| B4-D-G-PTBR-rewriting-only | B | decoder | gpt_wikipedia | rewriting_only | peft_lora_adapter |
| B4-E-GF-PTBR-rewriting-only | B | encoder | gpt_wikipedia_frmt | rewriting_only | peft_lora_adapter |
| B4-D-GF-PTBR-rewriting-only | B | decoder | gpt_wikipedia_frmt | rewriting_only | peft_lora_adapter |
| B4-D-G-PTBR-r8 | B | decoder | gpt_wikipedia | rank8 | peft_lora_adapter |
| B4-D-G-PTBR-r16 | B | decoder | gpt_wikipedia | rank16 | peft_lora_adapter |
| B4-D-G-PTBR-r32 | B | decoder | gpt_wikipedia | rank32 | peft_lora_adapter |
| B4-D-G-PTBR-no-equal | B | decoder | gpt_wikipedia | no_equal_rewriting | peft_lora_adapter |
| B4-D-GF-PTBR-no-equal | B | decoder | gpt_wikipedia_frmt | no_equal_rewriting | peft_lora_adapter |
| C4-D-G-PTBR | C | decoder | gpt_wikipedia | main_reward | peft_lora_adapter |
| C4-E-G-PTBR-CLS | C | encoder | gpt_wikipedia | main_reward | peft_lora_adapter |
| C4-D-GF-PTBR | C | decoder | gpt_wikipedia_frmt | main_reward | peft_lora_adapter |
| C4-E-GF-PTBR-CLS | C | encoder | gpt_wikipedia_frmt | main_reward | peft_lora_adapter |
| C4-D-G-PTBR-no-equal | C | decoder | gpt_wikipedia | no_equal_rewriting | peft_lora_adapter |
| C4-D-GF-PTBR-no-equal | C | decoder | gpt_wikipedia_frmt | no_equal_rewriting | peft_lora_adapter |
| F270-D-G-PTBR | B | decoder | gpt_wikipedia | base_protocol | full_model |
| F270-D-G-PTBR-task-balanced | B | decoder | gpt_wikipedia | task_balanced_batches | full_model |
| F270-D-G-PTBR-added-tokens | B | decoder | gpt_wikipedia | added_tokens | full_model |
| F270-D-G-PTBR-restricted-loss | B | decoder | gpt_wikipedia | restricted_classification_loss | full_model |
| F270-E-G-PTBR-CLS | B | encoder | gpt_wikipedia | base_protocol | full_model |
| C270-D-G-PTBR-A0 | C | decoder | gpt_wikipedia | base_reward | full_model |
| C270-D-G-PTBR-A1 | C | decoder | gpt_wikipedia | classifier_reward | full_model |
| C270-D-G-PTBR-A2 | C | decoder | gpt_wikipedia | token_conservatism | full_model |
| C270-D-G-PTBR-A3 | C | decoder | gpt_wikipedia | ter_diverse_grouping | full_model |
| C270-E-G-PTBR-CLS-A0 | C | encoder | gpt_wikipedia | base_reward | full_model |
| C270-E-G-PTBR-CLS-A1 | C | encoder | gpt_wikipedia | classifier_reward | full_model |
| C270-E-G-PTBR-CLS-A2 | C | encoder | gpt_wikipedia | token_conservatism | full_model |
| C270-E-G-PTBR-CLS-A3 | C | encoder | gpt_wikipedia | ter_diverse_grouping | full_model |
Loading
Use the model folder as the subfolder argument when loading tokenizer and model files. The 4B entries are PEFT LoRA adapters for google/t5gemma-2-4b-4b. The 270M entries are standalone fully fine-tuned models based on google/t5gemma-2-270m-270m.
License
These models are derivatives of T5Gemma 2 and are distributed under the Gemma Terms of Use: https://ai.google.dev/gemma/terms. Users are responsible for complying with those terms and with the licenses of the training and evaluation resources described in the dissertation.
Limitations
The models were evaluated only under the dissertation protocols. Automatic BLEU, TER, and classification results do not establish performance for every Portuguese domain or every acceptable variety rewrite.