/ Модель

Характеристики

Контекст
131 072 токена
Параметры
4 млрд
Размер весов
14,2 ГБ
Лицензия
Gemma
Архитектура
gemma3_text · dense
Библиотека
transformers
Опубликована
2 сен 2025

YanoljaNEXT-Rosetta-4B

Генерация текстаТекст → текст3 профессии

YanoljaNEXT-Rosetta-4B — дообученная многоязычная модель для перевода JSON с сохранением его структуры.

27скачиваний за 30 дней23лайкавеса обновлены3 сен 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

YanoljaNEXT-Rosetta-4B — языковая модель с 4 млрд параметров, разработанная Yanolja NEXT и дообученная на основе google/gemma-3-4b-pt. Это плотная decoder-only модель семейства Gemma 3 с архитектурой Gemma3ForCausalLM, предназначенная для генерации текста и перевода структурированных данных в формате JSON с сохранением исходной структуры. Контекстное окно составляет 131 072 токена; модель работает через библиотеку Transformers.

Модель обучалась для перевода между английским, испанским, французским, немецким, португальским, японским, корейским, китайским, арабским, русским и хинди. Она подходит для локализации каталогов товаров, перевода отзывов об отелях и других задач перевода JSON. В README указаны результаты сравнительного тестирования перевода с английского на корейский; числовой результат именно версии 4B в приведённой таблице не указан.

Модель оптимизирована для структурированных данных, поэтому качество на обычном тексте или других форматах может отличаться. Лицензия — Gemma; перед использованием следует соблюдать её условия.

Сценарии применения

  • локализация каталогов товаров в формате JSON
  • перевод отзывов об отелях с сохранением структуры данных
  • перевод многоязычных записей и полей JSON
  • перевод структурированных данных между поддерживаемыми языками

Ограничения

Основной фокус модели — перевод JSON с сохранением структуры; качество на неструктурированном тексте и других форматах может отличаться. Условия лицензии Gemma применяются к использованию модели.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

YanoljaNEXT-Rosetta-4B

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.

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

  • Model Name: yanolja/YanoljaNEXT-Rosetta-4B
  • 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:

  • English
  • Spanish
  • French
  • German
  • Portuguese
  • Japanese
  • Korean
  • Chinese
  • Arabic
  • Russian
  • Hindi

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"
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 compiled from several sources, including:

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

LanguagePortion (%)LanguagePortion (%)
Korean24.2French2.8
English16.2German2.5
Japanese5.8Russian2.4
Italian5.3Arabic2.3
Chinese4.4Other30.2
Spanish3.9

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:

ModelCHrF++ Score (WMT24++)
yanolja/YanoljaNEXT-Rosetta-12B34.75
yanolja/YanoljaNEXT-Rosetta-20B33.87
google/gemini-2.0-flash-00133.81
openai/gpt-oss-120b31.51
yanolja/YanoljaNEXT-Rosetta-4B31.31
openai/gpt-4.1-nano31.15
Qwen/Qwen3-235B-A22B-Instruct-2507-FP831.02
openai/gpt-oss-20b30.56
google/gemma-3-27b-it30.05
google/gemma-3-4b-pt27.53

YanoljaNEXT-Rosetta-4B achieves competitive translation quality while maintaining the efficiency of a 4B parameter model.

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's primary focus is on JSON data. Performance on unstructured text or other data formats may vary.

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},
  year = {2025},
  publisher = {Hugging Face},
  journal = {Hugging Face repository},
  howpublished = {\\url{https://huggingface.co/yanolja/YanoljaNEXT-Rosetta-4B}}
}

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{aihub,
  author = {National Information Society Agency (NIA)},
  title = {AI-Hub: AI Integrated Platform},
  year = {2025},
  publisher = {National Information Society Agency},
  howpublished = {\\url{https://aihub.or.kr}}
}

@article{europarl,
  author    = {Koehn, Philipp},
  title     = {Europarl: A Parallel Corpus for Statistical Machine Translation},
  journal   = {MT Summit},
  year      = {2005},
  pages     = {79--86}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Gemma3ForCausalLM
Ревизия весов
b3d3ea8

0 моделей