-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ugly Python hack for smaller download
Signed-off-by: Costin Gamenț <[email protected]>
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
FROM quay.io/centos-bootc/centos-bootc:stream9 | ||
|
||
ARG MODEL_REPO=https://huggingface.co/ibm/granite-7b-base | ||
ARG MODEL_PATH=/usr/share/ai-model | ||
ARG MODEL_REPO='' | ||
ARG MODEL_PATH='' | ||
|
||
RUN dnf install -y git-lfs | ||
RUN mkdir -p "${MODEL_PATH}" | ||
RUN git clone --progress --verbose "${MODEL_REPO}" "${MODEL_PATH}" | ||
RUN dnf install -y python3-pip && python -m pip install huggingface_hub | ||
RUN mkdir -p "${MODEL_PATH}" \ | ||
&& echo from huggingface_hub import snapshot_download\;snapshot_download\(repo_id=\'${MODEL_REPO}\', local_dir=\'${MODEL_PATH}\', local_dir_use_symlinks=False\) | python |
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