Skip to content

Commit 5bf1a34

Browse files
committed
Loading model button on more pages
1 parent 4a8182d commit 5bf1a34

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

koboldcpp.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3082,8 +3082,9 @@ def changerunmode(a,b,c):
30823082
context_var.trace("w", changed_gpulayers_estimate)
30833083

30843084
# load model
3085-
makefileentry(quick_tab, "Model:", "Select GGUF or GGML Model File", model_var, 40, 280, onchoosefile=on_picked_model_file,tooltiptxt="Select a GGUF or GGML model file on disk to be loaded.")
3085+
makefileentry(quick_tab, "Model:", "Select GGML or GGML Model File", model_var, 50, 576, onchoosefile=on_picked_model_file,tooltiptxt="Select a GGUF or GGML model file on disk to be loaded.")
30863086
model_var.trace("w", gui_changed_modelfile)
3087+
ctk.CTkButton(quick_tab, text = "Run Benchmark", command = guibench ).grid(row=110,column=0, stick="se", padx= 0, pady=2)
30873088

30883089
# Hardware Tab
30893090
hardware_tab = tabcontent["Hardware"]
@@ -3140,7 +3141,11 @@ def changerunmode(a,b,c):
31403141

31413142
# force version
31423143
makelabelentry(hardware_tab, "Force Version:" , version_var, 100, 50,tooltip="If the autodetected version is wrong, you can change it here.\nLeave as 0 for default.")
3143-
ctk.CTkButton(hardware_tab , text = "Run Benchmark", command = guibench ).grid(row=110,column=0, stick="se", padx= 0, pady=2)
3144+
3145+
# load model
3146+
makefileentry(hardware_tab, "Model:", "Select GGML or GGML Model File", model_var, 50, 576, onchoosefile=on_picked_model_file,tooltiptxt="Select a GGUF or GGML model file on disk to be loaded.")
3147+
model_var.trace("w", gui_changed_modelfile)
3148+
ctk.CTkButton(hardware_tab, text = "Run Benchmark", command = guibench ).grid(row=110,column=0, stick="se", padx= 0, pady=2)
31443149

31453150

31463151
runopts_var.trace('w', changerunmode)
@@ -3187,6 +3192,9 @@ def togglerope(a,b,c):
31873192
noqkvlabel.configure(text_color="#ff5555")
31883193
qkvslider,qkvlabel,qkvtitle = makeslider(tokens_tab, "Quantize KV Cache:", quantkv_text, quantkv_var, 0, 22, 30, set=0,tooltip="Enable quantization of KV cache (KVQ). Mode 0 (F16) is default. Modes 1-12 requires FlashAttention and disables ContextShift.\nModes 15-20 work without FA, for incompatible models. 0,13,14 can work with or without.")
31893194

3195+
# load model
3196+
makefileentry(tokens_tab, "Model:", "Select GGML or GGML Model File", model_var, 50, 576, onchoosefile=on_picked_model_file,tooltiptxt="Select a GGUF or GGML model file on disk to be loaded.")
3197+
31903198
togglerope(1,1,1)
31913199
toggleflashattn(1,1,1)
31923200
togglectxshift(1,1,1)
@@ -3211,6 +3219,7 @@ def pickpremadetemplate():
32113219
mmproj_var.trace("w", gui_changed_modelfile)
32123220
makecheckbox(model_tab, "Allow Launch Without Models", nomodel, 15, tooltiptxt="Allows running the WebUI with no model loaded.")
32133221

3222+
ctk.CTkButton(model_tab, text = "Run Benchmark", command = guibench ).grid(row=110,column=0, stick="se", padx= 0, pady=2)
32143223
# Network Tab
32153224
network_tab = tabcontent["Network"]
32163225

0 commit comments

Comments
 (0)