Skip to content

whisper : add option to use system-installed GGML #2887

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

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

peter277
Copy link
Contributor

Introduces a new CMake option, WHISPER_USE_SYSTEM_GGML (default: OFF), allowing users to use a system-installed GGML library instead of building the bundled one. When enabled, CMake attempts to find GGML using find_package(ggml REQUIRED). If GGML is not found, the build fails with an error.

If the option is disabled, the project falls back to using the bundled GGML.

Tested in an MSYS2 environment using GGML from the llama.cpp package as a shared library.

This change improves flexibility for packagers and advanced users who prefer system-wide GGML installations.

@ggerganov ggerganov merged commit 60b481d into ggml-org:master Mar 17, 2025
45 checks passed
@peter277 peter277 deleted the use-system-ggml branch March 17, 2025 10:52
buxuku pushed a commit to buxuku/whisper.cpp that referenced this pull request Mar 26, 2025
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