Userscript support on GDrive

Make the Colab's create and map a userscripts folder.
This commit is contained in:
henk717 2021-12-14 02:51:39 +01:00
parent 18ddd77337
commit c5ade0333a
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,7 @@ if [ "$init" != "skip" ]; then
mkdir /content/drive/MyDrive/KoboldAI/models/ mkdir /content/drive/MyDrive/KoboldAI/models/
mkdir /content/drive/MyDrive/KoboldAI/settings/ mkdir /content/drive/MyDrive/KoboldAI/settings/
mkdir /content/drive/MyDrive/KoboldAI/softprompts/ mkdir /content/drive/MyDrive/KoboldAI/softprompts/
mkdir /content/drive/MyDrive/KoboldAI/userscripts/
cd /content/KoboldAI-Client cd /content/KoboldAI-Client
rm stories rm stories
@ -92,6 +93,7 @@ if [ "$init" != "skip" ]; then
ln -s /content/drive/MyDrive/KoboldAI/stories/ stories ln -s /content/drive/MyDrive/KoboldAI/stories/ stories
ln -s /content/drive/MyDrive/KoboldAI/settings/ settings ln -s /content/drive/MyDrive/KoboldAI/settings/ settings
ln -s /content/drive/MyDrive/KoboldAI/softprompts/ softprompts ln -s /content/drive/MyDrive/KoboldAI/softprompts/ softprompts
ln -s /content/drive/MyDrive/KoboldAI/userscripts/ userscripts
if [ "$model" == " --model TPUMeshTransformerGPTJ" ]; then if [ "$model" == " --model TPUMeshTransformerGPTJ" ]; then
pip install -r requirements_mtj.txt pip install -r requirements_mtj.txt