mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-02 02:26:45 +01:00
Seperate Google Drive folders to its own section
This allows Colab developers to first get the correct folder structure on drive, before placing a configuration file for the model. That way we can quickly add the settings for a model without maintaining the init settings in two different lines. Its a substitute to the common --init only and --init skip approach from before.
This commit is contained in:
parent
9532b56cb8
commit
13c54b1a89
@ -87,7 +87,19 @@ mpath="$xloc$mpath"
|
|||||||
kmpath=" --path $mpath"
|
kmpath=" --path $mpath"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create Folder Structure and Install KoboldAI
|
# Create folders on Google Drive
|
||||||
|
mkdir /content/drive/MyDrive/KoboldAI/
|
||||||
|
mkdir /content/drive/MyDrive/KoboldAI/stories/
|
||||||
|
mkdir /content/drive/MyDrive/KoboldAI/models/
|
||||||
|
mkdir /content/drive/MyDrive/KoboldAI/settings/
|
||||||
|
mkdir /content/drive/MyDrive/KoboldAI/softprompts/
|
||||||
|
mkdir /content/drive/MyDrive/KoboldAI/userscripts/
|
||||||
|
if [ "$init" == "drive" ]; then
|
||||||
|
echo Google Drive folders created.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install and/or Update KoboldAI
|
||||||
if [ "$init" != "skip" ]; then
|
if [ "$init" != "skip" ]; then
|
||||||
cd /content
|
cd /content
|
||||||
if [ ! -z ${git+x} ]; then
|
if [ ! -z ${git+x} ]; then
|
||||||
@ -120,13 +132,6 @@ if [ "$init" != "skip" ]; then
|
|||||||
git reset --hard origin/$(git_default_branch)
|
git reset --hard origin/$(git_default_branch)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir /content/drive/MyDrive/KoboldAI/
|
|
||||||
mkdir /content/drive/MyDrive/KoboldAI/stories/
|
|
||||||
mkdir /content/drive/MyDrive/KoboldAI/models/
|
|
||||||
mkdir /content/drive/MyDrive/KoboldAI/settings/
|
|
||||||
mkdir /content/drive/MyDrive/KoboldAI/softprompts/
|
|
||||||
mkdir /content/drive/MyDrive/KoboldAI/userscripts/
|
|
||||||
|
|
||||||
cd /content/KoboldAI-Client
|
cd /content/KoboldAI-Client
|
||||||
|
|
||||||
cp -rn stories/*.* /content/drive/MyDrive/KoboldAI/stories/
|
cp -rn stories/*.* /content/drive/MyDrive/KoboldAI/stories/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user