You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I’m trying to understand how ubatch sizes impact inference performance on Android devices. I’ve verified that when using the GPU for inference, different ubatch sizes result in varying performance on my Xiaomi 14 Pro. However, when using the CPU, the ubatch size doesn’t seem to affect performance significantly.
In my view, a larger ubatch size allows for the calculation of more tokens at once, but it also requires a larger memory allocation to store temporary variables. I'm curious why the performance on the CPU shows almost no difference with different ubatch sizes when all other settings remain the same.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m trying to understand how ubatch sizes impact inference performance on Android devices. I’ve verified that when using the GPU for inference, different ubatch sizes result in varying performance on my Xiaomi 14 Pro. However, when using the CPU, the ubatch size doesn’t seem to affect performance significantly.
In my view, a larger ubatch size allows for the calculation of more tokens at once, but it also requires a larger memory allocation to store temporary variables. I'm curious why the performance on the CPU shows almost no difference with different ubatch sizes when all other settings remain the same.
CPU
GPU
Beta Was this translation helpful? Give feedback.
All reactions