LostRuins / koboldcpp

Run GGUF models easily with a KoboldAI UI. One File. Zero Install.
https://github.com/lostruins/koboldcpp
GNU Affero General Public License v3.0
5.14k stars 353 forks source link

[BUG] (1.48) The new UI fails to launch when compiled with LLAMA_CLBLAST=1 flag #513

Closed int3rrobang closed 11 months ago

int3rrobang commented 11 months ago

Prerequisites

Please answer the following questions for yourself before submitting an issue.

Expected Behavior

The new UI opens when compiled with LLAMA_CLBLAST=1

Current Behavior

The UI fails to open if koboldcpp is compiled with LLAMA_CLBLAST=1 with a customtkinter error

Environment and Context


* Operating System:

   ~/koboldcpp_noblas    concedo  neofetch  ✔ ██████████████████ ████████ kostsya@BALLBSMASHER692012 ██████████████████ ████████ -------------------------- ██████████████████ ████████ OS: Manjaro Linux x86_64 ██████████████████ ████████ Host: TUF Gaming FX505DT_FX505DT 1.0 ████████ ████████ Kernel: 6.5.5-1-MANJARO ████████ ████████ ████████ Uptime: 9 hours, 15 mins ████████ ████████ ████████ Packages: 1574 (pacman), 9 (flatpak) ████████ ████████ ████████ Shell: bash 5.1.16 ████████ ████████ ████████ Resolution: 1920x1080 ████████ ████████ ████████ DE: Plasma 5.27.8 ████████ ████████ ████████ WM: kwin ████████ ████████ ████████ Theme: [Plasma], Breeze [GTK2/3] ████████ ████████ ████████ Icons: [Plasma], candy-icons [GTK2/3] ████████ ████████ ████████ Terminal: konsole CPU: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx (8) @ 2.100GHz GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series GPU: NVIDIA GeForce GTX 1650 Mobile / Max-Q Memory: 9066MiB / 15422MiB


* SDK version:

   ~/koboldcpp_noblas    concedo  python3 --version  ✔ Python 3.11.5    ~/koboldcpp_noblas    concedo  make --version  ✔ GNU Make 4.4.1 Built for x86_64-pc-linux-gnu Copyright (C) 1988-2023 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.    ~/koboldcpp_noblas    concedo  g++ --version  1 ✘ g++ (GCC) 13.2.1 20230801 Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


# Failure Information (for bugs)

Compiling koboldcpp with no flag, LLAMA_CUBLAS=1 or LLAMA_OPENBLAS=1, the UI works as intended; when compiled with LLAMA_CLBLAST=1, it fails to run with a customtkinter error. I have customtkinter installed system-wide from the AUR. A blank tkinter window appears, as well as an error window.

![image](https://github.com/LostRuins/koboldcpp/assets/80174663/69ef37c3-c03e-45df-b3c7-a895d5dc0261)

# Steps to Reproduce

1. Clone the repository and compile it through make with the LLAMA_CLBLAST=1 flag
2. Run the koboldcpp.py file in the directory

# Failure Logs

   ~/koboldcpp    concedo  ./koboldcpp.py  ✔


Welcome to KoboldCpp - Version 1.48 For command line arguments, please refer to --help


Warning, GUI failed to start: Reason: list.remove(x): x not in list File selection GUI unsupported. customtkinter python module required! Please check command line: script.py --help

LostRuins commented 11 months ago

Pushed a fix, please try again

thecord commented 11 months ago

hi, there still the issue I tried today but still the bug in AUR after re-compiled Koboldcpp. `[TheCoRd@Yami-Arch ~]$ koboldcpp


Welcome to KoboldCpp - Version 1.48 For command line arguments, please refer to --help


Warning, GUI failed to start: Reason: list.remove(x): x not in list File selection GUI unsupported. customtkinter python module required! Please check command line: script.py --help ` image

thecord commented 11 months ago

it's fixed and worked perfectly thanks. ` $ koboldcpp


Welcome to KoboldCpp - Version 1.50 For command line arguments, please refer to --help


` using: Arch Linux