mirror of
https://github.com/Pakobbix/StartUI-oobabooga-webui
synced 2025-11-09 21:49:39 +00:00
Compare commits
No commits in common. "main" and "1.3" have entirely different histories.
75
.github/workflows/package.yml
vendored
75
.github/workflows/package.yml
vendored
@ -1,83 +1,36 @@
|
|||||||
name: Package Release
|
name: Package Release
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
paths:
|
|
||||||
- .github/workflows/**
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
package_on_ubuntu:
|
package:
|
||||||
runs-on: ubuntu-selfhosted
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [windows-latest, ubuntu-latest]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v3
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
|
node-version: 16
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Upgrade Pip
|
|
||||||
run: python -m pip install --upgrade pip
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
python -m pip install --upgrade pip
|
||||||
sudo apt-get upgrade -y
|
|
||||||
sudo apt-get install patchelf -y
|
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
pip install nuitka
|
pip install pyinstaller
|
||||||
sudo apt install patchelf
|
|
||||||
|
|
||||||
- name: Build and package
|
- name: Build and package
|
||||||
run: python3 -m nuitka StartUI.py --onefile --enable-plugin=pyqt5 --product-version=1.6.0 --disable-console --include-data-files=webuiGUI.py=webuiGUI.py --output-dir=./dist --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow
|
|
||||||
|
|
||||||
- name: remove build folders
|
|
||||||
run: |
|
run: |
|
||||||
rm -rf dist/StartUI.build
|
pyinstaller --noconfirm --onefile --windowed StartUI.py
|
||||||
rm -rf dist/StartUI.dist
|
cp webuiGUI.py dist/ # Copy webuiGUI.py to the dist directory
|
||||||
rm -rf dist/StartUI.onefile-build
|
|
||||||
|
|
||||||
- name: Executive permission
|
|
||||||
run: |
|
|
||||||
chmod +x dist/StartUI
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ubuntu-binary-v1.6
|
name: ${{ matrix.os }}-binary-v1.3
|
||||||
path: dist
|
|
||||||
|
|
||||||
package_on_windows:
|
|
||||||
runs-on: windows-selfhosted
|
|
||||||
steps:
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: 3.x
|
|
||||||
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Upgrade Pip
|
|
||||||
run: python -m pip install --upgrade pip
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install -r requirements.txt
|
|
||||||
pip install nuitka
|
|
||||||
|
|
||||||
- name: Build and package
|
|
||||||
run: nuitka StartUI.py --onefile --enable-plugin=pyqt5 --product-version=1.6.0 --disable-console --include-data-files=webuiGUI.py=webuiGUI.py --output-dir=./dist --noinclude-pytest-mode=nofollow --noinclude-setuptools-mode=nofollow
|
|
||||||
|
|
||||||
- name: remove build folders
|
|
||||||
run: |
|
|
||||||
Remove-Item -Recurse -Force ./dist/StartUI.build
|
|
||||||
Remove-Item -Recurse -Force ./dist/StartUI.dist
|
|
||||||
Remove-Item -Recurse -Force ./dist/StartUI.onefile-build
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: windows-binary-v1.6
|
|
||||||
path: dist
|
path: dist
|
||||||
|
|||||||
31
README.md
31
README.md
@ -7,12 +7,12 @@ As someone who isn't a professional programmer, I enjoy experimenting and findin
|
|||||||
WebUI StartGUI is a Python graphical user interface (GUI) written with PyQT5, that allows users to configure settings and start the oobabooga web user interface (WebUI). It provides a convenient way to adjust various parameters and launch the WebUI with the desired settings.
|
WebUI StartGUI is a Python graphical user interface (GUI) written with PyQT5, that allows users to configure settings and start the oobabooga web user interface (WebUI). It provides a convenient way to adjust various parameters and launch the WebUI with the desired settings.
|
||||||
|
|
||||||
## Current Features
|
## Current Features
|
||||||
- Select a model from a dropdown menu or none (with reload button if added while the StartUI is open)
|
- Select a model from a dropdown menu (with reload button if added while the StartUI is open)
|
||||||
- Choose wbits and groupsize options
|
- Choose wbits and groupsize options
|
||||||
- Select the operating mode (chat, cai-chat, notebook)
|
- Select the operating mode (chat, cai-chat, notebook)
|
||||||
- Choose between CPU, GPU or Autodevice
|
- Choose between CPU, GPU or Autodevice
|
||||||
- Set CPU RAM/GPU VRAM (Only for Nvidia Right now, will automatically detect if multiple GPU's are Present)
|
- Set CPU RAM/GPU VRAM (Only for Nvidia Right now, will automatically detect if multiple GPU's are Present)
|
||||||
- Adjust pre-layer value (for each Nvidia GPU found or 1 if none)
|
- Adjust pre-layer value
|
||||||
- Choose to run with 8bit, 16bit, trust_remote_code, Quant_attn, Autotune and no-cache flags
|
- Choose to run with 8bit, 16bit, trust_remote_code, Quant_attn, Autotune and no-cache flags
|
||||||
- Enable authentication and choose an authentication file
|
- Enable authentication and choose an authentication file
|
||||||
- Choose extensions for the WebUI
|
- Choose extensions for the WebUI
|
||||||
@ -21,15 +21,10 @@ WebUI StartGUI is a Python graphical user interface (GUI) written with PyQT5, th
|
|||||||
- Save settings to a profile
|
- Save settings to a profile
|
||||||
- Load profiles via Dropdown menu.
|
- Load profiles via Dropdown menu.
|
||||||
- Run the text-generation-webui Updater
|
- Run the text-generation-webui Updater
|
||||||
- Character loader.
|
|
||||||
- deepspeed Settings
|
|
||||||
- flexgen Settings
|
|
||||||
- API Settings
|
|
||||||
- StartUI Update Notification
|
|
||||||
|
|
||||||
## How to Use
|
## How to Use
|
||||||
1. Clone the repository or download the source code.
|
1. Clone the repository or download the source code.
|
||||||
2. Install the required dependencies listed in the `requirements.txt` file.
|
2. Install the required dependencies listed in the `requirements.txt` file. (PyQT5 & gpustat)
|
||||||
3. Run the `StartUI.py` script using Python `python3 StartUI.py`.
|
3. Run the `StartUI.py` script using Python `python3 StartUI.py`.
|
||||||
4. Configure the desired settings using the GUI elements.
|
4. Configure the desired settings using the GUI elements.
|
||||||
5. Click the "Save Settings" button to save the current settings to a profile.
|
5. Click the "Save Settings" button to save the current settings to a profile.
|
||||||
@ -45,22 +40,10 @@ On Linux, you'll need to give StartUI the executable flag (`chmod +x StartUI` or
|
|||||||
The WebuiGUI.py must also be there, to handle the flags properly
|
The WebuiGUI.py must also be there, to handle the flags properly
|
||||||
|
|
||||||
## Screenshots
|
## Screenshots
|
||||||
V1.4 :\
|
V1.1 :\
|
||||||
<details>
|

|
||||||
|

|
||||||
<summary>Screenshots</summary>
|

|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
1472
StartUI.py
1472
StartUI.py
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
|||||||
PyQt5
|
PyQt5
|
||||||
gpustat
|
gpustat
|
||||||
psutil
|
psutil
|
||||||
qdarkstyle
|
pyqtdarktheme
|
||||||
darkdetect
|
darkdetect
|
||||||
requests
|
requests
|
||||||
Loading…
x
Reference in New Issue
Block a user