mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-29 18:26:37 +08:00
don't throw if no metal
This commit is contained in:
parent
d6222ae7ff
commit
1b05b51dc5
@ -31,10 +31,8 @@ from .utils import generate_step, load
|
||||
|
||||
|
||||
def get_system_fingerprint():
|
||||
return (
|
||||
f"{__version__}-{mx.__version__}-{platform.platform()}-"
|
||||
f"{mx.metal.device_info().get('architecture', '')}"
|
||||
)
|
||||
gpu_arch = mx.metal.device_info()["architecture"] if mx.metal.is_available() else ""
|
||||
return f"{__version__}-{mx.__version__}-{platform.platform()}-{gpu_arch}"
|
||||
|
||||
|
||||
class StopCondition(NamedTuple):
|
||||
|
Loading…
Reference in New Issue
Block a user