yanolja / YanoljaNEXT-Rosetta-4B-2510

huggingface.co
Total runs: 5
24-hour runs: 0
7-day runs: -8
30-day runs: -21
Model's Last Updated: November 02 2025
translation

Introduction of YanoljaNEXT-Rosetta-4B-2510

Model Details of YanoljaNEXT-Rosetta-4B-2510

YanoljaNEXT-Rosetta-4B-2510

This model is a fine-tuned version of google/gemma-3-4b-pt . As it is intended solely for text generation, we have extracted and utilized only the Gemma3ForCausalLM component from the original architecture.

Unlike our previous EEVE models, this model does not feature an expanded tokenizer.

  • Model Name: yanolja/YanoljaNEXT-Rosetta-4B-2510
  • Base Model: google/gemma-3-4b-pt
Model Description

This model is a 4-billion parameter, decoder-only language model built on the Gemma3 architecture and fine-tuned by Yanolja NEXT. It is specifically designed to translate structured data (JSON format) while preserving the original data structure.

The model was trained on a multilingual dataset covering the following languages equally:

  • Arabic
  • Bulgarian
  • Chinese
  • Czech
  • Danish
  • Dutch
  • English
  • Finnish
  • French
  • German
  • Greek
  • Gujarati
  • Hebrew
  • Hindi
  • Hungarian
  • Indonesian
  • Italian
  • Japanese
  • Korean
  • Persian
  • Polish
  • Portuguese
  • Romanian
  • Russian
  • Slovak
  • Spanish
  • Swedish
  • Tagalog
  • Thai
  • Turkish
  • Ukrainian
  • Vietnamese

While optimized for these languages, it may also perform effectively on other languages supported by the base Gemma3 model.

How to use

You can use this model with the transformers library as follows:

import json
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "yanolja/YanoljaNEXT-Rosetta-4B-2510"
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    dtype=torch.bfloat16,
    device_map="auto",
    max_memory={0: "23GB"},
)
tokenizer = AutoTokenizer.from_pretrained(model_id)

target_language = "Korean"
context = {
  "context": "Simple introduction about a tech company.",
  "tone": "Informative and helpful",
  "glossary": {
    "Yanolja NEXT": "야놀자넥스트",
    "travel industry": "여행 산업",
  }
}

system = [f"Translate the user's text to {target_language}."]
for key, value in context.items():
  key_pascal = key.capitalize()
  if isinstance(value, dict):
    system.append(f"{key_pascal}:")
    for f, t in value.items():
      system.append(f"- {f} -> {t}")
  else:
    system.append(f"{key_pascal}: {value}")

system.append("Provide the final translation immediately without any other text.")

source = {
  "company_name": "Yanolja NEXT",
  "description": "Yanolja NEXT is a company that provides cutting-edge "
                 "technology for the global travel industry.",
}

messages = [
    {"role": "system", "content": "\n".join(system)},
    {"role": "user", "content": json.dumps(source, ensure_ascii=False)},
]

prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
print(prompt)
# <bos><start_of_turn>instruction
# Translate the user's text to Korean.
# Context: Simple introduction about a tech company.
# Tone: Informative and helpful
# Glossary:
# - Yanolja NEXT -> 야놀자넥스트
# - travel industry -> 여행 산업
# Provide the final translation immediately without any other text.<end_of_turn>
# <start_of_turn>source
# {"company_name": "Yanolja NEXT", "description": "Yanolja NEXT is a company that provides cutting-edge technology for the global travel industry."}<end_of_turn>
# <start_of_turn>translation

inputs = tokenizer(prompt, return_tensors="pt").to("cuda")
input_length = inputs["input_ids"].shape[1]

with torch.inference_mode():
    outputs = model.generate(
        **inputs,
        max_new_tokens=64,
    )

generated_tokens = outputs[0][input_length:]
translation = tokenizer.decode(generated_tokens, skip_special_tokens=True)

print(json.dumps(json.loads(translation), indent=2, ensure_ascii=False))
# {
#   "company_name": "야놀자넥스트",
#   "description": "야놀자넥스트는 글로벌 여행 산업에 최첨단 기술을 제공하는 회사입니다."
# }

The model outputs the final translation in JSON format when appropriate, or plain text for simple translations.

Training Procedure
Training Data

The translation datasets were synthesized using fineweb corpora.

The model was fine-tuned on synthetic multilingual translation data to optimize performance across the supported language pairs.

Performance
Translation Quality Benchmarks

The following CHrF++ scores (WMT24++) demonstrate the model's competitive performance compared to other state-of-the-art translation models on English to Korean translation:

Model CHrF++ Score (WMT24++)
google/gemini-2.5-flash-lite 35.23
yanolja/YanoljaNEXT-Rosetta-4B-2510 35.09
yanolja/YanoljaNEXT-Rosetta-12B 34.75
yanolja/YanoljaNEXT-Rosetta-20B 33.87
google/gemini-2.0-flash-001 33.81
openai/gpt-oss-120b 31.51
yanolja/YanoljaNEXT-Rosetta-4B 31.31
openai/gpt-4.1-nano 31.15
Qwen/Qwen3-235B-A22B-Instruct-2507-FP8 31.02
openai/gpt-oss-20b 30.56
google/gemma-3-27b-it 30.05
google/gemma-3-4b-pt 27.53

YanoljaNEXT-Rosetta-4B-2510 achieves competitive translation quality while maintaining the efficiency of a 4B parameter model. Scores for the other language pairs can be found in the WMT24++ Evaluation Results .

Intended Uses & Limitations

This model is intended for translating structured data (JSON format) while preserving the original structure. It is particularly well-suited for tasks such as localizing product catalogs, translating hotel reviews, or handling any other structured content that requires accurate translation.

Limitations

The model is primarily optimized for processing JSON data. Its performance on unstructured text or other data formats may vary. In some cases, the model may produce invalid JSON, repetitive output, or inaccurate translations.

License

This model is released under the Gemma license, inherited from its base model, google/gemma-3-4b-pt . Please consult the official Gemma license terms for detailed usage guidelines.

Citation

If you use this model, please consider citing:

@misc{yanolja2025yanoljanextrosetta,
  author = {Yanolja NEXT Co., Ltd.},
  title = {YanoljaNEXT-Rosetta-4B-2510},
  year = {2025},
  publisher = {Hugging Face},
  journal = {Hugging Face repository},
  howpublished = {\\url{https://huggingface.co/yanolja/YanoljaNEXT-Rosetta-4B-2510}}
}
References

This work utilizes several models and datasets. We would like to acknowledge the original authors for their valuable contributions to the field.

@misc{gemma3,
  author = {Google},
  title = {Gemma 3},
  year = {2024},
  publisher = {Google DeepMind},
  howpublished = {\\url{https://deepmind.google/models/gemma/gemma-3/}}
}

@misc{penedo2025fineweb2pipelinescale,
  title = {FineWeb2: One Pipeline to Scale Them All -- Adapting Pre-Training Data Processing to Every Language}, 
  author = {Guilherme Penedo and Hynek Kydlíček and Vinko Sabolčec and Bettina Messmer and Negar Foroutan and Amir Hossein Kargaran and Colin Raffel and Martin Jaggi and Leandro Von Werra and Thomas Wolf},
  year = {2025},
  eprint = {2506.20920},
  archivePrefix = {arXiv},
  primaryClass = {cs.CL},
  url = {https://arxiv.org/abs/2506.20920},
}

@misc{lozhkov2024fineweb-edu,
  author = {Lozhkov, Anton and Ben Allal, Loubna and von Werra, Leandro and Wolf, Thomas},
  title = {FineWeb-Edu: the Finest Collection of Educational Content},
  year = 2024,
  url = {https://huggingface.co/datasets/HuggingFaceFW/fineweb-edu},
  doi = {10.57967/hf/2497},
  publisher={Hugging Face}
}

Runs of yanolja YanoljaNEXT-Rosetta-4B-2510 on huggingface.co

5
Total runs
0
24-hour runs
0
3-day runs
-8
7-day runs
-21
30-day runs

More Information About YanoljaNEXT-Rosetta-4B-2510 huggingface.co Model

More YanoljaNEXT-Rosetta-4B-2510 license Visit here:

https://choosealicense.com/licenses/gemma

YanoljaNEXT-Rosetta-4B-2510 huggingface.co

YanoljaNEXT-Rosetta-4B-2510 huggingface.co is an AI model on huggingface.co that provides YanoljaNEXT-Rosetta-4B-2510's model effect (), which can be used instantly with this yanolja YanoljaNEXT-Rosetta-4B-2510 model. huggingface.co supports a free trial of the YanoljaNEXT-Rosetta-4B-2510 model, and also provides paid use of the YanoljaNEXT-Rosetta-4B-2510. Support call YanoljaNEXT-Rosetta-4B-2510 model through api, including Node.js, Python, http.

YanoljaNEXT-Rosetta-4B-2510 huggingface.co Url

https://huggingface.co/yanolja/YanoljaNEXT-Rosetta-4B-2510

yanolja YanoljaNEXT-Rosetta-4B-2510 online free

YanoljaNEXT-Rosetta-4B-2510 huggingface.co is an online trial and call api platform, which integrates YanoljaNEXT-Rosetta-4B-2510's modeling effects, including api services, and provides a free online trial of YanoljaNEXT-Rosetta-4B-2510, you can try YanoljaNEXT-Rosetta-4B-2510 online for free by clicking the link below.

yanolja YanoljaNEXT-Rosetta-4B-2510 online free url in huggingface.co:

https://huggingface.co/yanolja/YanoljaNEXT-Rosetta-4B-2510

YanoljaNEXT-Rosetta-4B-2510 install

YanoljaNEXT-Rosetta-4B-2510 is an open source model from GitHub that offers a free installation service, and any user can find YanoljaNEXT-Rosetta-4B-2510 on GitHub to install. At the same time, huggingface.co provides the effect of YanoljaNEXT-Rosetta-4B-2510 install, users can directly use YanoljaNEXT-Rosetta-4B-2510 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

YanoljaNEXT-Rosetta-4B-2510 install url in huggingface.co:

https://huggingface.co/yanolja/YanoljaNEXT-Rosetta-4B-2510

Url of YanoljaNEXT-Rosetta-4B-2510

YanoljaNEXT-Rosetta-4B-2510 huggingface.co Url

Provider of YanoljaNEXT-Rosetta-4B-2510 huggingface.co

yanolja
ORGANIZATIONS

Other API from yanolja