Downloads · 30 days
10
4% of all-time downloads
ray5273/EXAONE-3.5-7.8B-KorEng-Translation
EXAONE-3.5-7.8B-KorEng-Translation is a translation model from ray5273. Use it when you need text moved from one language to another. It is set up for transformers. The card lists the license as other.
This model is LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct fine-tuned with LoRA and merged for Korean-English translation tasks.
Downloads · 30 days
10
4% of all-time downloads
All-time downloads
227
Public
Parameters
7.8B
15.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.6 GB · 100%
From the Hugging Face model README
This model is LGAI-EXAONE/EXAONE-3.5-7.8B-Instruct fine-tuned with LoRA and merged for Korean-English translation tasks.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"ray5273/EXAONE-3.5-7.8B-KorEng-Translation",
torch_dtype="auto",
device_map="auto",
trust_remote_code=True,
)
tokenizer = AutoTokenizer.from_pretrained(
"ray5273/EXAONE-3.5-7.8B-KorEng-Translation",
trust_remote_code=True
)
messages = [
{"role": "system", "content": "You are a helpful translator."},
{"role": "user", "content": "Translate the following to English: 안녕하세요, 만나서 반갑습니다."}
]
input_ids = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).to(model.device)
output = model.generate(input_ids, max_new_tokens=256)
print(tokenizer.decode(output[0], skip_special_tokens=True))
This model follows the EXAONE AI Model License Agreement 1.1 - NC. See the EXAONE License for details.