-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 Huggingface-cli usage #4027
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4027 +/- ##
=======================================
Coverage 80.94% 80.94%
=======================================
Files 435 435
Lines 37429 37429
=======================================
Hits 30297 30297
Misses 7132 7132
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
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.
Many thanks!
I think we can remove the zenodo description (or at least emphasize that this is deprecated and we can move this part in the later part). |
Make sense, maybe just add a note (Not recommended) or something. It may still be interested by someone, so leaving it seems OK |
Yes this makes sense, I have added this info next to the zenodo description in the doc |
egs2/TEMPLATE/asr1/asr.sh
Outdated
@@ -1478,7 +1478,7 @@ fi | |||
if ! "${skip_upload_hf}"; then | |||
if [ ${stage} -le 16 ] && [ ${stop_stage} -ge 16 ]; then | |||
[ -z "${hf_repo}" ] && \ | |||
log "ERROR: You need to setup the variable hf_repo with the name of the repository located at HuggingFace" && \ | |||
log "ERROR: You need to setup the variable hf_repo with the name of the repository located at HuggingFace, follow the following steps described here https://github.com/espnet/espnet/pull/4027/files#diff-b9f381af6d3ca8c14a68dca2a24de815830013fd69a3fe6a113e108c7aaf0d2dR1490-R1505" && \ |
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.
The link here is not the correct link to file, but the pull info. Can you fix it as well?
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.
Sure , updated with a permanent link
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.
Could you make it not stick to a specific commit? It won't reflect future changes with a fixed commit.
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.
Hey in the latest commit the link is updated as
Line 68 in 5cc31d7
To upload models using Huggingface-cli follow the following steps: |
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.
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.
updated the link
Co-authored-by: Shinji Watanabe <sw005320@gmail.com>
Co-authored-by: Shinji Watanabe <sw005320@gmail.com>
Co-authored-by: Shinji Watanabe <sw005320@gmail.com>
Co-authored-by: Shinji Watanabe <sw005320@gmail.com>
Co-authored-by: Shinji Watanabe <sw005320@gmail.com>
Co-authored-by: Shinji Watanabe <sw005320@gmail.com>
Co-authored-by: Shinji Watanabe <sw005320@gmail.com>
LGTM. I will merge it after passing the CI tests |
@ftshijt if I apply black locally, it says says no file to be reformatted. How to fix this CI error? |
can you check that the black version was correct? |
@karthik19967829 @sw005320 - I recommend creating an environment with python=3.6 or 3.7, and installing all the CI tools there. Install black with python=3.6/3.7 and redo the black formatting. That worked for me |
Thank you this helped . |
Many thanks for the contribution! |
This PR adds Huggingface-cli usage to upload models to Huggingface Hub