mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-01-05 21:07:08 +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"
|
||||
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
|
||||
cd /content
|
||||
if [ ! -z ${git+x} ]; then
|
||||
@ -120,13 +132,6 @@ if [ "$init" != "skip" ]; then
|
||||
git reset --hard origin/$(git_default_branch)
|
||||
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
|
||||
|
||||
cp -rn stories/*.* /content/drive/MyDrive/KoboldAI/stories/
|
||||
|
Loading…
Reference in New Issue
Block a user