Skip to content

Commit 8f7155e

Browse files
committed
improve gui layout
1 parent 45bf7bd commit 8f7155e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gui/main_window.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _load_quantization_support(self) -> None:
147147
config = config_manager.load_config()
148148
self.supported_quantizations = config.get("supported_quantizations", {"cpu": [], "cuda": []})
149149
except Exception as e:
150-
logger.error(f"Failed to load quantization support: {e}")
150+
logger.error(f"Failed to load precision support: {e}")
151151
self.supported_quantizations = {"cpu": ["float32"], "cuda": []}
152152

153153
def _validate_model(self, model_name: str) -> str:
@@ -171,7 +171,7 @@ def _validate_quantization(self, quantization: str, model_name: str, device: str
171171
if quantization in available:
172172
return quantization
173173
if available:
174-
logger.warning(f"Quantization '{quantization}' not available for {model_name}/{device}, using {available[0]}")
174+
logger.warning(f"Precision '{quantization}' not available for {model_name}/{device}, using {available[0]}")
175175
return available[0]
176176
logger.warning(f"No quantizations available for {model_name}/{device}, using float32")
177177
return "float32"
@@ -413,7 +413,7 @@ def _build_settings_group(self) -> QGroupBox:
413413
self._register_toggleable_widget(self.device_dropdown)
414414

415415
self.quantization_dropdown = QComboBox()
416-
self.quantization_dropdown.setToolTip("Choose the compute type (quantization)")
416+
self.quantization_dropdown.setToolTip("Choose (quantization) precision")
417417
self._register_toggleable_widget(self.quantization_dropdown)
418418

419419
self.append_checkbox = QCheckBox("Append")
@@ -424,7 +424,7 @@ def _build_settings_group(self) -> QGroupBox:
424424
row = QHBoxLayout()
425425
row.setSpacing(10)
426426

427-
for label, widget in [("Device", self.device_dropdown), ("Quantization", self.quantization_dropdown)]:
427+
for label, widget in [("Device", self.device_dropdown), ("Precision", self.quantization_dropdown)]:
428428
form = QFormLayout()
429429
form.setContentsMargins(0, 0, 0, 0)
430430
form.setHorizontalSpacing(10)

0 commit comments

Comments
 (0)