Downloads · 30 days
9
9% of all-time downloads
jurgiraud/t5_236k
t5_236k is a translation model from jurgiraud. Use it when you need text moved from one language to another. The card lists the license as apache-2.0.
This model is a domain-adapted version of google-t5/t5-base, fine-tuned on 236k English–French sentence pairs from the bioinformatics and biomedical domains. It is designed for English → French Machine Translation.
Downloads · 30 days
9
9% of all-time downloads
All-time downloads
103
Public
Parameters
223M
2.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt1.8 GB · 67%
From the Hugging Face model README
This model is a domain-adapted version of google-t5/t5-base, fine-tuned on 236k English–French sentence pairs from the bioinformatics and biomedical domains.
It is designed for English → French Machine Translation.
This model was fine-tuned as part of a PhD research project investigating domain adaptation for Machine Translation (MT) in low-resource scenario within the bioinformatics domain (English → French). The project explores the performance of compact MT models and Large Language Models (LLMs), including architectures under 1B parameters as well as models in the 3B–8B range, with a strong emphasis on resource-efficient fine-tuning strategies. The fine-tuning process made use of Parameter-Efficient Fine-Tuning (PEFT) and quantization, in particular QLoRA (Quantized Low-Rank Adaptation), for larger models (Dettmers et al., 2023).
In total, 5 models were fine-tuned on in-domain data: t5_236k (👈 current model) | nllb-200-distilled-600M_236K | madlad400-3b-mt_236k | TowerInstruct-7B-v0.2_236k | and Llama-3.1-8B-Instruct_236K
This model is intended to be used for English → French Machine Translation in the bioinformatics domain.
Find below an example of basic usage with GPU using Hugging Face's Transformers library.
First, install dependencies:
pip install torch transformers
from transformers import T5ForConditionalGeneration, T5Tokenizer
tokenizer = T5Tokenizer.from_pretrained("jurgiraud/t5_236k")
model = T5ForConditionalGeneration.from_pretrained("jurgiraud/t5_236k").to("cuda")
def translate(text):
inputs = tokenizer(
f"translate English to French: {text}",
return_tensors="pt"
).to("cuda")
outputs = model.generate(**inputs, max_new_tokens=128) #Feel free to change max_new_tokens
return tokenizer.decode(outputs[0], skip_special_tokens=True)
print(translate("The deletion of a gene may result in death or in a block of cell division."))
#La suppression d'un gène peut entraîner la mort ou un blocage de la division cellulaire.
The model was fine-tuned on a set of 236k English-French parallel examples consisting of:
Fine-tuning dataset available 👉 here.
The model was fine-tuned using transformers Seq2SeqTrainer.
Key hyperparameters and training setup:
Seq2SeqTrainer2e-5, batch size = 16 (per device)The model was evaluated on an in-domain bioinformatics test set using standard MT metrics.
Test set available 👉 here.
Results from automated metrics. Baseline vs domain-adapted model. Best scores in bold.
| Models | BLEU↑ | chRF2↑ | TER↓ | COMET↑ |
|---|---|---|---|---|
| Baseline model T5_base | 39.23 | 67.31 | 51.27 | 84.50 |
| Domain-adapted model T5_236k | 45.53 | 71.92 | 45.62 | 85.64 |
The fine-tuning carbon footprint was estimated using the Green Algorithms framework (Lannelongue et al., 2021).
BibTeX:
@phdthesis{giraud2026bioinformaticsMT,
title = {Developing Machine Translation for Bioinformatics: An Exploration into Domain-Specific Terminology, Domain Adaptation, and Evaluation},
author = {Giraud, Jurgi},
school = {The Open University},
year = {2026},
type = {Doctor of Philosophy ({PhD}) thesis},
doi = {10.21954/ou.ro.00109555},
url = {https://doi.org/10.21954/ou.ro.00109555},
}