/ Модель

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

Контекст
8 192 токена
Параметры
1,2 млрд
Лицензия
MIT
Архитектура
llama · dense
Базовая модель
CAT-Translate-1.4b
Библиотека
transformers
Опубликована
4 ноя 2026

rikai-jp-eng-Bench-265-1.4B

Генерация текстаТекст → текст3 профессии
1 105скачиваний за 30 дней1лайквеса обновлены26 ноя 2026

Описание модели

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

Компактная дообученная модель для перевода текста между японским и английским языками.

rikai-jp-eng-Bench-265-1.4B — дообученная модель на архитектуре Llama, созданная Bayla, руководителем QA проекта rikai. Она предназначена для перевода между японским и английским языками; в метаданных указаны 1,2 млрд параметров и контекст 8192 токена. Модель доступна в safetensors и в вариантах GGUF Q4_K_M и Q8_0; README также описывает конверсии MLX в 8- и 4-битном форматах.

По результатам оценки, приведённым в карточке, модель сопоставима с CAT-Translate-3.3B по большинству автоматических метрик на тесте из 26 предметных областей и работает быстрее при декодировании. В отдельной слепой оценке переводов японский↔английский она получила 66,9 из 100; более крупные модели показали более высокие результаты. Карточка приводит сравнительные оценки, но не раскрывает здесь полный набор доменов и метрик.

Лицензия — MIT. Для перевода используется шаблон CAT-Translate с указанием исходного и целевого языков. Модель рассчитана на текстовый ввод и текстовый перевод; поддерживаемые языки — японский и английский.

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

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

Ограничения

В слепой оценке, описанной в README, модель набрала 66,9 из 100 и уступила более крупным моделям. Сравнительные результаты зависят от тестовых наборов и оценщика, а полный перечень результатов в доступной карточке опущен.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

rikai jp<->eng Bench 265 1.4B

🔥 The Bench 265 models are tiny, powerful bidirectional translation models for translating Japanese and English. 🔥

Models

RepoFormatSize
rikai jp<->eng Bench 265 1.4B (this repo, root)safetensors, fp16~2.8 GB
rikai jp<->eng Bench 265 1.4B mlx-8bit (this repo, mlx-8bit/)MLX, 8-bit affine, group size 641.5 GB
rikai jp<->eng Bench 265 1.4B mlx-4bit (this repo, mlx-4bit/)MLX, 4-bit affine, group size 64763 MB
rikai jp<->eng Bench 265 1.4B GGUF (this repo, gguf/)GGUF Q8_0 / Q4_K_M (llama.cpp)1.5 GB / 931 MB
rikai jp<->eng Bench 265 .8Bsafetensors, fp16 + MLX 8/4-bit + GGUF Q8_0/Q4_K_M~1.5 GB / 812 MB
rikai jp<->eng Bench 265 3.3B αsafetensors, fp16 + MLX 8/4-bit + GGUF Q8_0/Q4_K_M~6.7 GB / 3.6 GB

Evaluation at a glance

rikai 1.4B matches/beats CAT-Translate-3.3B on most automatic metrics at 2.4× its decode speed. This model acheived the best scores across all metrics relative to its size.

rikai jp<->eng Bench 265 1.4Brikai .8BCAT-0.8BCAT-1.4BCAT-3.3B-βCAT-3.3BCAT-7B
26-domain gate, CometKiwi ↑0.84250.83840.83040.83530.84200.84300.8430
26-domain gate, MetricX-24-QE error ↓2.752.853.293.042.892.762.78
26-domain gate, MetricX-24 error ↓3.163.343.833.513.313.143.14
26-domain gate, COMET-22 ↑0.86320.85680.84550.85130.85820.86160.8645
26-domain gate, BLEU, mean over sets ↑23.8822.0221.1319.4123.1423.2226.07
26-domain gate, chrF++, mean over sets ↑38.3336.8835.6235.3138.0638.3140.17
Blind 500, CometKiwi ↑0.80810.80200.79440.79920.80640.80460.8061
Blind 500, MetricX-24-QE (1 − err/25) ↑0.86840.85860.83910.84930.85620.86040.8663
Blind 500 en→ja, MetricX-24-QE ↑0.84750.84360.81010.82790.82860.84280.8503
LLM judge (Sonnet 5.5), score 0–100 ↑66.960.358.560.670.471.673.4
LLM judge, translations with a critical error ↓3.8%6.2%7.4%7.8%3.2%2.0%1.4%
Decode speed, tok/s (M4 Pro, 8-bit MLX) ↑147217218146616128

Evaluation

1. 26-domain gate (human references)

This is our main test battery: 1,550 human-referenced items in 26 sets.

DirectionSets
ja→en (820 items)BSD business dialogue (whole documents and single lines), court interpreting, EJMMT medical, FLORES-200 (sentences and multi-sentence articles), WMT23 (ads, e-commerce, news, Q&A, user reviews), Tatoeba, OpenMantra manga pages
en→ja (730 items)BSD, EJMMT, FLORES-200, NTREX-128, WMT23 (Mastodon, news, speech, user reviews), WMT24++ paragraphs (literary, social, news, speech), Tatoeba

How it was run:

  • None of these items were used in training. All training data was screened against them, using 12-character shingles.
  • Every model is greedy-decoded at 8-bit (MLX) with its own recommended prompt. Ours is decoded with the prefix mask.

2. chrF++ and BLEU

Per-domain results for every metric →

3. LLM as Judge results

The only thing benchmaxing here is me, so this model was also trained with an LLM judge.

Judge: Claude Sonnet 5.5, on 500 blind items it never saw in training (350 ja→en, 150 en→ja).

