mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
hide gpu input box when dropdown not selected, minor memory fix for neox and gptj
This commit is contained in:
parent
1ddbb9acd9
commit
9aa2d8535b
3 changed files with 22 additions and 10 deletions
10
koboldcpp.py
10
koboldcpp.py
|
@ -459,7 +459,14 @@ def show_gui():
|
|||
opts = ["Use OpenBLAS","Use CLBLast GPU #1","Use CLBLast GPU #2","Use CLBLast GPU #3","Use No BLAS","Use OpenBLAS (Old CPU, noavx2)","Failsafe Mode (Old CPU, noavx)"]
|
||||
runchoice = tk.StringVar()
|
||||
runchoice.set("Use OpenBLAS")
|
||||
tk.OptionMenu( root , runchoice , *opts ).grid(row=2,column=0)
|
||||
def onDropdownChange(event):
|
||||
sel = runchoice.get()
|
||||
if sel==opts[1] or sel==opts[2] or sel==opts[3]:
|
||||
frm1.grid(row=4,column=0,pady=4)
|
||||
else:
|
||||
frm1.grid_forget()
|
||||
pass
|
||||
tk.OptionMenu( root , runchoice , command = onDropdownChange ,*opts ).grid(row=2,column=0)
|
||||
|
||||
|
||||
frm2 = tk.Frame(root)
|
||||
|
@ -479,6 +486,7 @@ def show_gui():
|
|||
gpu_lbl.grid(row=0,column=0)
|
||||
gpu_layers_input.grid(row=0,column=1)
|
||||
frm1.grid(row=4,column=0,pady=4)
|
||||
onDropdownChange(None)
|
||||
|
||||
stream = tk.IntVar()
|
||||
smartcontext = tk.IntVar()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue