Common resolution token counts
The following table shows the token counts for a single image for Qwen2.5 VL at different image resolutions:Resolution | Token Count |
---|---|
336×336 | 144 |
672×672 | 576 |
1024×1024 | 1,369 |
1280×720 | 1,196 |
1920×1080 | 2,769 |
2560×1440 | 4,641 |
3840×2160 | 10,549 |
Calculating exact token count for your images
You can determine exact token usage by processing your images through the model’s tokenizer. For instance, for Qwen2.5 VL, you can use the following code:1
Install dependencies
2
Tokenize your image
Tokenizing your image
Usage