This commit is contained in:
Dan Saunders
2025-09-15 19:34:08 -04:00
parent d7de6b0e96
commit 5c2229721d
2 changed files with 24 additions and 5 deletions

View File

@@ -210,7 +210,12 @@ def main():
f"torch_grouped\t{t_ms:.2f} ms\t{tokens / (t_ms / 1000):.1f} tok/s\t{tflops:.2f} TFLOP/s\t{speedup:.2f}×"
)
else:
print("torch_grouped\tN/A (op not callable)")
try:
from axolotl.kernels.moe.torch_grouped import LAST_ERROR as _TG_ERR
except Exception:
_TG_ERR = None
reason = f" (reason: {_TG_ERR})" if _TG_ERR else ""
print(f"torch_grouped\tN/A (op not callable){reason}")
else:
print("torch_grouped\tN/A (unavailable)")