Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

[T5] Fix HF versioning issue #4164

Merged
merged 1 commit into from
Nov 12, 2021
Merged

[T5] Fix HF versioning issue #4164

merged 1 commit into from
Nov 12, 2021

Conversation

klshuster
Copy link
Contributor

Patch description
Addresses issue #4148; now correctly check HF versioning

Testing steps
Locally tested that various versions worked; also CI for T5

Copy link
Contributor

@mojtaba-komeili mojtaba-komeili left a comment

Choose a reason for hiding this comment

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

LGTM.

HF_VERSION = float('.'.join(transformers.__version__.split('.')[:2]))
HF_VERSION = (
int(transformers.__version__.split('.')[0]),
int(transformers.__version__.split('.')[1]),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit (question): looking at their version history it looks like they only add letter like rc to the third digit. Is that always the case? Should we worry about int transformation here ever?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think we can worry about that later, if it becomes an issue. but good to know ahead of time

@klshuster klshuster merged commit c7cce82 into main Nov 12, 2021
@klshuster klshuster deleted the fix_t5_versioning branch November 12, 2021 17:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants