[Lane 4 · kotlin-core] tokenizer.json parity — gated parity test replaying the goldens through both tokenizer.json entry points
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 64/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Kotlin
- Estrellas
- 8
- Forks
- 3
- Merge medio
- 1 d 16 h
- PR fusionados (30 d)
- 48
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de SKaiNET-developers/SKaiNET-transformers
-
documentation good first issue size:xs skill:docs sub-issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
SKaiNET-developers/SKaiNET-transformers#478 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
enhancement skill:kotlin-core
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
SKaiNET-developers/SKaiNET-transformers#502 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
SKaiNET-developers/SKaiNET-transformers#483 ·
Los mantenedores suelen responder en 1 día
-
coding good first issue size:s skill:numerics sub-issue
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
SKaiNET-developers/SKaiNET-transformers#476 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
moonshine stream: the final encoder window is zero-padded and the encoder has no attention maskAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
SKaiNET-developers/SKaiNET-transformers#458 ·
Los mantenedores suelen responder en 1 día
Todos los issues de SKaiNET-developers/SKaiNET-transformers
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
mcnaveen/health-connect-webhook#110 ·
Los mantenedores suelen responder en 1 día
-
Delete all aboveAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
mjaakko/NeoStumbler#1307 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
No Wallpaper: Black and white theme changes makes fonts look weird on Home screen and App listAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
tanujnotes/Olauncher#770 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
-
[Submission] PayPalAbiertosubmit-adaption submit-adaption-pre
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
BetterAndroid/android-notification-icon-project#795 · 1 comentario ·
Los mantenedores suelen responder en 1 día