mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-30 08:42:00 +00:00 
			
		
		
		
	Fix HF repo commit to clone lora test models (#10649)
This commit is contained in:
		| @@ -10,11 +10,16 @@ declare -a params=( | |||||||
|  |  | ||||||
| MODELS_REPO=lora-tests | MODELS_REPO=lora-tests | ||||||
| MODELS_REPO_URL=https://huggingface.co/ggml-org/$MODELS_REPO | MODELS_REPO_URL=https://huggingface.co/ggml-org/$MODELS_REPO | ||||||
|  | COMMIT=c26d5fb85b4070a9e9c4e65d132c783b98086890 | ||||||
|  |  | ||||||
| # Clone the Hugging Face repository if the directory does not exist | # Clone the Hugging Face repository if the directory does not exist | ||||||
| if [ ! -d "$MODELS_REPO" ]; then | if [ ! -d "$MODELS_REPO" ]; then | ||||||
|     echo "Cloning the Hugging Face repository..." |     echo "Cloning the Hugging Face repository..." | ||||||
|     git clone $MODELS_REPO_URL --depth 1 |     git clone $MODELS_REPO_URL --depth 1 | ||||||
|  |     cd $MODELS_REPO | ||||||
|  |     git fetch --depth=1 origin $COMMIT | ||||||
|  |     git reset --hard $COMMIT | ||||||
|  |     cd - | ||||||
| else | else | ||||||
|     echo "Repository already exists. Skipping clone." |     echo "Repository already exists. Skipping clone." | ||||||
| fi | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 ltoniazzi
					ltoniazzi