Enhancing Multilingual Translation Utilizing Back-Translation During Inference
Python
0
110 commits
updated Dec 26, 2025
Enhancing Multilingual Translation Utilizing Back-Translation During Inference
This project implements advanced multilingual translation using a combination of LLM-based generation, back-translation, and iterative refinement. It utilizes models such as NLLB (facebook/nllb-200-distilled-600M) and Llama3 (via Portkey), and evaluates results using metrics like COMET and chrF.
See requirements.txt; install with:
pip install -r requirements.txt
Required Model/Service Keys:
Create a .env file with your keys for:
PORTKEY_API_KEYGROQ_VIRTUAL_KEYHUGGING_FACE_HUB_TOKENRun the main script for translation, critique, and evaluation:
python LLM_BTI.py
For a free prompt demo with user input:
python LLM_BTI_free_prompt.py
The pipeline can be used to automatically evaluate the translation quality on the Flores200 dataset (or other supported datasets). See classes and methods in LLM_BTI.py for batch processing and result plotting.
LLM_BTI.py — main script for dataset-based translation and evaluationLLM_BTI_free_prompt.py — console-based user prompt workflowIf you use this code/project in your research, please cite
@software{jamesjyoon_LLM_BTI,
author = {James Y. Yoon},
title = {LLM_BTI: Enhancing Multilingual Translation Utilizing Back-Translation During Inference},
year = {2025},
url = {https://github.com/jamesjyoon/LLM_BTI}
}
***
Let me know if you want any customization to the requirements or the README structure!
[1](https://github.com/jamesjyoon/LLM_BTI)
Enhancing Multilingual Translation Utilizing Back-Translation During Inference
Python
0
110 commits
updated Dec 26, 2025
Enhancing Multilingual Translation Utilizing Back-Translation During Inference
This project implements advanced multilingual translation using a combination of LLM-based generation, back-translation, and iterative refinement. It utilizes models such as NLLB (facebook/nllb-200-distilled-600M) and Llama3 (via Portkey), and evaluates results using metrics like COMET and chrF.
See requirements.txt; install with:
pip install -r requirements.txt
Required Model/Service Keys:
Create a .env file with your keys for:
PORTKEY_API_KEYGROQ_VIRTUAL_KEYHUGGING_FACE_HUB_TOKENRun the main script for translation, critique, and evaluation:
python LLM_BTI.py
For a free prompt demo with user input:
python LLM_BTI_free_prompt.py
The pipeline can be used to automatically evaluate the translation quality on the Flores200 dataset (or other supported datasets). See classes and methods in LLM_BTI.py for batch processing and result plotting.
LLM_BTI.py — main script for dataset-based translation and evaluationLLM_BTI_free_prompt.py — console-based user prompt workflowIf you use this code/project in your research, please cite
@software{jamesjyoon_LLM_BTI,
author = {James Y. Yoon},
title = {LLM_BTI: Enhancing Multilingual Translation Utilizing Back-Translation During Inference},
year = {2025},
url = {https://github.com/jamesjyoon/LLM_BTI}
}
***
Let me know if you want any customization to the requirements or the README structure!
[1](https://github.com/jamesjyoon/LLM_BTI)