Skip to content

Conversation

@simonmnash
Copy link

Removes the transformers<4.56.0 pin by using cosine similarity and relative magnitude for normalized gradient comparison. test_gradients.py now passes with transformers 4.57.

WIP Element: Still doing some reading/experimenting to make sure the selected thresholds are appropriate.

@CLAassistant
Copy link

CLAassistant commented Jan 14, 2026

CLA assistant check
All committers have signed the CLA.

@luciaquirke
Copy link
Collaborator

luciaquirke commented Jan 19, 2026

Hello, thanks for this! Any idea of what changed in the new transformers version that made the original error larger?

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.

3 participants