/ Модель

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

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

rikai-jp-eng-Bench-265-0.8B

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

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

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

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

rikai jp-eng Bench 265 0.8B — дообученная модель для перевода между японским и английским языками, созданная автором репозитория rikai на базе cyberagent/CAT-Translate-0.8b. Это плотная авторегрессионная модель семейства Llama с примерно 661,9 млн параметров и контекстом 8192 токена. В репозитории представлены веса safetensors в FP16; метаданные также указывают варианты GGUF Q4_K_M и Q8_0.

Модель предназначена для перевода японского текста на английский и английского на японский, в том числе для локального запуска на устройствах. По оценке автора, на его тестах модель сопоставима или превосходит CAT-Translate-1.4B по большинству автоматических метрик и работает быстрее при декодировании; в отдельной оценке переводов LLM-судьёй она получила 60,3 из 100, а критические ошибки были отмечены в 6,2% переводов.

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

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

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

Ограничения

В оценке LLM-судьёй критические ошибки отмечены в 6,2% переводов; показатели получены на ограниченных тестовых наборах и могут не отражать качество на других текстах. Поддержка языков за пределами японского и английского не заявлена.

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

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

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

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

Источники: 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 .8B

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

Models

RepoFormatSize
rikai jp<->eng Bench 265 .8B (this repo, root)safetensors, fp16~1.5 GB
rikai jp<->eng Bench 265 1.4Bsafetensors, fp16 + MLX 8/4-bit + GGUF Q8_0/Q4_K_M~2.8 GB / 1.5 GB
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
rikai jp<->eng Bench 265 .8B mlx-8bit (this repo, mlx-8bit/)MLX, 8-bit affine, group size 64812 MB
rikai jp<->eng Bench 265 .8B mlx-4bit (this repo, mlx-4bit/)MLX, 4-bit affine, group size 64434 MB
rikai jp<->eng Bench 265 .8B GGUF (this repo, gguf/)GGUF Q8_0 / Q4_K_M (llama.cpp)845 MB / 528 MB

Evaluation at a glance

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

rikai jp<->eng Bench 265 .8Brikai 1.4BCAT-0.8BCAT-1.4BCAT-3.3B-βCAT-3.3BCAT-7B
26-domain gate, CometKiwi ↑0.83840.84250.83040.83530.84200.84300.8430
26-domain gate, MetricX-24-QE error ↓2.852.753.293.042.892.762.78
26-domain gate, MetricX-24 error ↓3.343.163.833.513.313.143.14
26-domain gate, BLEU, mean over sets ↑22.0223.8821.1319.4123.1423.2226.07
26-domain gate, chrF++, mean over sets ↑36.8838.3335.6235.3238.0638.3140.17
Blind 500, CometKiwi ↑0.80200.80810.79440.79920.80640.80460.8061
Blind 500, MetricX-24-QE (1 − err/25) ↑0.85860.86840.83910.84930.85620.86040.8663
Blind 500 en→ja, MetricX-24-QE ↑0.84360.84750.81010.82790.82860.84280.8503

CAT-3.3B-β vs CAT-3.3B. These are two separate CyberAgent releases of the same 3.3B size. In this table the β release trails CAT-3.3B on 7 of the 8 score rows, so matching β is not the same as matching CAT-3.3B.

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 .8B60.36.2%
rikai jp<->eng Bench 265 1.4B66.93.8%
CAT-0.8B58.57.4%
CAT-1.4B60.67.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%
TranslateGemma-4B63.75.8%

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-0.8B", 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 7 a.m.

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 42.8 for Q8_0 and 42.4 for Q4_K_M, against 44.4 for MLX 8-bit with the prefix mask and 42.9 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-0.8B", "gguf/rikai-jp-eng-Bench-265-0.8B-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

$5 USD if anyone can build a decoder model that beats rikai bench 265 .8B at .8B or less.

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

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

GPU в ailist

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

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

MLX-модели работают только на Apple Silicon.

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

0 моделей