forked from instructlab/instructlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow ilab model download to pull from OCI registries
Check if repository supplied during ilab model download meets the URL structure of an OCI registry. If so, leverage skopeo to copy image layers into cache, and apply mapping logic to move the model files into the permanent models directory. This PR also refactors existing ilab model download code to introduce base and implementation classes to support multiple downloading backends (HF vs OCI). Assumes skopeo is installed on the system and uses OCI v1.1 Signed-off-by: Jaideep Rao <jrao@redhat.com>
- Loading branch information
1 parent
186a367
commit 500669b
Showing
5 changed files
with
310 additions
and
33 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.