Measured on device on earlier files (edge-compat, sarashina2.2-1b-instruct-v0.1-int4): Galaxy S26 · LiteRT-LM 0.16.0 · GPU · decode 27.4 tok/s · prefill 592 tok/s · TTFT 580 ms · all 1066 ops delegated (2026-09-02); Mac Studio M4 Max · LiteRT-LM 0.16.0 · GPU · decode 159.4 tok/s · prefill 3578 tok/s · TTFT 88 ms (2026-09-02); Galaxy S26 · LiteRT-LM 0.16.0 · CPU · decode 13.5 tok/s · prefill 84 tok/s · TTFT 3.90 s (2026-09-02). Record: https://github.com/john-rocky/edge-compat/blob/main/cards/sarashina2.2-1b-instruct-v0.1-int4/CARD.md

Measured on device on earlier files (edge-compat, sarashina2.2-1b-instruct-v0.1-int8): Galaxy S26 · LiteRT-LM 0.16.0 · GPU · decode 23.7 tok/s · prefill 586 tok/s · TTFT 590 ms · all 1066 ops delegated (2026-09-02); Mac Studio M4 Max · LiteRT-LM 0.16.0 · GPU · decode 146.4 tok/s · prefill 3554 tok/s · TTFT 90 ms (2026-09-02); Galaxy S26 · LiteRT-LM 0.16.0 · CPU · decode 13.3 tok/s · prefill 168 tok/s · TTFT 1.99 s (2026-09-02). Record: https://github.com/john-rocky/edge-compat/blob/main/cards/sarashina2.2-1b-instruct-v0.1-int8/CARD.md

sarashina2.2-1b-instruct-v0.1 — LiteRT-LM

Try it in your browser: the LiteRT-LM Web chat demo loads sarashina2.2-1b-instruct-v0.1_int4.litertlm from this repo's web branch (904 MB download) and runs it with WebGPU. That branch keeps the files from before the 2026-11-15 entry below.

sbintuitions/sarashina2.2-1b-instruct-v0.1(SB Intuitions の日本語 LLM)を、Google の LiteRT-LM ランタイム用 .litertlm 形式に変換したものです(2026-11-14 に別のスクリプトで prefill / decode のグラフを GPU 向けに書き換えました。重みは同じです)。スマートフォン・PC の CPU / GPU 上で、ネット接続なしに日本語チャットが動きます。Galaxy S26 の GPU では、int8 のファイルが 1 秒あたり 37.8 トークンを生成し、1,024 トークンを 714 トークン/秒で prefill します(LiteRT-LM v0.19.0、2026-11-14)。動作確認は litert-lm 0.16.x で行いました。書き換えの後のファイルは litert-lm 0.19.0〜0.19.2 と LiteRT-LM v0.19.0 のソースから組んだ Android 版で確かめました。

sarashina2.2 は SB Intuitions が日本語向けに事前学習・指示学習した Llama 型の密モデル(24 層・hidden 1792・GQA 16:8・語彙 102,400(untied))で、思考(reasoning)チャネルを持たない汎用チャットモデルです。公式カードの日本語ベンチマークは Elyza-tasks-100 2.88 / Japanese MT Bench 5.09。ライセンスは MIT。

ファイル 量子化 サイズ
sarashina2.2-1b-instruct-v0.1_int8.litertlm int8 dynamic(線形層 + 埋め込み) 1506 MB
sarashina2.2-1b-instruct-v0.1_int4.litertlm int4 blockwise-32 + OCTAV(線形層)、埋め込みは int8 905 MB

まず int8 を推奨します。 bf16 と同等の精度(JCQA 76 vs bf16 75)で、すべての検査で満点でした(以前のファイルで測定)。int4 も JCQA では落ちず(77、以前のファイル)、ファイルは約 40% 小さく(905 MB)、Galaxy S26 の GPU では int8 の 37.8 トークン/秒に対して 50.5 トークン/秒で生成します(書き換えの後のファイル)。一方、CPU の prefill は以前のファイルで 2 倍以上遅くなりました。GPU で動かす・容量を抑えたい場合は int4、CPU 中心なら int8 が向きます。

動作確認

