diff --git a/modules/devices.py b/modules/devices.py index c8483f97d..490d2a54d 100644 --- a/modules/devices.py +++ b/modules/devices.py @@ -285,7 +285,7 @@ def test_bf16(): return bf16_ok elif backend == 'zluda': device_name = torch.cuda.get_device_name(device) - if "AMD Radeon RX " in device_name: # only force AMD + if device_name.startswith("AMD Radeon RX "): # only force AMD device_name = device_name.replace("AMD Radeon RX ", "").split(" ", maxsplit=1)[0] if len(device_name) == 4 and device_name[0] in {"5", "6"}: # RDNA 1 and 2 bf16_ok = False diff --git a/modules/intel/openvino/__init__.py b/modules/intel/openvino/__init__.py index 08a5d2d2a..157d26d96 100644 --- a/modules/intel/openvino/__init__.py +++ b/modules/intel/openvino/__init__.py @@ -296,6 +296,7 @@ def openvino_compile_cached_model(cached_model_path, *example_inputs): hints[ov_hints.execution_mode] = ov_hints.ExecutionMode.PERFORMANCE elif shared.opts.openvino_accuracy == "accuracy": hints[ov_hints.execution_mode] = ov_hints.ExecutionMode.ACCURACY + core.set_property(hints) dont_use_nncf = False dont_use_quant = False dont_use_4bit_nncf = False