mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user