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

Update test logins processor to transformers 4.40 #1008

Merged

Conversation

malkomes
Copy link
Contributor

What does this PR do?

  • Updates LogitsProcessorTest to match tests from transformer == 4.40.0
  • Adds a test to check if the expected output device is HPU

Fixes # (issue)

Aside from new tests, the only issue was related to using different torch_devices. The solution here was to import the torch_device from test_modeling_common which uses the HPU.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@regisss regisss merged commit df967e8 into huggingface:transformers_4.40 May 28, 2024
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