You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: shared PreprocessConfig for gradient processing across build, reduce, score
- Create PreprocessConfig with unit_normalize, preconditioner paths, and
mixing_coefficient fields extracted from ReduceConfig and ScoreConfig
- Fix broken imports in process_grads.py (gradient_processor -> gradients,
utils.utils -> utils.math)
- Fix accumulate_grads -> aggregate_grads variable name bug in process_grads.py
- Add compute_preconditioner() returning H^(-1/2) for unit_normalize or
H^(-1) otherwise, and normalize_flat_grad() for flat tensors
- Fix data.py import from nonexistent .reduce.process_query_grads
- Fix SequenceBuilder/InMemorySequenceBuilder missing h_inv computation
and broken normalize_grad calls with undefined device
- Add preconditioner support to Scorer for index-side H^(-1/2) application
- Thread PreprocessConfig through build, reduce, score, and collection
- Fix accumulate_grads -> aggregate_grads in huggingface.py callback
- Add tests for compute_preconditioner and Scorer preconditioner support
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments