Portable text-generation-webui installation. Independent of already installed Python or Conda environments. Self-contained setup. Single binary entrypoint.
TBH no idea if anything I described above is actually true. This project was put together in few minutes, so... Not really tested anywhere ;-)
https://github.com/r3dsh/text-generation-webui-launcher/releases
Since Launcher supports multiple text-generation-webui installations (ie. different branches), -home
argument is always required.
dist\text-generation-webui-launcher.exe --help
Usage of ./text-generation-webui-launcher.exe:
-branch string
git branch to install text-generation-webui from (default "main")
-home string
target directory
-install
install text-generation-webui
-python string
python version to use (default "3.10.11")
dist\text-generation-webui-launcher.exe -install -home D:\oobabooga -- --model-dir D:\models --chat --auto-launch
Original server.py arguments are passed after "--".
That's basically it, after installation is done, webui should open in your browser in chat mode. Other examples:
dist/text-generation-webui-launcher.exe --home /d/oobabooga -- -h
└─$ ./text-generation-webui-launcher -home /mnt/d/oobabooga
2023/04/26 06:33:11 Starting text-generation-webui from /mnt/d/oobabooga/text-generation-webui-main
2023/04/26 06:33:11 spawning server.py
All from one directory. Python packages and environment variables are managed by launcher.
See text-generation-webui-launcher --help
and text-generation-webui-launcher --home YOUR_HOME -- -h
For Windows
GOOS=windows go build -o dist/text-generation-webui-launcher.exe cmd/main.go
For Linux
go build -o dist/text-generation-webui-launcher cmd/main.go
For MacOS
GOOS=darwin go build -o dist/text-generation-webui-launcher cmd/main.go
On Windows
docker run --rm -ti -v %cd%:/go/src golang:1.20 bash -c "cd src; GOOS=windows go build -o dist/text-generation-webui-launcher.exe cmd/main.go"
On Linux
docker run --rm -ti -v $(pwd):/go/src golang:1.20 bash -c "cd src; go build -o dist/text-generation-webui-launcher cmd/main.go"
- Fetch GIT binaries (launcher.go line 122)
- Add support for zip bundles allowing to download whole environment as one big file (approx. 1GB) instead of pulling a bunch of small files.
- "Select Directory" OS native window for non CLI usage instead of -home directory + config file? Something really simple, no additional UIs.
- Actually test stuff...