flair
flair copied to clipboard
How to get the total number of parameters for FLAIR models
the model.summary() does not work which could be obvious since FLAIR has its own model. The print(model) works however it prints the model layers without giving a summary. Can anyone enable this or a way to find it out?
Hi @kaliaanup , you could try to use this solution:
for name, param in model.named_parameters():
if param.requires_grad:
print(name, param.numel())
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.