[Lane 4 · kotlin-core] tokenizer.json parity — fixture-gated jvmTest replaying the goldens through TokenizerFactory.fromTokenizerJson
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 75/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- kotlin
- Ambito
- machine-learning, testing
Direzione di ricerca
Start by reading QwenByteLevelBpeTokenizerFixtureTest.kt and the downloadQwenTokenizerFixtures task in skainet-io-core/build.gradle.kts; the issue gives both as templates. Add TokenizerJsonGoldenParityTest.kt and a task that downloads and verifies the two golden fixtures, then run the listed Gradle command. Done means the test skips when fixtures are absent and, with fixtures present, checks vocabulary size and encoded IDs while reporting text, expected IDs and tokens, and actual IDs.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Sub-issue of #1321 (HF tokenizer.json parity for BPE encoders).
Lane: 4 · Ground truth / CI
Skill needed: Kotlin and Gradle. You will copy an existing test file and an existing download task; no tokenizer internals needed.
Size: s (a few hours)
Blocked by: the golden-generation lane (needs the JSON files). Can be merged before the Kotlin fixes — it is allowed to fail on the not-yet-fixed rows if you mark them, see Notes.
What to do
- Copy QwenByteLevelBpeTokenizerFixtureTest.kt to
TokenizerJsonGoldenParityTest.ktin the samejvmTestpackage. Keep the "skip with a printed notice when the fixture is absent" behaviour. - Copy the
downloadQwenTokenizerFixturestask in skainet-io-core/build.gradle.kts#L148-L153 into adownloadTokenizerJsonGoldenFixturestask that fetches the two Layatokenizer.jsonfiles intobuild/test-fixtures/tokenizer-goldens/<name>/tokenizer.jsonfrom the HubresolveURL at the pinned revision, and verifies the SHA-256 stored in the golden JSON. - In the test, for each golden JSON in
src/jvmTest/resources/tokenizer-goldens/: load the matchingtokenizer.jsonthroughsk.ainet.io.tokenizer.TokenizerFactory.fromTokenizerJson, assertvocabSize == vocab_size_with_added, then for every case assertencode(text).toList() == idswith a message that prints the text, the expected and the actual ids and the expected token strings (thetokensarray) — that is what makes a failure diagnosable without Python. - Parse the golden JSON with
kotlinx.serialization.json(already a dependency of the module). - Run
./gradlew :skainet-io:skainet-io-core:downloadTokenizerJsonGoldenFixtures :skainet-io:skainet-io-core:jvmTest --tests '*TokenizerJsonGoldenParityTest*'.
Acceptance
- Test self-skips when the fixtures are absent (CI without network stays green)
- With fixtures present and all sibling lanes merged, every case in both goldens passes
- Failure output shows text, expected ids + tokens, actual ids
- Result reported back on #1321
Notes
To merge this before the fixes land, support an optional "expectedToFail": "<issue url>" field per case in the golden JSON and turn those cases into "assert it still fails, otherwise tell the developer to remove the marker" — the same canary pattern #912 describes. Then each fix lane removes its markers in its own PR, and the test is the progress bar.
- Lingua principale
- Kotlin
- Stelle
- 52
- Fork
- 15
- Merge medio
- 1g 8h
- PR unite (30g)
- 37
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di SKaiNET-developers/SKaiNET
-
coding good first issue platform size:xs skill:js sub-issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
SKaiNET-developers/SKaiNET#1232 ·
I maintainer di solito rispondono entro 1 giorno
-
skeep tracking
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
SKaiNET-developers/SKaiNET#1331 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
assessment size:s skill:review sub-issue
Difficoltà 4/5 1-2 giorni Idoneità per principianti 18/100
SKaiNET-developers/SKaiNET#1330 ·
I maintainer di solito rispondono entro 1 giorno
-
documentation good first issue size:s skill:docs sub-issue
Difficoltà 3/5 1-2 giorni Idoneità per principianti 78/100
SKaiNET-developers/SKaiNET#1329 ·
I maintainer di solito rispondono entro 1 giorno
-
coding size:m skill:kotlin-core sub-issue
Difficoltà 4/5 1-2 giorni Idoneità per principianti 55/100
SKaiNET-developers/SKaiNET#1326 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di SKaiNET-developers/SKaiNET
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
saisaharsh3/Leftovers#13 · 1 commento ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 67/100
navikt/esyfo-narmesteleder#700 ·
I maintainer di solito rispondono entro 1 giorno
-
A2A agent card served at agent.json, but A2A 0.3.0 uses agent-card.jsonForse già presa @hadirsa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
embabel/embabel-agent#2142 ·
I maintainer di solito rispondono entro 1 giorno
-
bug feedback required
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
streetcomplete/StreetComplete#7275 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
Kotlin/kotlin-lsp#288 ·