Use critical path totals for TP8 breakdown

This commit is contained in:
2026-07-19 19:03:49 +08:00
parent 6b80266aa7
commit 51f2072d30
2 changed files with 49 additions and 25 deletions

View File

@@ -248,6 +248,7 @@ class FidelityEnvelopeTest(unittest.TestCase):
for category, names in module.OP_CATEGORIES.items():
for name in names:
self.assertEqual(module.op_category(name), category)
self.assertIsNone(module.op_category("expert_parallel_allreduce_wait"))
with self.assertRaisesRegex(ValueError, "unclassified"):
module.op_category("unknown_graph_overhead")
component_row = {name: 1.0 for name in (*module.CATEGORIES, "total")}