Repository navigation
test(autograd): cover chained reshape and Qwen LoRA gradients - #6
Merged
BESTTOOLBOX merged 2 commits intoOct 15, 2026
Conversation
BESTTOOLBOX
merged commit Oct 15, 2026
6d8d53d
into
Edge-Intelligence-Lab:codex/fix-reshape-double-grad
1 check passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds regression coverage for the duplicate
ops::reshapebackward registration reported in #5, on top of Johnny's fix in #4.This is a stacked PR targeting
codex/fix-reshape-double-gradat00c8059001eea3bed37695374ccbc67e748c562d. The diff contains tests and their CMake entries only; the runtime fix remains Johnny's commit. After #4 merges, this PR can be retargeted to its destination branch.Validation on macOS:
ACCELERATE_NEW_LAPACKinterface and the repository's default warnings-as-errors OFF setting.max_abs_diff=0.30073). All 160 Qwen forward logits remain identical.cmake -S operator -B build_release -DCMAKE_BUILD_TYPE=Release -DOPERATORS_WARNINGS_AS_ERRORS=ON cmake --build build_release -j4 ctest --test-dir build_release --output-on-failure cmake -S operator -B build_blas -DCMAKE_BUILD_TYPE=Release -DUSE_BLAS=ON -DOPERATORS_WARNINGS_AS_ERRORS=OFF -DCMAKE_CXX_FLAGS=-DACCELERATE_NEW_LAPACK -DCMAKE_CXX_FLAGS_RELEASE='-O3 -UNDEBUG' cmake --build build_blas -j4 ctest --test-dir build_blas --output-on-failureExisting build limitation: BLAS ON plus warnings-as-errors still fails on unused fallback helpers in the unchanged
ops.cpp; the old SDK interface also emits deprecation diagnostics. This PR does not change those unrelated functions or claim that strict BLAS combination passes. Android/SDK CI results will be reported separately from the local C++ checks.