We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d201e5 commit e615051Copy full SHA for e615051
1 file changed
model2vec/distill/utils.py
@@ -26,7 +26,7 @@ def select_optimal_device(device: str | None) -> str:
26
if device == "mps" and mps_broken:
27
raise RuntimeError(
28
f"MPS is disabled for PyTorch {torch.__version__} due to known performance regressions. "
29
- "Please use CPU or CUDA instead."
+ "Please use CPU or CUDA instead, or use a PyTorch version < 2.8.0."
30
)
31
else:
32
return device
@@ -37,7 +37,7 @@ def select_optimal_device(device: str | None) -> str:
37
if mps_broken:
38
logger.warning(
39
f"MPS is available but PyTorch {torch.__version__} has known performance regressions. "
40
- "Falling back to CPU."
+ "Falling back to CPU. Please use a PyTorch version < 2.8.0 to enable MPS support."
41
42
device = "cpu"
43
0 commit comments