Model reference · open weights

t5-japanese

Available as managed deployment Embeddings sonoisa · community Embeddings 1 variants 115k dl/mo

t5-japanese is an open-weight embedding model from sonoisa. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released bysonoisa
TypeEmbedding models
TaskEmbeddings
Parameters (lead)223M
Context512 tokens
Runs withtransformers
Released2022-03-02
Popularity115k downloads / month
LicenceOpen weights

About

What t5-japanese is

This is a T5 (Text-to-Text Transfer Transformer) model pretrained on Japanese corpus.

次の日本語コーパス(約100GB)を用いて事前学習を行ったT5 (Text-to-Text Transfer Transformer) モデルです。

  • Wikipediaの日本語ダンプデータ (2020年7月6日時点のもの)
  • OSCARの日本語コーパス
  • CC-100の日本語コーパス

このモデルは事前学習のみを行なったものであり、特定のタスクに利用するにはファインチューニングする必要があります。 本モデルにも、大規模コーパスを用いた言語モデルにつきまとう、学習データの内容の偏りに由来する偏った(倫理的ではなかったり、有害だったり、バイアスがあったりする)出力結果になる問題が潜在的にあります。 この問題が発生しうることを想定した上で、被害が発生しない用途にのみ利用するよう気をつけてください。

SentencePieceトークナイザーの学習には上記Wikipediaの全データを用いました。

Read the full model card

転移学習のサンプルコード

https://github.com/sonoisa/t5-japanese

ベンチマーク

livedoorニュース分類タスク

livedoorニュースコーパスを用いたニュース記事のジャンル予測タスクの精度は次の通りです。 Google製多言語T5モデルに比べて、モデルサイズが25%小さく、6ptほど精度が高いです。

日本語T5 (t5-base-japanese, パラメータ数は222M, 再現用コード)

labelprecisionrecallf1-scoresupport
00.960.940.95130
10.980.990.99121
20.960.960.96123
30.860.910.8982
40.960.970.97129
50.960.960.96141
60.980.980.98127
71.000.991.00127
80.990.970.98120
accuracy0.971100
macro avg0.960.960.961100
weighted avg0.970.970.971100

比較対象: 多言語T5 (google/mt5-small, パラメータ数は300M)

labelprecisionrecallf1-scoresupport
00.910.880.90130
10.840.930.89121
20.930.800.86123
30.820.740.7882
40.900.950.92129
50.890.890.89141
60.970.980.97127
70.950.980.97127
80.930.950.94120
accuracy0.911100
macro avg0.910.900.901100
weighted avg0.910.910.911100

JGLUEベンチマーク

JGLUEベンチマークの結果は次のとおりです(順次追加)。

  • MARC-ja: 準備中
  • JSTS: 準備中
  • JNLI: 準備中
  • JSQuAD: EM=0.900, F1=0.945, 再現用コード
  • JCommonsenseQA: 準備中

免責事項

本モデルの作者は本モデルを作成するにあたって、その内容、機能等について細心の注意を払っておりますが、モデルの出力が正確であるかどうか、安全なものであるか等について保証をするものではなく、何らの責任を負うものではありません。本モデルの利用により、万一、利用者に何らかの不都合や損害が発生したとしても、モデルやデータセットの作者や作者の所属組織は何らの責任を負うものではありません。利用者には本モデルやデータセットの作者や所属組織が責任を負わないことを明確にする義務があります。

ライセンス

CC-BY SA 4.0

Common Crawlの利用規約も守るようご注意ください。

From the published model card. Full card on the HuggingFace links in the sidebar.

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys t5-japanese for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (t5-japanese below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"t5-japanese","input":"text to embed"}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms