-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #161 from henk717/united
Release 1.19
- Loading branch information
Showing
57 changed files
with
22,227 additions
and
1,496 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.min.lua linguist-vendored | ||
*documentation.html linguist-vendored | ||
/static/swagger-ui/* linguist-vendored |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"aria2_port":null, "breakmodel":null, "breakmodel_disklayers":null, "breakmodel_gpulayers":null, "breakmodel_layers":null, "colab":null, "configname":null, "cpu":null, "host":null, "localtunnel":null, "lowmem":null, "model":null, "ngrok":null, "no_aria2":null, "noaimenu":null, "nobreakmodel":null, "override_delete":null, "override_rename":null, "path":null, "port":null, "quiet":null, "remote":null, "revision":null, "savemodel":null, "unblock":null} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM debian | ||
RUN apt update && apt install wget aria2 git bzip2 -y | ||
RUN git clone https://github.com/henk717/koboldai /opt/koboldai | ||
WORKDIR /opt/koboldai | ||
RUN ./install_requirements.sh cuda | ||
COPY docker-helper.sh /opt/koboldai/docker-helper.sh | ||
EXPOSE 5000/tcp | ||
CMD /opt/koboldai/docker-helper.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
These are the source files for the official versions of the standalone docker and are provided for completeness. | ||
Using these files you will not use any of the local modifications you make, instead it will use the latest github version of KoboldAI as the basis. | ||
|
||
If you wish to run KoboldAI containerised with access to the local directory you can do so using docker-cuda.sh or docker-rocm.sh instead. | ||
|
||
We do not support ROCm in the standalone docker as it is intended for cloud deployment on CUDA systems. | ||
If you wish to build a ROCm version instead, you can do so by modifying the Dockerfile and changing the install_requirements.sh from cuda to rocm. | ||
|
||
Similarly you need to modify the Dockerfile to specify which branch of KoboldAI the docker is being built for. | ||
|
||
Usage: | ||
This docker will automatically assume the persistent volume is mounted to /content and will by default not store models there. | ||
The following environment variables exist to adjust the behavior if desired. | ||
|
||
KOBOLDAI_DATADIR=/content , this can be used to specify a different default location for your stories, settings, userscripts, etc in case your provider does not let you change the mounted folder path. | ||
KOBOLDAI_MODELDIR= , This variable can be used to make model storage persistent, it can be the same location as your datadir but this is not required. | ||
KOBOLDAI_ARGS= , This variable is built in KoboldAI and can be used to override the default launch options. Right now the docker by default will launch in remote mode, with output hidden from the logs and file management enabled. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
cd /opt/koboldai | ||
git pull | ||
#./install_requirements.sh cuda | ||
|
||
if [[ ! -v KOBOLDAI_DATADIR ]];then | ||
mkdir /content | ||
KOBOLDAI_DATADIR=/content | ||
fi | ||
|
||
mkdir $KOBOLDAI_DATADIR/stories | ||
if [[ ! -v KOBOLDAI_MODELDIR ]];then | ||
mkdir $KOBOLDAI_MODELDIR/models | ||
fi | ||
mkdir $KOBOLDAI_DATADIR/settings | ||
mkdir $KOBOLDAI_DATADIR/softprompts | ||
mkdir $KOBOLDAI_DATADIR/userscripts | ||
#mkdir $KOBOLDAI_MODELDIR/cache | ||
|
||
cp -rn stories/* $KOBOLDAI_DATADIR/stories/ | ||
cp -rn userscripts/* $KOBOLDAI_DATADIR/userscripts/ | ||
cp -rn softprompts/* $KOBOLDAI_DATADIR/softprompts/ | ||
|
||
rm stories | ||
rm -rf stories/ | ||
rm userscripts | ||
rm -rf userscripts/ | ||
rm softprompts | ||
rm -rf softprompts/ | ||
|
||
if [[ ! -v KOBOLDAI_MODELDIR ]];then | ||
rm models | ||
rm -rf models/ | ||
#rm cache | ||
#rm -rf cache/ | ||
fi | ||
|
||
ln -s $KOBOLDAI_DATADIR/stories/ stories | ||
ln -s $KOBOLDAI_DATADIR/settings/ settings | ||
ln -s $KOBOLDAI_DATADIR/softprompts/ softprompts | ||
ln -s $KOBOLDAI_DATADIR/userscripts/ userscripts | ||
if [[ ! -v KOBOLDAI_MODELDIR ]];then | ||
ln -s $KOBOLDAI_MODELDIR/models/ models | ||
#ln -s $KOBOLDAI_MODELDIR/cache/ cache | ||
fi | ||
|
||
PYTHONUNBUFFERED=1 ./play.sh --remote --quiet --override_delete --override_rename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.