Skip to content

Commit

Permalink
Add param counting to train script (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
loubbrad authored Oct 16, 2023
1 parent 22e0657 commit 3c7bdf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aria/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ def _bench():
break

flop_counter = FlopCounterMode(display=False)
logger.info(
f"Model has "
f"{'{:,}'.format(sum(p.numel() for p in model.parameters() if p.requires_grad))} "
"parameters"
)
logger.info("Profiling FLOP/s")
_bench()

Expand Down

0 comments on commit 3c7bdf5

Please sign in to comment.