-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android Inference is too slow #1070
Comments
GPU inference should be possible with CLBLAST, no? Might try that. |
Are you running the app in release mode? It improves the performance significantly. |
@Azeirah if someone is interested: |
FYI: maybe this helps. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, trying out the Android Implementation, it works well overall and thank you for this contribution.
However the inference time is incredibly slow, even for a few words it takes about 30 seconds to get a response which makes it unusable.
I am using the small model (I feel the accuracy of the tiny and base model are not up to par in different languages which is the use case in our scenario).
Is there any way to speed up the inference time? Is GPU inference possible on android for example?
For reference, I am using these parameters:
params.print_progress = false;
params.print_special = false;
params.print_realtime = false;
params.print_timestamps = false;
params.translate = false;
params.single_segment = false;
params.max_tokens = 32;
params.language = "auto";
params.n_threads = std::max(1, std::min(8, (int32_t) std::thread::hardware_concurrency()));
params.audio_ctx = 768;
params.speed_up = false;
// params.temperature_inc = params.temperature_inc;
// params.prompt_tokens = nullptr;
params.prompt_n_tokens = 0;
The text was updated successfully, but these errors were encountered: