[Lane 4 · kotlin-core] tokenizer.json parity — gated parity test replaying the goldens through both tokenizer.json entry points
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Read Gemma4TokenizerParityTest.kt for the self-skip pattern and llm-core/build.gradle.kts for the Gradle task entry point. Add TokenizerJsonGoldenParityTest.kt under llm-core/src/jvmTest/.../tokenizer/, then run the fixture download task and targeted jvmTest command from the issue. Done means both tokenizer JSON entry points are checked against every golden, expected failures are enforced, and the test skips with a notice when fixtures are unavailable.
索引モデルが issue の本文から書いたものです。
説明
Sub-issue of #471 (tokenizer.json parity gate).
Lane: 4 · Ground truth / CI
Skill needed: Kotlin and Gradle; you copy an existing self-skipping test. No tokenizer internals.
Size: s (a few hours)
Blocked by: the golden-generation lane (needs the JSON files)
What to do
- Copy the self-skip pattern of Gemma4TokenizerParityTest.kt into a new
llm-core/src/jvmTest/kotlin/sk/ainet/apps/llm/tokenizer/TokenizerJsonGoldenParityTest.kt. - Fixture location:
$TOKENIZER_GOLDEN_FIXTURES_DIR/<family>/tokenizer.json(environment variable; skip with a printed notice when unset). Add a Gradle taskdownloadTokenizerGoldenFixturesinllm-core/build.gradle.ktsthat reads each golden'srepo/revision/path, downloads the file from the HubresolveURL (honouringHF_TOKENfor gated repos) intobuild/test-fixtures/tokenizer-goldens/<family>/, and checks thesha256. Point the test at that directory by default. - For every golden and for both entry points —
TokenizerFactory.fromTokenizerJsonStringandGGUFTokenizer.fromTokenizerJson— assert either (a) every case'sencode(text) == ids, or (b) the entry point throwsUnsupportedTokenizerException(allowed only forfromTokenizerJsonString, see the fail-fast lane). Any other exception is a failure. The assertion message prints text, expected ids, expected token strings and actual ids. - Support an optional per-case
"expectedToFail": {"<entry point>": "<issue url>"}marker in the golden JSON: such a case must still fail, and the message tells the developer to remove the marker once it passes. This lets the test merge today and become the progress bar for the Lane 2 fixes and the engine lanes. - Run
./gradlew :llm-core:downloadTokenizerGoldenFixtures :llm-core:jvmTest --tests '*TokenizerJsonGoldenParityTest*'; add the task to thesmoke-reference.ymlworkflow's model-gated job if the maintainers agree (ask on the PR).
Acceptance
- Test self-skips without fixtures; passes with fixtures and the current markers
- Both entry points are exercised for every golden
- Marker mechanism documented in the test's KDoc
- Result reported back on #471
Notes
Gemma4TokenizerParityTest stays as is (it also checks atomic specials with hand-written ids); the new test is the general gate. Keep it in jvmTest: it needs the filesystem and network-fetched fixtures.
- 主要言語
- Kotlin
- スター
- 8
- フォーク
- 3
- 平均マージ
- 12時間 43分
- マージ済み PR(30日)
- 39
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
SKaiNET-developers/SKaiNET-transformers のほかの issue
-
documentation good first issue size:xs skill:docs sub-issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
SKaiNET-developers/SKaiNET-transformers#478 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement skill:kotlin-core
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
SKaiNET-developers/SKaiNET-transformers#502 ·
メンテナーはふだん 1 日以内に返信
-
Moonshine streaming: zero-audio frontend context at the utterance start corrupts transcripts対応中かも @michalharakal が今日担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
SKaiNET-developers/SKaiNET-transformers#500 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
SKaiNET-developers/SKaiNET-transformers#483 ·
メンテナーはふだん 1 日以内に返信
-
coding good first issue size:s skill:numerics sub-issue
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
SKaiNET-developers/SKaiNET-transformers#476 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
SKaiNET-developers/SKaiNET-transformers の issue をすべて見る
似ている issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
app
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
LawnchairLauncher/lawnicons#4180 ·
メンテナーはふだん 1 日以内に返信
-
afk-ok area:agents size:S
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
enorm-labs/event-junkie#3523 ·
メンテナーはふだん 1 日以内に返信
-
submit-adaption submit-adaption-pre
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
BetterAndroid/android-notification-icon-project#750 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信