]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Fix HF repo commit to clone lora test models (#10649)
authorltoniazzi <redacted>
Wed, 4 Dec 2024 09:45:48 +0000 (09:45 +0000)
committerGitHub <redacted>
Wed, 4 Dec 2024 09:45:48 +0000 (10:45 +0100)
tests/test-lora-conversion-inference.sh

index fe90ce0d1b80175bd7d1ef67135a8b2b57475d28..fb308a9ffb76f35f095151698f89a6223c48afa0 100755 (executable)
@@ -10,11 +10,16 @@ declare -a params=(
 
 MODELS_REPO=lora-tests
 MODELS_REPO_URL=https://huggingface.co/ggml-org/$MODELS_REPO
+COMMIT=c26d5fb85b4070a9e9c4e65d132c783b98086890
 
 # Clone the Hugging Face repository if the directory does not exist
 if [ ! -d "$MODELS_REPO" ]; then
     echo "Cloning the Hugging Face repository..."
     git clone $MODELS_REPO_URL --depth 1
+    cd $MODELS_REPO
+    git fetch --depth=1 origin $COMMIT
+    git reset --hard $COMMIT
+    cd -
 else
     echo "Repository already exists. Skipping clone."
 fi