fix(huggingface-hub): allow offline mode#11901
Conversation
Allow to reuse already cached models without the need for a connection to the internet or to the HuggingFace model hub. Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com>
Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com>
|
push |
|
beep boop 🤖: 🙏 The following files have warnings. In case you are familiar with these, please try helping us to improve the code base. Your code was analyzed with PyLint. The following annotations have been identified: Mitigation guide:
By applying these rules, we reduce the occurance of this message in future. Thank you for improving NeMo's documentation! |
|
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
|
ping @ericharper, @titu1994, @blisc @okuchaiev |
|
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
nithinraok
left a comment
There was a problem hiding this comment.
LGTM, thanks much for the PR. and sorry for the delayed response on this.
Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com>
Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com>
|
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or update or this will be closed in 7 days. |
* fix(huggingface-hub): allow offline mode Allow to reuse already cached models without the need for a connection to the internet or to the HuggingFace model hub. Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com> * Apply isort and black reformatting Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com> * flake8 common.py Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> * flake common.py Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> --------- Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com> Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com> Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: maxstrobel <maxstrobel@users.noreply.github.com> Co-authored-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: Nithin Rao <nithinrao.koluguri@gmail.com> Signed-off-by: Yuanzhe Dong <yudong@nvidia.com>
* fix(huggingface-hub): allow offline mode Allow to reuse already cached models without the need for a connection to the internet or to the HuggingFace model hub. Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com> * Apply isort and black reformatting Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com> * flake8 common.py Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> * flake common.py Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> --------- Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com> Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com> Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: maxstrobel <maxstrobel@users.noreply.github.com> Co-authored-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: Nithin Rao <nithinrao.koluguri@gmail.com>
* refactor 1: typos, yaml updates, code changes Signed-off-by: Jason <jasoli@nvidia.com> * add new test Signed-off-by: Jason <jasoli@nvidia.com> * add the new tests Signed-off-by: Jason <jasoli@nvidia.com> * pull in latest container build from main; hopefully it works without merging the rest of main Signed-off-by: Jason <jasoli@nvidia.com> * update repo location Signed-off-by: Jason <jasoli@nvidia.com> * try removing wait-in-queue from needs Signed-off-by: Jason <jasoli@nvidia.com> * fix tests Signed-off-by: Jason <jasoli@nvidia.com> * Update nemo/collections/tts/data/text_to_speech_dataset.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> * undo dataset change Signed-off-by: Jason <jasoli@nvidia.com> * remove infer and eval tests for now Signed-off-by: Jason <jasoli@nvidia.com> * fix(huggingface-hub): allow offline mode (#11901) * fix(huggingface-hub): allow offline mode Allow to reuse already cached models without the need for a connection to the internet or to the HuggingFace model hub. Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com> * Apply isort and black reformatting Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com> * flake8 common.py Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> * flake common.py Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> --------- Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com> Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com> Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: maxstrobel <maxstrobel@users.noreply.github.com> Co-authored-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: Nithin Rao <nithinrao.koluguri@gmail.com> * fix L2 tests to use new json, cleanup disk usage, and add target checks Signed-off-by: Jason <jasoli@nvidia.com> * undo comment Signed-off-by: Jason <jasoli@nvidia.com> --------- Signed-off-by: Jason <jasoli@nvidia.com> Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> Signed-off-by: Strobel Maximilian (IFAG PSS SIS SCE ACM) <Maximilian.Strobel@infineon.com> Signed-off-by: maxstrobel <maxstrobel@users.noreply.github.com> Signed-off-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Max Strobel <max.strobel28@gmail.com> Co-authored-by: maxstrobel <maxstrobel@users.noreply.github.com> Co-authored-by: Alexandros Koumparoulis <153118171+akoumpa@users.noreply.github.com> Co-authored-by: Nithin Rao <nithinrao.koluguri@gmail.com>
- Remove numpy < 2 constraint from k2-asr and nemo-asr packages - Update nemo_toolkit[asr] from < 2.2 to >= 2.6.1 - Includes ASR numpy 2.0 support (added in v2.6.1) - Includes offline mode fix (NVIDIA-NeMo/NeMo#11901, added in v2.4.0)
- Remove numpy < 2 constraint from k2-asr and nemo-asr packages - Update nemo_toolkit[asr] from < 2.2 to >= 2.6.1 - Includes ASR numpy 2.0 support (added in v2.6.1) - Includes offline mode fix (NVIDIA-NeMo/NeMo#11901, added in v2.4.0)
- Remove numpy < 2 constraint from k2-asr and nemo-asr packages - Update nemo_toolkit[asr] from < 2.2 to >= 2.6.1 - Includes ASR numpy 2.0 support (added in v2.6.1) - Includes offline mode fix (NVIDIA-NeMo/NeMo#11901, added in v2.4.0)
Allow to reuse already cached models without the need for a connection to the internet or to the HuggingFace model hub.
What does this PR do ?
Allows to use cached models without internet connection
Collection: [Note which collection this PR will affect]
Changelog
Usage
# Add a code snippet demonstrating how to use thisGitHub Actions CI
The Jenkins CI system has been replaced by GitHub Actions self-hosted runners.
The GitHub Actions CI will run automatically when the "Run CICD" label is added to the PR.
To re-run CI remove and add the label again.
To run CI on an untrusted fork, a NeMo user with write access must first click "Approve and run".
Before your PR is "Ready for review"
Pre checks:
PR Type:
If you haven't finished some of the above items you can still open "Draft" PR.
Who can review?
Anyone in the community is free to review the PR once the checks have passed.
Contributor guidelines contains specific people who can review PRs to various areas.
@ericharper, @titu1994, @blisc @okuchaiev
Additional Information