text-generation-webui/docs/One-Click-Installers.md

65 lines
2.2 KiB
Markdown
Raw Normal View History

2023-09-22 21:16:31 +02:00
# Additional one-click installers info
2023-09-22 19:28:22 +02:00
## Using an AMD GPU in Linux
Requires ROCm SDK 5.4.2 or 5.4.3 to be installed. Some systems may also
need: sudo apt-get install libstdc++-12-dev
2023-09-22 21:16:31 +02:00
Edit the "one_click.py" script using a text editor and un-comment and
2023-09-22 19:28:22 +02:00
modify the lines near the top of the script according to your setup. In
particular, modify the os.environ["ROCM_PATH"] = '/opt/rocm' line to
point to your ROCm installation.
2023-09-22 21:16:31 +02:00
## WSL instructions
2023-06-13 05:04:15 +02:00
If you do not have WSL installed, see here:
https://learn.microsoft.com/en-us/windows/wsl/install
If you want to install Linux to a drive other than C
Open powershell and enter these commands:
cd D:\Path\To\Linux
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest -Uri <LinuxDistroURL> -OutFile Linux.appx -UseBasicParsing
mv Linux.appx Linux.zip
Then open Linux.zip and you should see several .appx files inside.
The one with _x64.appx contains the exe installer that you need.
Extract the contents of that _x64.appx file and run <distro>.exe to install.
Linux Distro URLs:
https://learn.microsoft.com/en-us/windows/wsl/install-manual#downloading-distributions
******************************************************************************
*ENSURE THAT THE WSL LINUX DISTRO THAT YOU WISH TO USE IS SET AS THE DEFAULT!*
******************************************************************************
Do this by using these commands:
wsl -l
wsl -s <DistroName>
2023-09-22 19:28:22 +02:00
### Web UI Installation
2023-06-13 05:04:15 +02:00
Run the "start" script. By default it will install the web UI in WSL:
/home/{username}/text-gen-install
To launch the web UI in the future after it is already installed, run
2023-09-22 21:16:31 +02:00
the same "start" script. Ensure that one_click.py and wsl.sh are next to it!
2023-06-13 05:04:15 +02:00
2023-09-22 19:28:22 +02:00
### Updating the web UI
2023-06-13 05:04:15 +02:00
2023-09-22 19:28:22 +02:00
As an alternative to running the "update" script, you can also run "wsl.sh update" in WSL.
2023-06-13 05:04:15 +02:00
2023-09-22 19:28:22 +02:00
### Running an interactive shell
2023-06-13 05:04:15 +02:00
2023-09-22 19:28:22 +02:00
As an alternative to running the "cmd" script, you can also run "wsl.sh cmd" in WSL.
2023-06-13 05:04:15 +02:00
2023-09-22 19:28:22 +02:00
### Changing the default install location
2023-06-13 05:04:15 +02:00
To change this, you will need to edit the scripts as follows:
wsl.sh: line ~22 INSTALL_DIR="/path/to/install/dir"
Keep in mind that there is a long-standing bug in WSL that significantly
slows drive read/write speeds when using a physical drive as opposed to
the virtual one that Linux is installed in.