Prompt: it sees the source, a reference marked as "one acceptable translation", and one model's translation, never two side by side. It scores it 0–100 (100 perfect, 75 minor errors, 50 a major error, 25 meaning wrong, 0 unusable) and lists any errors as minor, major or critical. Every item is judged twice, in differently shuffled batches, and the two scores are averaged.

ModelScore (0–100)Translations with a critical error
rikai jp<->eng Bench 265 1.4B66.93.8%
rikai jp<->eng Bench 265 .8B60.36.2%
CAT-0.8B58.57.4%
CAT-1.4B60.67.8%
TranslateGemma-4B63.75.8%
LFM2-350M-ENJP-MT51.813.2%
LFM2.5-1.2B-JP50.617.2%
TinySwallow-1.5B52.015.6%
Gemma-2-2B-jpn52.219.6%
Gemma-2-2B-jpn-translate55.414.0%
HY-MT1.5-1.8B58.07.2%

Larger models score higher and are left off the chart: CAT-3.3B-β 70.4, Tower-Plus-9B 74.0, TranslateGemma-12B 75.5.

Judge: Claude Sonnet 5.5, on 200 held-out items built around an idiom, proverb, metaphor or simile (100 ja→en, 100 en→ja).

Prompt: it sees the source, the expression and what it means, a reference marked as "one acceptable translation", and every model's translation side by side, unlabelled. It scores each one 0–100.

Usage

The prompt and chat template are the same as CAT-Translate's:

Translate the following {src_lang} text into {tgt_lang}.

{src_text}

It runs on a custom prefix mask, so the prompt gets read in both directions before the first word comes out. Here's an MLX example (Apple silicon, 8-bit build):

import mlx.core as mx, mlx_lm.models.llama as llama
from mlx_lm import load
from mlx_lm.models.cache import make_prompt_cache
from huggingface_hub import snapshot_download

path = snapshot_download("rikai-translate/rikai-jp-eng-Bench-265-1.4B", allow_patterns="mlx-8bit/*") + "/mlx-8bit"
model, tok = load(path)
causal_mask = llama.create_attention_mask

def translate(text, src="Japanese", tgt="English", max_tokens=1024):
    msg = [{"role": "user", "content": f"Translate the following {src} text into {tgt}.\n\n{text}"}]
    ids = tok.apply_chat_template(msg, add_generation_prompt=True)
    cache = make_prompt_cache(model)
    llama.create_attention_mask = lambda *a, **k: None   # prompt[:-1] attends in both directions
    model(mx.array([ids[:-1]]), cache=cache)
    llama.create_attention_mask = causal_mask            # generation stays causal
    logits, out = model(mx.array([ids[-1:]]), cache=cache), []
    for _ in range(max_tokens):
        t = mx.argmax(logits[0, -1]).item()
        if t in tok.eos_token_ids: break
        out.append(t); logits = model(mx.array([[t]]), cache=cache)
    return tok.decode(out).strip()

print(translate("駅前の新しいパン屋、朝七時から開いてるらしいよ。"))
# The new bakery in front of the station seems to be open from seven in the morning.

llama.cpp / GGUF. The GGUFs (gguf/) run causally: llama.cpp's non-causal mode doesn't reproduce the prefix mask, so they land a little below the MLX builds (on a 50-item gate sample, chrF 43.6 for Q8_0 and 43.5 for Q4_K_M, against 45.3 for MLX 8-bit with the prefix mask and 44.1 for MLX 8-bit run causally). They use llama.cpp's Unigram tokenizer, which gives the same token ids as the HF tokenizer except on characters missing from the vocabulary (rare kanji, some emoji), which become <unk> instead of UTF-8 bytes.

from llama_cpp import Llama
from huggingface_hub import hf_hub_download

llm = Llama(hf_hub_download("rikai-translate/rikai-jp-eng-Bench-265-1.4B", "gguf/rikai-jp-eng-Bench-265-1.4B-Q8_0.gguf"), n_ctx=4096, n_gpu_layers=-1, verbose=False)

def translate(text, src="Japanese", tgt="English", max_tokens=1024):
    p = f"<|user|>Translate the following {src} text into {tgt}.\n\n{text}</s><|assistant|>"
    return llm(p, max_tokens=max_tokens, temperature=0)["choices"][0]["text"].strip()

The 4-bit builds (mlx-4bit/, gguf/*-Q4_K_M.gguf) are for tight memory; every score above was measured with MLX 8-bit and the prefix mask.

License

MIT.

Citation

If you use this model, please cite the base model:

@misc{jinnai2026cattranslatebuildingcompactopensource,
      title={CAT-Translate: Building Compact Open-Source Models for Japanese-English Translation},
      author={Yuu Jinnai},
      year={2026},
      eprint={2606.21413},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2606.21413},
}

Acknowledgments

  • CAT-Translate by CyberAgent: the base model.
  • Hy-MT2-7B by Tencent: the teacher.
  • sarashina2.2 by SB Intuitions: the pre-trained base under CAT-Translate.
  • Metrics: MetricX-24 (Juraska et al.), COMET-22 and CometKiwi (Rei et al.), and sacrebleu (Post).
  • Claude Sonnet 5.5 by Anthropic: the LLM judge.
  • Data: FLORES-200, WMT23 / WMT24++, NTREX-128, EJMMT, OpenMantra, Tatoeba, BSD, JESC and pfmt-bench-fin-ja.
  • MLX and mlx-lm by Apple: training and inference.

About

current Bench PR 265

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

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

GPU в ailist

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

Нельзя запустить

MLX-модели работают только на Apple Silicon, на GPU NVIDIA они не запускаются.

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

0 моделей