Created
November 24, 2023 12:56
-
-
Save sleepingcat4/6be2393d85591f9da7a543a32456883c to your computer and use it in GitHub Desktop.
we're counting params using torchscale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
total_params = sum(p.numel() for p in model.parameters()) | |
print(f"Total parameters in the model: {total_params}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment