Colab Optimizations

Breakmodel is useless on Colab, so for the sake of efficiency if --colab is present we will always assume a model is incompatible. The same applies to the conversion, colab's are discarded so converting the model to a .bin file only wastes time since the HDD isn't fast. Finally we automatically set all the useful variables for Colab, so that in the future this can be removed from ckds and other scripts.

Lastly ckds has been adapted not to copy the examples folder and to add the new --colab parameter.

Local players are much better off running the old --remote command.
This commit is contained in:
henk717
2022-01-16 00:56:03 +01:00
parent 9d086e9884
commit 9802d041aa
2 changed files with 19 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ function launch
else
cd /content/KoboldAI-Client
echo "Launching KoboldAI with the following options : python3 aiserver.py$model$kmpath$configname$ngrok --remote --override_delete --override_rename"
python3 aiserver.py$model$kmpath$configname$ngrok --remote --override_delete --override_rename
python3 aiserver.py$model$kmpath$configname$ngrok --remote --override_delete --override_rename --colab
exit
fi
}
@@ -106,9 +106,9 @@ if [ "$init" != "skip" ]; then
cd /content/KoboldAI-Client
cp -rn stories/* /content/drive/MyDrive/KoboldAI/stories/
cp -rn userscripts/* /content/drive/MyDrive/KoboldAI/userscripts/
cp -rn softprompts/* /content/drive/MyDrive/KoboldAI/softprompts/
cp -n stories/* /content/drive/MyDrive/KoboldAI/stories/
cp -n userscripts/* /content/drive/MyDrive/KoboldAI/userscripts/
cp -n softprompts/* /content/drive/MyDrive/KoboldAI/softprompts/
rm stories
rm -rf stories/
rm userscripts