File size: 3,166 Bytes
d3e09e4
e719cff
 
 
 
 
 
 
 
d3e09e4
 
 
e719cff
d3e09e4
e719cff
d3e09e4
e719cff
d3e09e4
 
e719cff
d3e09e4
e719cff
d3e09e4
e719cff
 
 
d3e09e4
e719cff
 
 
 
 
 
 
 
d3e09e4
e719cff
4dc75b1
e719cff
d3e09e4
e719cff
8ba488a
e719cff
 
d3e09e4
e719cff
d3e09e4
e719cff
d3e09e4
e719cff
d3e09e4
e719cff
 
d3e09e4
e719cff
d3e09e4
e719cff
d3e09e4
e719cff
 
 
 
 
 
 
 
 
 
 
d3e09e4
e719cff
d3e09e4
3463f22
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
datasets:
- PrompTart/PTT_advanced_en_ko
language:
- en
- ko
base_model:
- beomi/Llama-3-KoEn-8B-Instruct-preview
- meta-llama/Meta-Llama-3-8B
library_name: transformers
---

# Llama-3-KoEn-8B-Instruct-preview Fine-Tuned on Parenthetical Terminology Translation (PTT) Dataset

## Model Overview

This is a **Llama-3-KoEn-8B-Instruct-preview** model fine-tuned on the [**Parenthetical Terminology Translation (PTT)**](https://arxiv.org/abs/2410.00683) dataset. [The PTT dataset](https://huggingface.co/datasets/PrompTart/PTT_advanced_en_ko) 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.


## Example Usage

Hereโ€™s how to use this fine-tuned model with the Hugging Face `transformers` library:

```python
import transformers
from transformers import AutoTokenizer, AutoModelForCausalLM

# Load Model and Tokenizer
model_name = "PrompTartLAB/Llama3ko_8B_inst_PTT_enko"
model = AutoModelForCausalLM.from_pretrained(
    model_name,
    torch_dtype="auto",
    device_map="auto",
)
tokenizer = AutoTokenizer.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."
prompt = f"Translate input sentence to Korean \n### Input: {text} \n### Translated:"

# Tokenize and generate translation
input_ids = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**input_ids, max_new_tokens=1024)
out_message = tokenizer.decode(outputs[0][len(input_ids["input_ids"][0]):], skip_special_tokens=True)

# " ์ด ๋ชจ๋ธ์€ ์ง€์‹ ์ฆ๋ฅ˜ ๊ธฐ๋ฒ•(knowledge distillation techniques)์„ ์‚ฌ์šฉํ•˜์—ฌ ๋ฏธ์„ธ ์กฐ์ •๋˜์—ˆ์Šต๋‹ˆ๋‹ค. ํ›ˆ๋ จ ๋ฐ์ดํ„ฐ์…‹์€ ๋Œ€ํ˜• ์–ธ์–ด ๋ชจ๋ธ(large language models)๋กœ ๊ตฌ๋™๋˜๋Š” ํ˜‘๋ ฅ์  ๋‹ค์ค‘ ์—์ด์ „ํŠธ ํ”„๋ ˆ์ž„์›Œํฌ(collaborative multi-agent framework)๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์ƒ์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค."

```

## Limitations

- **Out-of-Domain Accuracy**: While the model generalizes to some extent, accuracy may vary in domains that were not part of the training set.
- **Incomplete Parenthetical Annotation**: Not all technical terms are consistently displayed in parentheses; in some cases, terms may be omitted or not annotated as expected.

## Citation

If you use this model in your research, please cite the original dataset and paper:

```tex
@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}, 
}
```

## Contact

For questions or feedback, please contact [aeolian83@gmail.com](mailto:aeolian83@gmail.com).