[Lane 4 · kotlin-core] tokenizer.json parity — gated parity test replaying the goldens through both tokenizer.json entry points
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 64/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Kotlin
- Sterne
- 8
- Forks
- 3
- Ø Merge
- 19 Std. 45 Min.
- Gemergte PRs (30 T.)
- 38
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus SKaiNET-developers/SKaiNET-transformers
-
documentation good first issue size:xs skill:docs sub-issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
SKaiNET-developers/SKaiNET-transformers#478 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
SKaiNET-developers/SKaiNET-transformers#483 ·
Maintainer antworten meist innerhalb von 1 Tag
-
coding good first issue size:s skill:numerics sub-issue
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
SKaiNET-developers/SKaiNET-transformers#476 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
moonshine stream: the final encoder window is zero-padded and the encoder has no attention maskOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
SKaiNET-developers/SKaiNET-transformers#458 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 30/100
SKaiNET-developers/SKaiNET-transformers#410 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in SKaiNET-developers/SKaiNET-transformers
Ähnliche Issues
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
"Check mod" buttonOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
yairm210/Unciv#15803 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement triaged
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 63/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug follow-up
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug 🐞 CI/CD ⚒️
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
valkey-io/valkey-glide#7370 ·
Maintainer antworten meist innerhalb von 1 Tag