File size: 592 Bytes
a5c60d7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

# Ensure huggingface-cli is installed
if ! command -v huggingface-cli &> /dev/null
then
    echo "huggingface-cli could not be found. Installing transformers."
    pip install transformers
fi

# Create directories if they do not exist
mkdir -p Mistral-7B-Instruct-v0.3 mt5-small

# Download Mistral-7B-Instruct-v0.3 model from Hugging Face
huggingface-cli download mistralai/Mistral-7B-Instruct-v0.3 --local-dir ./Mistral-7B-Instruct-v0.3

# Download mt5-small model from Hugging Face
huggingface-cli download google/mt5-small --local-dir ./mt5-small

echo "Download complete!"