Download install_large_models.sh from LatinNLP/LatinSummarizerModel: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/LatinNLP/LatinSummarizerModel/resolve/a5c60d72231175afdcb7b3baec41cc2693dc2b9e/install_large_models.sh
- Command line
-
hf download hf://LatinNLP/LatinSummarizerModel@a5c60d72231175afdcb7b3baec41cc2693dc2b9e/install_large_models.sh
-
curl -L -o install_large_models.sh https://huggingface.co/LatinNLP/LatinSummarizerModel/resolve/a5c60d72231175afdcb7b3baec41cc2693dc2b9e/install_large_models.sh
592 Bytes
| # 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!" | |