hotfix: missing return in METAL dm benchmark (#6749)

This commit is contained in:
qazal
2024-09-26 09:12:38 +08:00
committed by GitHub
parent 8a15ccb414
commit 12e4a4900a

View File

@@ -74,7 +74,9 @@ def benchmark_model(m, devices, validate_outs=False):
del inputs, tinygrad_model, tinygrad_jitted_model
except RuntimeError as e:
# TODO: we don't run the dm model on METAL for now
if Device.DEFAULT == "METAL": assert "buffer count limit" in str(e)
if Device.DEFAULT == "METAL":
assert "buffer count limit" in str(e)
return
else: raise e
# convert model to torch