Skip to content

Commit 42f65b0

Browse files
ltoniazziLorenzo Toniazzi
authored andcommitted
clone repo commit
1 parent 56f2a80 commit 42f65b0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/test-lora-conversion-inference.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,20 @@ 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..."
17-
git clone $MODELS_REPO_URL --depth 1
18+
git clone --depth=1 $MODELS_REPO_URL $MODELS_REPO
19+
cd $MODELS_REPO
20+
21+
# Fetch the specific commit
22+
git fetch --depth=1 origin $COMMIT
23+
24+
# Reset to the specific commit
25+
git reset --hard $COMMIT
26+
cd -
1827
else
1928
echo "Repository already exists. Skipping clone."
2029
fi

0 commit comments

Comments
 (0)