Commit ea63cde
committed
[GraphTrainer] Remove inductor_region from RMSNorm annotation pass
Address review feedback:
1. Default rmsnorm_compile_config to None (was required kwarg).
2. Remove per-norm inductor_region assignment — the CapabilityBasedPartitioner
in regional_inductor already separates disconnected norm subgraphs into
distinct partitions. Explicit region IDs caused each norm to compile as a
separate subgraph, inflating memory by ~17 GiB.
Benchmark (Llama3 8B, 8×H100, FSDP4+TP2, c4_test, 20 steps):
| Branch | tps | MFU | Memory |
|--------------------------------|-------|--------|-----------|
| main | 6,538 | 38.29% | 30.92 GiB |
| branch (with inductor_region) | 6,559 | 38.41% | 47.74 GiB |
| branch (without inductor_region)| 6,600 | 38.65% | 30.92 GiB |1 parent 2e6baa8 commit ea63cde
2 files changed
Lines changed: 14 additions & 59 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
542 | | - | |
| 542 | + | |
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| |||
548 | 548 | | |
549 | 549 | | |
550 | 550 | | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | 551 | | |
556 | 552 | | |
557 | 553 | | |
| |||
570 | 566 | | |
571 | 567 | | |
572 | 568 | | |
573 | | - | |
574 | 569 | | |
575 | 570 | | |
576 | 571 | | |
577 | 572 | | |
578 | 573 | | |
579 | 574 | | |
580 | | - | |
581 | | - | |
582 | | - | |
583 | | - | |
584 | | - | |
585 | | - | |
| 575 | + | |
586 | 576 | | |
587 | 577 | | |
588 | 578 | | |
589 | 579 | | |
590 | 580 | | |
591 | | - | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
592 | 584 | | |
593 | 585 | | |
594 | 586 | | |
595 | 587 | | |
596 | | - | |
597 | | - | |
| 588 | + | |
598 | 589 | | |
599 | 590 | | |
600 | 591 | | |
| |||
Lines changed: 8 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
1359 | | - | |
1360 | | - | |
1361 | | - | |
1362 | | - | |
1363 | | - | |
1364 | | - | |
1365 | | - | |
1366 | | - | |
1367 | | - | |
1368 | | - | |
1369 | | - | |
1370 | 1359 | | |
1371 | 1360 | | |
1372 | 1361 | | |
| |||
1401 | 1390 | | |
1402 | 1391 | | |
1403 | 1392 | | |
1404 | | - | |
1405 | | - | |
| 1393 | + | |
| 1394 | + | |
1406 | 1395 | | |
1407 | 1396 | | |
1408 | 1397 | | |
| |||
1416 | 1405 | | |
1417 | 1406 | | |
1418 | 1407 | | |
1419 | | - | |
1420 | | - | |
1421 | | - | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
| 1408 | + | |
| 1409 | + | |
1425 | 1410 | | |
1426 | 1411 | | |
1427 | 1412 | | |
| |||
1438 | 1423 | | |
1439 | 1424 | | |
1440 | 1425 | | |
1441 | | - | |
1442 | | - | |
1443 | 1426 | | |
1444 | 1427 | | |
1445 | 1428 | | |
| |||
1475 | 1458 | | |
1476 | 1459 | | |
1477 | 1460 | | |
1478 | | - | |
1479 | 1461 | | |
1480 | 1462 | | |
1481 | 1463 | | |
| |||
1496 | 1478 | | |
1497 | 1479 | | |
1498 | 1480 | | |
1499 | | - | |
1500 | | - | |
| 1481 | + | |
| 1482 | + | |
1501 | 1483 | | |
1502 | 1484 | | |
1503 | 1485 | | |
| |||
1511 | 1493 | | |
1512 | 1494 | | |
1513 | 1495 | | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
1526 | | - | |
1527 | | - | |
1528 | | - | |
1529 | | - | |
1530 | | - | |
1531 | | - | |
1532 | | - | |
1533 | | - | |
| 1496 | + | |
| 1497 | + | |
1534 | 1498 | | |
1535 | 1499 | | |
1536 | 1500 | | |
| |||
0 commit comments