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

TensorFlow tests: having from_pt set to True requires torch to be installed. #10664

Merged
merged 3 commits into from Mar 12, 2021

Conversation

LysandreJik
Copy link
Member

Some tests were executed without having torch installed, while they require torch. Namely, all the tests that have a from_pt=True requirement require torch to be installed.

This is a draft PR as several of the requirements to merge this PR are not met:

  • The Marian models do not have their tensorflow variant available on the hub
  • Neither do the RAG models

The easy option is to only set @requires_torch, but since we have no slow test suite that runs both PT + TF that's not a good workaround.

How do you want to proceed @patrickvonplaten ?

@patrickvonplaten
Copy link
Contributor

@LysandreJik - I'll upload the respective weights today and then check that all these slow tests here work without from_pt

@patrickvonplaten
Copy link
Contributor

Uploaded all the TF weights and checked that:

RUN_SLOW=1 pytest tests/test_modeling_tf_rag.py
RUN_SLOW=1 pytest tests/test_modeling_tf_blenderbot.py

pass.

For some reason RUN_SLOW=1 pytest tests/test_modeling_tf_marian.py now throws an error. I've opened a new issue for this here: #10680

Iwontbecreative pushed a commit to Iwontbecreative/transformers that referenced this pull request Jul 15, 2021
…talled. (huggingface#10664)

* TF model exists for Blenderbot 400M

* Marian

* RAG
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.

None yet

2 participants