File size: 839 Bytes
a4145ec |
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 |
---
license: apache-2.0
language:
- en
- ja
base_model:
- utter-project/EuroLLM-9B
---
# Description
This is a sentence-based English-to-Japanese translation model fine-tuned from [utter-project/EuroLLM-9B](https://huggingface.co/utter-project/EuroLLM-9B).
Training data: [WMT2025 en-ja parallel corpus](https://www2.statmt.org/wmt25/mtdata/)
# Example
```python
import transformers
import torch
model_id = "Systran/EuroLLM-9B-cpt-ft-wmt25-en-ja"
pipeline = transformers.pipeline(
"text-generation",
model=model_id,
model_kwargs={"torch_dtype": torch.bfloat16},
device_map="auto",
)
messages = "Please translate the following English text into Japanese.\nInput: Hello World!\nOutput: "
outputs = pipeline(
messages,
max_new_tokens=256,
)
print(outputs[0]["generated_text"][len(messages):].split("\n")[0])
|