Gemma 4 E2B multimodal: TextVQA accuracy about 18 pp below the same model in LiteRT-LM
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- ai-infra-agents, computer-vision, react-native, typescript
- Bereich
- machine-learning, mobile, performance
Rechercherichtung
Start by tracing how createLLMChatSession preprocesses image input for Gemma 4 E2B and compare its effective resolution with the LiteRT-LM bundle’s reported limit of 1024 px. Check whether the vision input resolution can be configured and inspect how generated control tokens are handled. Done means explaining or addressing the accuracy gap, documenting a higher-resolution option if supported, and checking that answers do not expose control tokens.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Description
On TextVQA (validation, 200 images, greedy decoding, maxNewTokens: 64) the Gemma 4 E2B omni .pte (XNNPACK 8da4w) scores:
- iPhone 17: 43.6 % (95 % CI 37.6-50.0)
- Galaxy S23: 42.8 % (36.7-49.4)
The same Gemma 4 E2B as a .litertlm bundle scores 59.5-62.0 % on the same 200 images and prompts.
The lost answers are mostly misread scene text, e.g. Casio for Macy's, 12.04 for 68.4, Four for 2, 3, 4. As far as we can tell the image is letterboxed to 640x448 before the vision encoder, while the LiteRT-LM bundle keeps up to 1024 px, so small text is gone before the model sees it.
Separately, one answer on the Galaxy S23 contained a leaked control token: Vacation<channel|>.
Expected: accuracy close to other runtimes for the same weights, or a documented way to use a higher input resolution.
Steps to reproduce
createLLMChatSessionwith the Gemma 4 E2B multimodal model from the registry and{ temperature: 0, topK: 1, enableThinking: false }.- Send
[{ kind: 'image', image }, question]for TextVQA validation images. - Score with the standard VQA accuracy.
Snack or a link to a repository
No response
React Native Executorch version
0.11.0 (code path re-checked in the 0.11.1 npm package)
React Native version
0.88.1 (Expo 58)
Platforms
Android, iOS
JavaScript runtime
No response
Workflow
No response
Architecture
No response
Build type
No response
Device
No response
Device model
iPhone 17 (iOS 26.5.2), Galaxy S23 (Android 16)
AI model
Gemma 4 E2B omni (XNNPACK 8da4w)
Performance logs
No response
Acknowledgements
Yes
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.8k
- Forks
- 102
- Ø Merge
- 2 T. 6 Std.
- Gemergte PRs (30 T.)
- 46
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
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 software-mansion/react-native-executorch
-
Require react-native-blob-util >=1.0.0 (Xcode 27 iOS build failure)Evtl. vergeben @msluszniak hat das vor 23 Tagen übernommen. Offendependencies platform: ios
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 78/100
software-mansion/react-native-executorch#1617 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Android: prebuilt libexecutorch.so SIGILLs on ARMv8.0 CPUs (unguarded LSE atomics in the JNI layer, one-line fix upstream)Evtl. vergeben @msluszniak hat das heute übernommen. Offenuser exp
software-mansion/react-native-executorch#1665 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Chat session: add `session.reset()` for stateless single-turn requestsEvtl. vergeben @barhanc hat das vor 1 Tag übernommen. Offenfeature request
software-mansion/react-native-executorch#1664 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
software-mansion/react-native-executorch#1663 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Selfie segmentation: single-channel mask is passed through sigmoid twiceEvtl. vergeben @barhanc hat das vor 1 Tag übernommen. Offenmodel
software-mansion/react-native-executorch#1660 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in software-mansion/react-native-executorch
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
check:failed streams:edit
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
iptv-org/iptv#60585 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug]: Critical path skips a child span that ends exactly when the next one startsEvtl. vergeben @Piyush4801 hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
jaegertracing/jaeger-ui#4865 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 90/100
anthropics/claude-code#112972 ·