Downloads · 30 days
13
3% of all-time downloads
PrompTartLAB/m2m100_418M_PTT_en_ko
m2m100_418M_PTT_en_ko is a machine learning model from PrompTartLAB. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This is a M2M100 model fine-tuned on the Parenthetical Terminology Translation (PTT) dataset. The PTT dataset focuses on translating technical terms accurately by placing the original English term in parentheses along…
Downloads · 30 days
13
3% of all-time downloads
All-time downloads
511
Public
Parameters
484M
1.9 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.9 GB · 100%
From the Hugging Face model README
This is a M2M100 model fine-tuned on the Parenthetical Terminology Translation (PTT) dataset. The PTT dataset focuses on translating technical terms accurately by placing the original English term in parentheses alongside its Korean translation, enhancing clarity and precision in specialized fields. This fine-tuned model is optimized for handling technical terminology in the Artificial Intelligence (AI) domain.
Here’s how to use this fine-tuned model with the Hugging Face transformers library:
<span style="color:red">Note:</span> M2M100Tokenizer depends on <span style="color:blue">sentencepiece</span>, so make sure to install it before running the example. To install sentencepiece, run pip install sentencepiece
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer
model_name = "PrompTart/m2m100_418M_PTT_en_ko"
tokenizer = M2M100Tokenizer.from_pretrained(model_name)
model = M2M100ForConditionalGeneration.from_pretrained(model_name)
# Example sentence
text = "The model was fine-tuned using knowledge distillation techniques.\
The training dataset was created using a collaborative multi-agent framework powered by large language models."
# Tokenize and generate translation
tokenizer.src_lang = "en"
encoded = tokenizer(text.split('. '), return_tensors="pt", padding=True)
generated_tokens = model.generate(**encoded, forced_bos_token_id=tokenizer.get_lang_id("ko"))
outputs = tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
print('\n'.join(outputs))
# => "이 모델은 지식 증류 기법(knowledge distillation techniques)을 사용하여 미세 조정되었습니다.
# 훈련 데이터셋(training dataset)은 대형 언어 모델(large language models)을 기반으로 한 협업 다중 에이전트 프레임워크(collaborative multi-agent framework)를 사용하여 생성되었습니다."
If you use this model in your research, please cite the original dataset and paper:
@misc{myung2024efficienttechnicaltermtranslation,
title={Efficient Technical Term Translation: A Knowledge Distillation Approach for Parenthetical Terminology Translation},
author={Jiyoon Myung and Jihyeon Park and Jungki Son and Kyungro Lee and Joohyung Han},
year={2024},
eprint={2410.00683},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2410.00683},
}
For questions or feedback, please contact [email protected].