-
Notifications
You must be signed in to change notification settings - Fork 3.4k
update transformers version #15365
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 transformers version #15365
Changes from all commits
6f6d385
11f7410
3f9267a
32b02ad
70f68eb
47feee2
2e06c40
6e92eeb
422ab58
64a2905
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,11 +50,8 @@ def get_hf_model_filter(cls) -> Dict[str, Any]: | |
| """ | ||
| model_filter = dict( | ||
| author=None, | ||
| library='nemo', | ||
| language=None, | ||
| filter=['nemo'], | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is this change doing? Why is it needed? Where are we still using this mixin?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Change is for updating args to match latest version. This mixin provides API for fetching nemo models, pushing to hf hub or for getting hf_model_card. It was previously used for pushing nemo models, however now we do it manually. This file as I can see is now only used in tutorials but not in nemo/collections code. IMO we can remove this file during refactoring. |
||
| model_name=None, | ||
| task=None, | ||
| tags=None, | ||
| limit=None, | ||
| full=None, | ||
| cardData=False, | ||
|
|
@@ -83,9 +80,8 @@ def search_huggingface_models(cls, model_filter: Optional[Dict[str, Any]] = None | |
| filt = <DomainSubclass>.get_hf_model_filter() | ||
|
|
||
| # Make any modifications to the filter as necessary | ||
| filt['language'] = [...] | ||
| filt['task'] = ... | ||
| filt['tags'] = [...] | ||
| filt['filter'].append('en') # Add language filter | ||
| filt['filter'].append('automatic-speech-recognition') # Add task filter | ||
|
|
||
| # Add any metadata to the filter as needed (kwargs to list_models) | ||
| filt['limit'] = 5 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| datasets | ||
| datasets>=3.2.0 | ||
| einops | ||
| inflect | ||
| mediapy==1.1.6 | ||
|
|
||
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.
why was this change needed? 👀 @nithinraok
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.
It was failing due to non presence of cut. So I had to change the order.