Optimizing Google Drive extracted model support
This commit is contained in:
parent
2327d79fe5
commit
1dec4e73ee
|
@ -70,6 +70,7 @@ fi
|
|||
# Redefine the extraction location
|
||||
if [ "$xloc" == "drive" ]; then
|
||||
xloc="/content/drive/MyDrive/KoboldAI/models/"
|
||||
dloc="/content"
|
||||
else
|
||||
xloc="/content/"
|
||||
fi
|
||||
|
@ -138,6 +139,12 @@ if [ -f "/content/extracted" ]; then
|
|||
launch
|
||||
fi
|
||||
|
||||
# Is the model extracted on Google Drive? Skip the download and extraction
|
||||
# Only on Google Drive since it has a big impact there if we don't, and locally we have better checks in place
|
||||
if [ "$xloc" == "drive" ] && [[ -d $mpath ]];then
|
||||
launch
|
||||
fi
|
||||
|
||||
#Download routine for regular Downloads
|
||||
if [ ! -z ${download+x} ]; then
|
||||
wget -c $download -P $dloc
|
||||
|
|
Loading…
Reference in New Issue