Skip to content

Commit

Permalink
lowvram var defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
LostRuins committed Dec 8, 2023
1 parent 7418bca commit 7a69152
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion koboldcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ def show_new_gui():
keepforeground = ctk.IntVar()
quietmode = ctk.IntVar(value=0)

lowvram_var = ctk.IntVar()
lowvram_var = ctk.IntVar(value=1)
mmq_var = ctk.IntVar(value=1)
blas_threads_var = ctk.StringVar()
blas_size_var = ctk.IntVar()
Expand Down Expand Up @@ -1304,6 +1304,12 @@ def autoset_gpu_layers(filepath): #shitty algo to determine how many layers to u
layerlimit = int(min(200,mem/sizeperlayer))
else:
layerlimit = 200 #assume full offload

if layerlimit>=200:
lowvram_var.set(0)
else:
lowvram_var.set(1)

old_gui_layers_untouched = gui_layers_untouched
gui_layers_zeroed = gpulayers_var.get()=="" or gpulayers_var.get()=="0"
if (gui_layers_untouched or gui_layers_zeroed) and layerlimit>0:
Expand Down

0 comments on commit 7a69152

Please sign in to comment.