Skip to content

test-opt: fix backend support check #15317

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 2 commits into from
Aug 15, 2025

Conversation

JohannesGaessler
Copy link
Collaborator

The tests in tests/test-opt were never activated in the llama.cpp repository until #13873 . The problem is that ggml_opt internally tries to allocate AdamW/SGD optimizer steps which are not supported in all backends. So it becomes necessary to check support for these optimizer steps ahead of time (otherwise the intentionally simple function ggml_opt_fit would need to be made overly complicated). This PR allocates simple test tensors for the ops in the test code, if the ops are not supported the tests are skipped.

@github-actions github-actions bot added the testing Everything test related label Aug 14, 2025
Co-authored-by: Georgi Gerganov <[email protected]>
@JohannesGaessler JohannesGaessler merged commit b07791a into ggml-org:master Aug 15, 2025
46 of 47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Everything test related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants