-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Fix docstrings for TF BLIP #22618
Fix docstrings for TF BLIP #22618
Conversation
@Rocketknight1 Thanks for adding tf-blip. |
@Rocketknight1 I tried to re-run the CI, but it still fails. Could you push an empty commit to trigger it maybe? |
64f9c32
to
7c326c9
Compare
The documentation is not available anymore as the PR was closed or merged. |
@ydshieh tests are passing now! Can you approve the PR? |
@Rocketknight1 When I run the doctest python3 -m pytest -v --make-reports doc_tests_gpu --doctest-modules src/transformers/models/blip/modeling_tf_blip.py::transformers.models.blip.modeling_tf_blip.TFBlipForConditionalGeneration.generate -sv --doctest-continue-on-failure --doctest-glob="*.mdx" I got
|
Also, the changes are not just docstrings. After looking at the changes, I am wondering why we don't have CI failures (i.e. the usual testing). It turns out that we do have some failures @Rocketknight1 Do you want to verify/fix those in this same PR? (probably already fixed as CircleCI is green?) |
Oh, that's very odd - I wonder why it's not visible in the CI? I'll take a look! |
Thank you @Rocketknight1 . I am also confused why CircleCI is green but failed on daily CI. |
@ydshieh tests should pass now! The cause was some expected values in the tests being wrong. I copied the right ones from the torch tests and now everything is passing locally, so hopefully the CI will agree. |
The doctests are weird, though - I think some of them were broken in PyTorch too. Working on it! |
Thanks @Rocketknight1 I will double check. But do you figure out (some of) tests pass on CircleCI but fails on daily CI - the pt<->tf equivalence tests also run on CircleCI. We should see they fail on it (as they fail on daily CI). |
For the doctest, we still get Expected:
two cats are laying on a couch
Got:
two cats sleeping on a couch for Regarding the modeling tests - all tests pass now 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @Rocketknight1 on this. A doctest value still needs to be updated I think.
Also wondering why we don't see test failure on CircleCI previously. If you know, please let me know 🙏 .
@ydshieh should be resolved now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Rocketknight1 again, our 2 cute cats can finally sleep well now.
* Fix docstrings for TFBLIP * Fix missing line in TF port! * Use values from torch tests now other bugs fixed * Use values from torch tests now other bugs fixed * Fix doctest string
Some of the docstrings were still a bit PyTorchy, this is fixed now! (cc @ydshieh)