Skip to content

Commit 253b7fd

Browse files
authored
Fix HF repo commit to clone lora test models (ggml-org#10649)
1 parent 8d0cfd5 commit 253b7fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test-lora-conversion-inference.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@ declare -a params=(
1010

1111
MODELS_REPO=lora-tests
1212
MODELS_REPO_URL=https://huggingface.co/ggml-org/$MODELS_REPO
13+
COMMIT=c26d5fb85b4070a9e9c4e65d132c783b98086890
1314

1415
# Clone the Hugging Face repository if the directory does not exist
1516
if [ ! -d "$MODELS_REPO" ]; then
1617
echo "Cloning the Hugging Face repository..."
1718
git clone $MODELS_REPO_URL --depth 1
19+
cd $MODELS_REPO
20+
git fetch --depth=1 origin $COMMIT
21+
git reset --hard $COMMIT
22+
cd -
1823
else
1924
echo "Repository already exists. Skipping clone."
2025
fi

0 commit comments

Comments
 (0)