Eiki PLaMo Translate 2B: A translation language model with new directions
2 min readupdated
This model is a fine-tuned version of the base pfnet/plamo-3-translate-2b model from Preferred Networks, featuring 2.88 billion parameters. It expands translation capabilities by adding support for five new languages: Afrikaans, Norwegian, Portuguese, Swedish, and Turkish. At the same time, it fully retains all 53 official original languages and features such as glossary support, context handling, dialogue history, and Japanese polite forms. The model is useful for developers and translators looking to integrate accurate, context-aware translation into third-party services and applications.
Key features
- Support for 5 new languages: Afrikaans, Norwegian, Portuguese, Swedish, and Turkish.
- Preservation of base features: support for 53 languages, glossaries, context, and multi-level chat history.
- Two-stage training: first, vocabulary expansion via LoRA (low-rank adaptation, an efficient fine-tuning method for large models), followed by a stabilization stage against degradation.
- High translation quality without significant loss of accuracy on older language directions.
What you can do
- Integrate the model into a local translation service with support for rare and popular European language directions.
- Set up automated text translation using context and custom glossaries via the
transformerslibrary or thevLLMengine. - Translate multi-level dialogues and documents while preserving the style and structure of the source message.
Example
from transformers import AutoTokenizer
from vllm import LLM, SamplingParams
model_id = "Eiki-AI/eiki-plamo-translate-2b"
tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
prompt = tok.apply_chat_template(
[{"role": "user", "content": "Good morning! Could you tell me where the train station is?"}],
source_lang="en",
target_lang="no",
add_generation_prompt=True,
tokenize=False,
).removeprefix("<|plamo:bos|>")
llm = LLM(model=model_id, trust_remote_code=True, dtype="bfloat16")
params = SamplingParams(temperature=0.0, max_tokens=180, repetition_penalty=1.05, stop=["<|plamo:tag|>", "<|plamo:bos|>"])
print(llm.generate([prompt], params)[0].outputs[0].text.strip())Read more
Details• Architecture: LoRA-merged BF16 fine-tune based on
pfnet/plamo-3-translate-2b.• Training: Stage 1 (LoRA r=128, 1.66M rows), Stage 2 (anti-drift cooldown for 534K rows).
• Quality: Preservation of FLORES-200 accuracy, with the average change in the chrF++ metric for base directions remaining within normal limits.
• License: PLaMo Community License (commercial use terms must be observed).










Comments