Skip to content

Conversation

peardox
Copy link
Contributor

@peardox peardox commented May 14, 2025

All the data files live in one directory - this gets confusing and hard to manage

This PR enables the openvino and coreml data files to be in other places than the same location as the main model

The parameters may be passed via whisper_context_params as path_coreml and path_openvino. If these are not supplied the current normal all-in-one-place scheme remains but if passed then these directories can be anywhere.

Also I added a disable_coreml parameter. This allows you to build with coreml but disable it on demand - useful for testing and debugging. This is a very simple bypass that merely skips over the coreml init function which has the same practical effect of not having coreml at all

@peardox
Copy link
Contributor Author

peardox commented May 14, 2025

Note - the disable_coreml switch -noml in whisper-bench is due to some testing I did yesterday on a M1 Mac 8Gb
Rather usurprisingly ggml-large-v3 was a bit of a strech for that poor low-memory device. The M1 was a remote device - it hung during bench as a result od ANECompiler grabbing all the system resources.

disable_coreml will at least allow selectively switching off CoreML when using a large model with a small device

Comment on lines +14 to +16
std::string coreml_dir = "";
std::string openvino_dir = "";
bool disable_coreml = false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a good change - we should not pass backend-specific info through the libwhisper API.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--ov-e-device in Cli appears rather backend specific?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants