mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-30 02:53:41 +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():
|
def get_system_fingerprint():
|
||||||
return (
|
gpu_arch = mx.metal.device_info()["architecture"] if mx.metal.is_available() else ""
|
||||||
f"{__version__}-{mx.__version__}-{platform.platform()}-"
|
return f"{__version__}-{mx.__version__}-{platform.platform()}-{gpu_arch}"
|
||||||
f"{mx.metal.device_info().get('architecture', '')}"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class StopCondition(NamedTuple):
|
class StopCondition(NamedTuple):
|
||||||
|
Loading…
Reference in New Issue
Block a user