executorch icon indicating copy to clipboard operation
executorch copied to clipboard

how can i use `tokenizer.json` instead of `tokenizer.model` for android demo app?

Open ujma1234 opened this issue 1 year ago • 2 comments

I want to run a Hugging Face model (e.g., Qwen3) on the Android demo app. Unlike LLaMA, these models only provide tokenizer.json instead of tokenizer.model.

How can I convert or otherwise use tokenizer.json as the tokenizer.bin required by the Android demo app? what’s the way to load tokenizer.json directly on Android?

cc @mergennachin @iseeyuan @lucylq @helunwencser @tarun292 @kimishpatel @jackzhxng

ujma1234 avatar Sep 02 '25 10:09 ujma1234

@kirklandsign do you know?

metascroy avatar Sep 02 '25 23:09 metascroy

@ujma1234 the Android app is able to directly load tokenizer.json, have you had any issues doing so?

jackzhxng avatar Sep 03 '25 14:09 jackzhxng