Skip to content

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