Skip to content
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

test: fix OPT_STEP_ADAMW for test-backend-ops #974

Merged
merged 1 commit into from
Sep 30, 2024

Conversation

JohannesGaessler
Copy link
Collaborator

Fixup for #966 .

When I tested GGML_OP_OPT_STEP_ADAMW I had mistyped the filter for test-backend-ops so I didn't notice that the test is broken. The problem is that the gradients for tensors are no longer being allocated unless a backward graph is constructed. This can simply be fixed by explicitly creating a tensor the gradients. Also I'm changing the interface for ggml_opt_step_adamw to accept a gradient tensor since the long term goal for ggml_tensor.grad is to remove it.

@JohannesGaessler JohannesGaessler merged commit 4de6ee8 into ggerganov:master Sep 30, 2024
4 checks passed
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