/ Модель

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

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

rikai-jp-eng-Bench-265-3.3B-alpha

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

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

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

Компактная модель на базе CAT-Translate-3.3B для перевода текстов с японского на английский и обратно.

rikai jpeng Bench 265 3.3B α — дообученная модель для перевода между японским и английским языками, созданная Bayla, руководителем QA; в основе лежит cyberagent/CAT-Translate-3.3b. Модель построена на архитектуре LlamaForCausalLM и содержит 3,1 млрд параметров. Она принимает текст и выдаёт перевод; контекст — до 8192 токенов. В репозитории доступны веса safetensors в fp16, а также варианты MLX с 8- и 4-битной квантизацией.

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

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

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

Ограничения

Качество оценивалось на ограниченных тестовых наборах; приведённые результаты не гарантируют точность на других тематиках и типах текста.

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

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

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

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

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

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

Models

RepoFormatSize
rikai jp<->eng Bench 265 3.3B α (this repo, root)safetensors, fp16~6.7 GB
rikai jp<->eng Bench 265 3.3B α mlx-8bit (this repo, mlx-8bit/)MLX, 8-bit affine, group size 643.6 GB
rikai jp<->eng Bench 265 3.3B α mlx-4bit (this repo, mlx-4bit/)MLX, 4-bit affine, group size 641.9 GB
rikai jp<->eng Bench 265 3.3B α GGUF (this repo, gguf/)GGUF Q8_0 / Q4_K_M (llama.cpp)3.6 GB / 2.1 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 .8Bsafetensors, fp16 + MLX 8/4-bit + GGUF Q8_0/Q4_K_M~1.5 GB / 812 MB

Evaluation at a glance

rikai 3.3B α beats CAT-Translate-3.3B on every automatic metric at the same decode speed, and matches or beats CAT-Translate-7B on many metrics at 2.2× its decode speed. This model acheived the best scores across all metrics relative to its size.

rikai jp<->eng Bench 265 3.3B αrikai 1.4Brikai .8BCAT-0.8BCAT-1.4BCAT-3.3B-βCAT-3.3BCAT-7B
26-domain gate, CometKiwi ↑0.84580.84250.83840.83040.83530.84200.84300.8430
26-domain gate, MetricX-24-QE error ↓2.672.752.853.293.042.892.762.78
26-domain gate, MetricX-24 error ↓3.003.163.343.833.513.313.143.14
26-domain gate, COMET-22 ↑0.86710.86320.85680.84550.85130.85820.86160.8645
26-domain gate, BLEU, mean over sets ↑24.6623.8822.0221.1319.4123.1423.2226.07
26-domain gate, chrF++, mean over sets ↑39.4838.3336.8835.6235.3138.0638.3140.17
Blind 500, CometKiwi ↑0.80630.80810.80200.79440.79920.80640.80460.8061
Blind 500, MetricX-24-QE (1 − err/25) ↑0.87150.86840.85860.83910.84930.85620.86040.8663
Blind 500 en→ja, MetricX-24-QE ↑0.84820.84750.84360.81010.82790.82860.84280.8503
LLM judge (Sonnet 5.5), score 0–100 ↑73.466.960.358.560.670.471.673.4
LLM judge, translations with a critical error ↓2.0%3.8%6.2%7.4%7.8%3.2%2.0%1.4%
Decode speed, tok/s (M4 Pro, 8-bit MLX) ↑61147217218146616128

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 3.3B α73.42.0%
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%
CAT-3.3B71.62.0%
CAT-7B73.41.4%
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%

rikai 3.3B α performs particularly well on figurative speech, such as idioms and metaphors.

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-3.3B-alpha", allow_patterns="mlx-8bit/*") + "/mlx-8bit"
model, tok = load(path)
causal_mask = llama.create_attention_mask

def prefix_mask(h, *a, **k):   # every prompt token sees the whole prompt; the first token sees only itself
    i = mx.arange(h.shape[1]); return (i[:, None] > 0) | (i[None, :] == 0)

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 = prefix_mask            # 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("駅前の新しいパン屋、朝七時から開いてるらしいよ。"))
# Apparently, the new bakery near the station opens at 7 a.m.

llama.cpp / GGUF. The GGUFs (gguf/) run causally: llama.cpp's non-causal mode doesn't reproduce the prefix mask, and they land about level with the MLX builds (on a 50-item gate sample, chrF 51.0 for Q8_0 and 50.7 for Q4_K_M, against 50.8 for MLX 8-bit with the prefix mask and 50.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-3.3B-alpha", "gguf/rikai-jp-eng-Bench-265-3.3B-alpha-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.
  • Qwen3.8-Flash-Next by Alibaba and Hy-MT2-7B by Tencent: the teachers.
  • 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
Ревизия весов
69b7100

0 моделей