-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for loading models from an fsspec filesystem (#327)
* Add support for loading models from an fsspec filesystem This change adds a method `from_fsspec` to the `FromHFHub` mixins. This new method can be used to load a model from an fsspec filesystem. We should rename `FromHFHub` in the next major semver release, since this PR extends loading support beyond Hugging Face hub. * Doc fix Co-authored-by: Madeesh Kannan <[email protected]> * Name functions more generically * Apply suggestions from code review Add fixes from @shadeMe Co-authored-by: Madeesh Kannan <[email protected]> * Add missing type hints * Fix argument order * Remove an exception * black * Type fix --------- Co-authored-by: Madeesh Kannan <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,016 additions
and
161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.