Fix: disable snap-to-ticks for sliders and reduce MAX_TOP_K limit

This commit is contained in:
extio-de
2026-05-29 23:18:43 +02:00
parent f05611ebb4
commit 7b83576c04
3 changed files with 5 additions and 5 deletions

Binary file not shown.

View File

@@ -301,7 +301,7 @@ public class LaunchFrame extends JFrame {
this.slider_context.setMaximum(131072); this.slider_context.setMaximum(131072);
this.slider_context.setMajorTickSpacing(65536); this.slider_context.setMajorTickSpacing(65536);
this.slider_context.setMinorTickSpacing(8192); this.slider_context.setMinorTickSpacing(8192);
this.slider_context.setSnapToTicks(true); this.slider_context.setSnapToTicks(false);
this.slider_context.setPaintLabels(true); this.slider_context.setPaintLabels(true);
this.slider_context.setPaintTicks(true); this.slider_context.setPaintTicks(true);
this.panel_3.add(this.slider_context); this.panel_3.add(this.slider_context);
@@ -313,7 +313,7 @@ public class LaunchFrame extends JFrame {
} }
{ {
this.slider_threads = new JSlider(); this.slider_threads = new JSlider();
this.slider_threads.setSnapToTicks(true); this.slider_threads.setSnapToTicks(false);
this.slider_threads.setValue(0); this.slider_threads.setValue(0);
this.slider_threads.setPaintLabels(true); this.slider_threads.setPaintLabels(true);
this.slider_threads.setPaintTicks(true); this.slider_threads.setPaintTicks(true);
@@ -404,7 +404,7 @@ public class LaunchFrame extends JFrame {
this.slider_topK.setValue(Model.DEFAULT_TOP_K); this.slider_topK.setValue(Model.DEFAULT_TOP_K);
this.slider_topK.setMajorTickSpacing(100); this.slider_topK.setMajorTickSpacing(100);
this.slider_topK.setMinorTickSpacing(25); this.slider_topK.setMinorTickSpacing(25);
this.slider_topK.setSnapToTicks(true); this.slider_topK.setSnapToTicks(false);
this.slider_topK.setPaintLabels(true); this.slider_topK.setPaintLabels(true);
this.slider_topK.setPaintTicks(true); this.slider_topK.setPaintTicks(true);
this.slider_topK.addChangeListener(e -> LaunchFrame.this.updateSamplingValueLabels()); this.slider_topK.addChangeListener(e -> LaunchFrame.this.updateSamplingValueLabels());
@@ -637,7 +637,7 @@ public class LaunchFrame extends JFrame {
this.slider_context.setMinorTickSpacing(Math.max(1, model.maxContextSize() / 16)); this.slider_context.setMinorTickSpacing(Math.max(1, model.maxContextSize() / 16));
this.slider_context.setValue(model.contextSize()); this.slider_context.setValue(model.contextSize());
this.slider_context.setLabelTable(this.slider_context.createStandardLabels(Math.max(1, model.maxContextSize() / 4))); this.slider_context.setLabelTable(this.slider_context.createStandardLabels(Math.max(1, model.maxContextSize() / 4)));
this.slider_context.setSnapToTicks(true); this.slider_context.setSnapToTicks(false);
this.slider_context.repaint(); this.slider_context.repaint();
this.slider_threads.setValue(model.threads()); this.slider_threads.setValue(model.threads());

View File

@@ -23,7 +23,7 @@ record Model(String path, int contextSize, int maxContextSize, int gpuLayers, in
static final int MIN_TOP_K = 0; static final int MIN_TOP_K = 0;
static final int MAX_TOP_K = 500; static final int MAX_TOP_K = 250;
static final double MIN_MIN_P = 0d; static final double MIN_MIN_P = 0d;