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

Add missing Qwen2-VL monkey patch test #283

Merged
merged 12 commits into from
Oct 1, 2024

Conversation

tyler-romero
Copy link
Collaborator

@tyler-romero tyler-romero commented Sep 29, 2024

Summary

Add a monkeypatch test for Qwen2-VL.

Also fixes and re-enables Qwen2-VL multimodal tests

Testing Done

  • Hardware Type:
  • run make test to ensure correctness
  • run make checkstyle to ensure code style
  • run make test-convergence to ensure convergence

@@ -140,6 +140,7 @@ def preprocess_function(examples):
padding="max_length",
truncation=True,
max_length=1024, # longer than for text-only b/c images require quite a few tokens
return_tensors="pt",
Copy link
Collaborator Author

@tyler-romero tyler-romero Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for the broken Qwen2VL tests - when the transformers version was bumped from 4.44 -> 4.45 it seems like the behavior here changed - started returning np arrays.

@tyler-romero tyler-romero marked this pull request as ready for review September 30, 2024 15:13
@ByronHsu ByronHsu mentioned this pull request Sep 30, 2024
@tyler-romero
Copy link
Collaborator Author

All tests passing, except for the gemma2 tests that are failing on main

@lancerts lancerts requested a review from shimizust October 1, 2024 22:10
@lancerts lancerts merged commit 92ae3fa into linkedin:main Oct 1, 2024
2 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