以下の 5 項目は以前のファイル(2026-11-15 より前)で行いました。書き換えの後のファイルの検査は最後の項目です。

  • Mac の 8 問の検査(Apple M4 Max、litert-lm 0.16 系、1 問 1 プロセス、greedy): 英語 8 問 = int8 CPU 8/8 / GPU 8/8、int4 CPU 8/8 / GPU 8/8。日本語 8 問(同じ 8 検査を日本語で: 計算・首都・反対語・曜日数・英訳・掛け算・小数比較・富士山の県)= int8 CPU 8/8 / GPU 8/8、int4 CPU 8/8 / GPU 8/8。bf16 の PyTorch 参照は英語 8/8 / 日本語 7/8 — 英語の取りこぼしは元モデル由来です(bf16 も「merci」と韻の問題を外します)。どの実行でも反復・特殊トークン垂れ流しなし。
  • 絵文字・異体字のストリーミング: 「😀」「𠮷」「☔」を含む文を復唱させ、1 トークンずつのデコードで U+FFFD(文字化け)が出ないことを 4 回の実行すべてで確認(この語彙は絵文字を 4 個のバイトトークンに分けるため、逐次デコードの検査が要ります)。
  • トークナイザ一致: 埋め込んだ HF tokenizer.json をエンジン側で tokenize し、HF 側と 7 種のテスト文字列(特殊トークン文字列・日本語・混在・絵文字/異体字・Latin-1・空白・①㈱〒)で ID 列が完全一致。
  • マルチターン(3 ターン日本語、python API、greedy): 4 バンドル全てで空応答・特殊トークン漏れなし。
  • Galaxy S26(SM-S942Q、Adreno、litert_lm_advanced_main v0.16.0 リリースキット): 日本語プロンプト「日本の首都はどこですか?」に GPU / CPU の両方で「東京」と回答。GPU は全 11 の prefill signature と decode グラフが LITERT_CL に完全委譲(prefill_2〜1024 は 1066/1066 ノード、prefill_1 は 947/947、decode は 975/975、XNNPack への差し戻しゼロ)。
  • 書き換えの後のファイル(2026-11-14〜15): Mac(Apple M4 Max、litert-lm 0.19.2 の CPU、1 スレッド、top-k 1)で、4 つのプロンプトへの返答が置き換え前のファイル(Hub の 63055dcf にあったファイル)とバイト単位で同じ(int8・int4 とも)。英語 8 問(1 問 1 プロセス)は、Mac(litert-lm 0.19.2)の GPU で両ファイル 8/8(int8・int4)、CPU で int8 は両ファイル 8/8、int4 は両ファイル 7/8(どちらも「thank you」のフランス語を外す)。Pixel 11 Pro の GPU で両ファイル 8/8(int8・int4)、Galaxy S26 の GPU で書き換えの後のファイル 8/8(int8・int4)。スマートフォンの GPU では、int4 の「thank you」のフランス語への返答が「Merci」の前に意味の違う語(「Bien sûr」「D'accord」など)を挙げます(Pixel 11 Pro では置き換え前のファイルも同じ。返答に期待の答えが入っていれば正解と数えています)。Galaxy S26 と Pixel 11 Pro の GPU(LiteRT-LM v0.19.0)では 12 のグラフすべてが LITERT_CL に完全委譲されました(prefill_2〜1024 は 1087/1087 ノード、prefill_1 は 968/968、decode は 998/998)。

精度 — JCommonsenseQA(JGLUE v1.3 valid、先頭 100 問、greedy)

質問と 5 択を提示し「選択肢の文字列だけを答えよ」とした自前ハーネスの数字です(正解文字列が含まれ、かつ他の選択肢が先に出ていなければ正解)。このハーネス内でのみ比較可能で、公表されている JGLUE スコアとは比べられません。

構成 正解数
PyTorch bf16(参照、MPS) 75/100
LiteRT int8(CPU) 76/100
LiteRT int4 block-32(CPU) 77/100

使い方

litert-lm run ./sarashina2.2-1b-instruct-v0.1_int8.litertlm --prompt "日本の首都はどこですか? 簡潔に答えてください。"

# GPU
litert-lm run ./sarashina2.2-1b-instruct-v0.1_int8.litertlm --backend gpu --cache no --prompt "海について一文で書いてください。"

バンドルはモデル公式のチャット書式(<|user|>…</s><|assistant|>…</s>、system は <|system|>…</s>)を構造化テンプレートとして内蔵し、停止トークン </s>(id 2)を宣言しています。KV キャッシュ上限 4096 トークン、prefill signature は 1〜1024 の 11 段。

Android: Google AI Edge Gallery にこのリポジトリをインポート(またはファイルを端末に置いてローカルインポート)して、日本語で会話できます。

性能

Galaxy S26 — GPU と CPU

ファイル バックエンド Prefill(1,024 トークン) Decode TTFT ピーク(VmHWM)
int8 GPU(LiteRT GPU、prefill と decode のグラフの全ノード)、iteration 2–3 714 tok/s 37.8 tok/s 1.46 s 0.93 GB
int8 CPU(XNNPACK)、iteration 1 443 tok/s 12.1 tok/s 2.40 s 3.15 GB
int8 CPU(XNNPACK)、iteration 2 231 tok/s 10.4 tok/s 4.52 s 3.15 GB
int8 CPU(XNNPACK)、iteration 3 230 tok/s 10.4 tok/s 4.55 s 3.15 GB
int4 GPU(LiteRT GPU、全ノード)、iteration 2–3 729 tok/s 50.5 tok/s 1.43 s 1.04 GB

Samsung Galaxy S26(SM-S942Q / SM8850、Android 16)、LiteRT-LM v0.19.0 のソース(commit 771b06e1。v0.19.0 のタグは次の commit にあり、その commit は Package.swift と README.md だけを変えます)から作った litert_lm_advanced_main、--benchmark --benchmark_prefill_tokens=1024 --benchmark_decode_tokens=256 --max_num_tokens=2048。1 回の実行ごとに新しいプロセスで、1,024 トークンの prefill と 256 トークンの生成を 3 回(3 iteration)行います。GPU の行は 2 回の実行の iteration 2–3 の中央値です(int8 は 2026-11-14、int4 は 2026-11-15)。CPU は int8 だけを測りました(2026-11-15)。CPU の実行はどれも、端末の熱の状態(Android の thermal status、0 = なし)が 1 で CPU のクロック上限がない状態から、153〜154 秒の休みの後に始まりました。CPU では iteration 1 が 2・3 より速いので、iteration ごとに 2 回の実行の中央値を出しています。数えた 4 回の CPU の実行とも、端末は 2〜4 秒で 2 つの CPU クラスタのクロック上限を下げ始め、20〜22 秒で 1.56 / 1.50 GHz にして、実行の終わりまでそのままです。iteration 1 は上限が下がる途中で走ります。int4 の CPU は書き換えの後のファイルでは測っていません。

ピークはプロセスの VmHWM です。CPU では数えた 2 回で 3.13〜3.15 GB でした(置き換え前のファイルの 2 回は 3.16〜3.18 GB)。VmHWM は GPU ドライバの持つメモリを数えません。端末の GPU の割り当てカウンタ(kgsl_page_alloc)は、GPU の実行中に int8 で 2.81 GB、int4 で 2.25 GB 増えました(置き換え前のファイルは int8 2.81 GB、int4 2.26 GB)。

この端末では、int8 の GPU が CPU の 3.1〜3.6 倍の速さで生成し、1.6〜3.1 倍の速さで prefill するので、litertlm_manifest.json は flagship 級の Android に gpu を勧めます。この推奨はこの端末だけによります(下の Pixel 11 Pro では CPU を測っていません)。

各数字の元になった実行と、以前のファイルの Galaxy S26 の表: MEASUREMENTS.md。

Pixel 11 Pro — GPU

Pixel 11 Pro の GPU(PowerVR、Android 17、Galaxy S26 と同じ LiteRT-LM v0.19.0 のビルドと同じ負荷)では、int8 は 21.1 トークン/秒で生成し(置き換え前のファイルの 14.5 より 46% 速い)、1,024 トークンを 618 トークン/秒で prefill します(前の 567 より 9% 速い)。int8 は各ファイル 1 回の実行の値です(残りの 2 回は端末の熱の状態(thermal status)が 1 のまま始まったので数えていません)。int4 は 22.6 トークン/秒で生成し(前の 15.3 より 48% 速い)、611 トークン/秒で prefill します(前の 562 より 9% 速い)。英語の短い 8 問は、int8・int4 とも両ファイルが 8 問とも正解しました。

以前のファイル

Pixel 8a(Tensor G3、Mali-G715、8 GB、以前のファイル、litert_lm_advanced_main v0.16.0 のリリースキット、205 トークンのプロンプト、cold 2 回、2026-09-07): int8 CPU は prefill 95–98 tok/s / decode 8.6–9.5 tok/s / TTFT 3.4 s / peak 2449 MB。GPU は未計測 — 1.5 GB の int8 は Mali GPU 上でファイルの約 4 倍のメモリを常駐させるため、8 GB 端末の予算を超えます。この端末クラスでは int8 を CPU で動かすのが litertlm_manifest.json の推奨です。

Apple M4 Max(以前のファイル、litert-lm benchmark 0.16.0、-p 256 -d 256 --runs 3 --cache no、待機状態のマシン、GPU の測定は 300 秒の休止の後):

ファイル バックエンド Prefill(256) Decode TTFT
int8 GPU 3554 tok/s 146.4 tok/s 0.090 s
int8 CPU 822 tok/s 35.1 tok/s 0.844 s
int4 GPU 3578 tok/s 159.4 tok/s 0.088 s
int4 CPU 336 tok/s 34.7 tok/s 0.922 s

iPhone 17 Pro の実測行は、BenchmarkApp(128 トークン、コールドスタート)で取得でき次第この節に追記します。アーキテクチャは素の Llama(attention のみ)で、iOS 固有の壁(単一セクション 2 GiB の mmap 上限)より十分小さいファイルです。

変換メモ

litert-torch 0.9.3 / transformers 5.14.1 / ai-edge-quantizer のリリース版のみで変換しました(再現スクリプト: hf-to-litertlm)。2026-11-14 に prefill / decode のグラフを公開のスクリプトで書き換えました(下の 2026-11-15 の項)。重みはこのスタックが書いたままです。

  • トークナイザは vendor の tokenizer.model ではなく HF tokenizer.json を埋め込んでいます。 sarashina の SentencePiece モデルは <|user|> <|assistant|> <|system|> </s> を CONTROL 片として持ち、素の sentencepiece は CONTROL 片を文字列から一致させません(<|user|> が < | user | > の 5 片になる)。HF fast tokenizer は added token として 1 ID に一致させます。
  • BOS を前置しません。 tokenizer_config は add_bos_token: false で公式テンプレートも <s> を出しませんが、exporter は bos_token から start_token を書いてしまいます。bf16 で同じプロンプトに <s> を付けると 0.5b は 8 問の検査を英語 6→5、日本語 8→7 に落としたため、バンドルには start_token を入れていません。
  • チャットテンプレートは公式 jinja と同じ文字列を出す構造化 prefix/suffix(system / user / assistant)。tool-calling 分岐は含みません。
  • 量子化は export 時(int8 = dynamic_wi8_afp32、int4 = blockwise-32 + OCTAV、埋め込み int8)。後処理なし。

2026-11-15 — GPU 向けのグラフ(重みは同じ)

2 つのファイルの prefill / decode のグラフを、litert-torch が --apply_gpu_composites で書く GPU の形にしました。層ごとに 1 つの odml.cache_update が KV キャッシュを書き、odml.runtime_bmm が attention の積を計算します。重みと、そのグラフの外のすべてのセクションは置き換え前のファイルとバイト単位で同じです。int8: sha256 7f81c3d5…(1,504,821,248 B)→ 6b7378cd…(1,505,722,368 B)。int4: 4b28022b…(903,757,824 B)→ 141207ee…(904,658,944 B)。Mac では、CPU(litert-lm 0.19.2、1 スレッド、top-k 1 の greedy)で 4 つのプロンプトへの返答が置き換え前のファイルとバイト単位で同じで、litert-lm 0.19.0〜0.19.2 の CPU でも 1 つのプロンプトへの返答が同じです。GPU では両ファイルともそのプロンプトに答えます。Galaxy S26 の GPU(LiteRT-LM v0.19.0、前・新・新・前の順に続けて測定): int8 は decode 24.1 → 37.8 トークン/秒、1,024 トークンの prefill 657 → 714 トークン/秒(置き換え前のファイルの 1 回目は端末の熱の状態(thermal status)が 1 のまま始まったので数えていません)。int4 は decode 28.2 → 50.5、prefill 684 → 729。Pixel 11 Pro の GPU: int8 は decode 14.5 → 21.1、prefill 567 → 618(各ファイル 1 回の実行)。int4 は decode 15.3 → 22.6、prefill 562 → 611。Galaxy S26 の CPU(int8、warm-up 1 回の後、同じ順): 各 iteration の中央値で、prefill は 0.7〜1.6% 速く、decode は 0.4% 遅い〜0.7% 速い範囲です。手順: REPRODUCE.md。このファイルで測ったもの: 冒頭の速さ、ファイルの表の大きさ、推奨の段落の Galaxy S26 の数、動作確認の最後の項目、性能の Galaxy S26 と Pixel 11 Pro の節、この項。それ以外の数と検査は以前のファイルで測りました。

Known runtime issues

External weights (since 2026-10-30). In sarashina2.2-1b-instruct-v0.1_int4.litertlm and sarashina2.2-1b-instruct-v0.1_int8.litertlm, the weights sit in a TFLiteWeights section at the end of the file (LiteRT's external weights) instead of inside the model graph. On Android, the GPU path needs LiteRT-LM 0.19.0 or later: the GPU engine of the v0.18.0 and v0.18.1 Android builds crashes (SIGSEGV) on such a file (LiteRT-LM#3986). The earlier files with the weights inside the graph stay at revision 9b320e8.

On LiteRT-LM releases before 0.17.0 (read in the source of 0.10.1 to 0.16.1), an answer whose last punctuation mark is a token of its own, such as a . or ? after a word, arrives without that mark: these files carry </s> with each of 13 characters in front (12 punctuation marks and a space) as stop sequences next to </s> alone, so the runtime holds the mark back to see whether </s> follows, and when the answer ends there the held mark is never written. From LiteRT-LM 0.17.0 on (read in the source of 0.17.0 to 0.18.1) sarashina2.2-1b-instruct-v0.1_int4.litertlm still drops all 13 and sarashina2.2-1b-instruct-v0.1_int8.litertlm keeps : and ] and drops the other 11: the mark and </s> complete two stop sequences at the same token, </s> alone and the one with the mark, the runtime records the one that comes later in the file's stop list (for </s> alone, its first entry when the file lists it twice), and it writes the held mark only when that is </s> alone. Not measured on these files: this follows from the runtime's source read with these files' stop list and tokenizer; the drop on releases before 0.17.0 was seen with LiteRT-LM 0.16.1 on a Galaxy S26, on another bundle with punctuated stop sequences.

On LiteRT-LM 0.18.1 and 0.19.1, once a message fails because it does not fit in the context window, every later message in that conversation fails as well (the next one with Task failed with state: 7). Start a new conversation after such an error.

ライセンスと変更点

元モデルと同じ MIT License(Copyright (c) 2025 SB Intuitions)で配布します。元モデルからの変更点: safetensors bf16 の重みを LiteRT flatbuffer に変換し上記のとおり量子化、トークナイザとチャット書式を .litertlm に同梱。2026-11-14 に prefill / decode のグラフを変換メモに書いた GPU の形に書き換えました(重みは同じ)。学習・微調整は行っていません。元モデルの制限(安全性学習が限定的である旨)はそのまま当てはまります。


sarashina2.2-1b-instruct-v0.1 — LiteRT-LM (English)

sbintuitions/sarashina2.2-1b-instruct-v0.1 (SB Intuitions' Japanese LLM) converted to the LiteRT-LM (.litertlm) format for on-device inference with Google's LiteRT-LM runtime (on 2026-11-14 a separate script rewrote the prefill/decode graph for the GPU; weights unchanged): on a Galaxy S26 GPU the int8 file decodes 37.8 tokens/s and prefills 1,024 tokens at 714 tokens/s (LiteRT-LM v0.19.0, 2026-11-14). Tested on litert-lm 0.16.x; the rewritten files on litert-lm 0.19.0 to 0.19.2 and on LiteRT-LM v0.19.0 built from source for Android. A plain Llama-architecture dense model (24 layers, hidden 1792, GQA 16:8, 102,400-entry untied vocab), Japanese-first, non-thinking; MIT license.

File Recipe Size
sarashina2.2-1b-instruct-v0.1_int8.litertlm int8 dynamic on linears + embedding 1506 MB
sarashina2.2-1b-instruct-v0.1_int4.litertlm int4 blockwise-32 + OCTAV on linears, int8 embedding 905 MB

int8 is the recommended file — bf16-class accuracy (JCQA 76 vs bf16 75) and a perfect score on every check, measured on earlier files. int4 scores as well on JCQA (77, earlier file), is ~40% smaller (905 MB) and, with the rewritten graph, decodes 50.5 tokens/s on the Galaxy S26 GPU against int8's 37.8; on the earlier files its CPU prefill was more than 2× slower — pick int4 for GPU / size-constrained deployments, int8 for CPU-centric ones.

Correctness. On earlier files: 8-question sanity check (Apple M4 Max, litert-lm 0.16 lineage): English int8 CPU 8/8 / GPU 8/8, int4 CPU 8/8 / GPU 8/8; the same 8 checks in Japanese int8 CPU 8/8 / GPU 8/8, int4 CPU 8/8 / GPU 8/8; bf16 reference English 8/8 / Japanese 7/8 (the English misses are the checkpoint's own). No degeneration in any run. Emoji / rare-kanji streaming test (😀 𠮷 ☔): no U+FFFD in any of the 4 runs. Engine-vs-HF tokenizer parity: identical ids on 7 test strings. 3-turn Japanese multi-turn: pass on all four bundles. Galaxy S26: both files answer a Japanese capital question correctly on GPU and CPU, with full OpenCL delegation (every node of all 11 prefill signatures and the decode graph on LITERT_CL: 1066/1066 for prefill_2–1024, 947/947 for prefill_1, 975/975 for decode; zero XNNPack fallback). With the rewritten graph: on a Mac (litert-lm 0.19.2, CPU, 1 thread, top-k 1) the replies to 4 prompts are byte-identical to the previous files' (int8 and int4). The English 8 questions, one process each: 8/8 with both files on the Mac GPU (int8 and int4); on the Mac CPU 8/8 with both int8 files and 7/8 with both int4 files (both miss the French "thank you"); 8/8 with both files on a Pixel 11 Pro GPU (int8 and int4) and with the new files on a Galaxy S26 GPU. On the phones' GPUs the int4 reply to the French "thank you" question lists phrases that do not mean thank you ("Bien sûr", "D'accord") before "Merci" (on the Pixel 11 Pro the previous file does too; a reply counts as correct when it contains the expected answer). On both phones' GPUs (LiteRT-LM v0.19.0) every node of all 12 graphs runs on LITERT_CL (1087/1087 for prefill_2–1024, 968/968 for prefill_1, 998/998 for decode).

Accuracy — JCommonsenseQA (JGLUE v1.3 valid, first 100, greedy, own harness; comparable only within this table): bf16 75/100 · int8 76/100 · int4 77/100.

Usage. litert-lm run ./sarashina2.2-1b-instruct-v0.1_int8.litertlm --prompt "…" (add --backend gpu --cache no for the GPU). The bundle embeds the model's own chat markup (<|user|>…</s><|assistant|>) as structured prompt templates and declares stop </s>; KV budget 4096, prefill signatures 1–1024. Android: import into Google AI Edge Gallery.

Performance — see the Japanese tables above. Galaxy S26 (litert_lm_advanced_main built from LiteRT-LM v0.19.0, 1,024-token prefill and 256 decode tokens, 3 iterations per run): GPU int8 714 tok/s prefill / 37.8 decode and int4 729 / 50.5 (the median of iterations 2–3 over 2 runs); CPU int8 443 / 12.1 in iteration 1 and 230–231 / 10.4 in iterations 2–3 (each CPU run started at thermal status 1, Android's "light" level where 0 is none, with no clock cap, after 153–154 s of rest; the phone then caps both CPU clusters at 1.56 / 1.50 GHz 20–22 s into each run). int4 was not measured on the CPU after the rewrite. On this phone the int8 GPU decodes 3.1–3.6× and prefills 1.6–3.1× as fast as the CPU, so this repo's litertlm_manifest.json recommends gpu for flagship-class Android; that rests on this phone alone (the Pixel 11 Pro CPU was not measured). Pixel 11 Pro GPU, same build and workload: int8 618 / 21.1 (one run of each file; the other two started at thermal status 1), int4 611 / 22.6. Earlier files: Galaxy S26 rows from litert_lm_advanced_main v0.16.0 (205-token prompt, 2 runs) in MEASUREMENTS.md; Pixel 8a int8 CPU row (the same v0.16.0 kit and prompt, two cold runs, 2026-09-07): 95–98 tok/s prefill / 8.6–9.5 decode, GPU not attempted on that 8 GB phone; Mac rows from litert-lm benchmark -p 256 -d 256 --runs 3 --cache no; iPhone 17 Pro rows will be appended once measured.

Conversion notes. Released litert-torch 0.9.3 / transformers 5.14.1 wheels; reproduction in hf-to-litertlm. On 2026-11-14 the prefill/decode graph was rewritten with a public script (the 2026-11-15 entry below); the weights are still the ones these wheels wrote. The bundle embeds the HF tokenizer.json rather than the vendor tokenizer.model (sarashina's SentencePiece model types every chat special as CONTROL, which a bare sentencepiece encoder never matches from text — <|user|> would become 5 pieces). No start_token is written: add_bos_token is false and the official template emits no <s>; prepending one measurably hurts the 0.5b in bf16 (English 6→5, Japanese 8→7 on the 8-question check). Quantization at export time, no post-processing.

2026-11-15 — GPU graph (weights unchanged). The prefill/decode graph of both files now has the GPU form litert-torch writes with --apply_gpu_composites: one odml.cache_update per layer writes the KV cache, and odml.runtime_bmm runs the attention products. Every weight, and every section outside that graph, is byte-identical to the previous files. int8: sha256 7f81c3d5… (1,504,821,248 B) → 6b7378cd… (1,505,722,368 B); int4: 4b28022b… (903,757,824 B) → 141207ee… (904,658,944 B). On a Mac, the CPU replies to 4 prompts are byte-identical to the previous files' (litert-lm 0.19.2, 1 thread, greedy decoding with top-k 1), and so is the CPU reply to one prompt on litert-lm 0.19.0 to 0.19.2; on the GPU both files answer that prompt. Galaxy S26 GPU (LiteRT-LM v0.19.0, runs in the order previous, new, new, previous): int8 decode 24.1 → 37.8 tokens/s and 1,024-token prefill 657 → 714 tokens/s (the previous file's first run started at thermal status 1 and is not counted); int4 decode 28.2 → 50.5 and prefill 684 → 729. Pixel 11 Pro GPU: int8 decode 14.5 → 21.1 and prefill 567 → 618 (one run of each file); int4 15.3 → 22.6 and 562 → 611. Galaxy S26 CPU (int8, after one warm-up run, the same order): the per-iteration medians of the 1,024-token prefill are 0.7–1.6 % faster and those of decode between 0.4 % slower and 0.7 % faster. Procedure: REPRODUCE.md. Measured on these files: the speed in the opening paragraph, the file sizes, the Galaxy S26 numbers in the recommendation, the "With the rewritten graph" sentences, the Galaxy S26 and Pixel 11 Pro sections and this entry. Every other number and check on this card was measured on earlier files.

License and changes. MIT (inherited; Copyright (c) 2025 SB Intuitions). Changes from the original work: weights converted from safetensors bf16 to LiteRT flatbuffers and quantized as described; tokenizer and chat markup repackaged into the .litertlm; on 2026-11-14 the prefill/decode graph was rewritten into the GPU form described under Conversion notes, with the weights unchanged. No training or fine-tuning.

Downloads last month
528
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for litert-community/sarashina2.2-1b-instruct-v0.1

Collection including litert-community/sarashina2.2-1b-instruct-v0.1