Transformers module - parameter count and size
Normally, the model size / parameter count can be calculated likepytorch_total_params = sum(p.numel() for p in model.parameters())PyTorch Forums – 25 Aug 21Finding model sizevisionHi, I am curious about calculating model size (MB) for NN in pytorch.  Is it equivalent to the size of the file from torch.save(model.state_dict(),‘example.pth’)?  Please refer to the image below from PointNet++Reading time: 1 mins 🕑Likes: 12 ❤But when we use transformers module, the normal ways didn’t workfrom transformers import Wav2Vec2Processor
processor = Wav2Vec2Processor.from_pretrained("facebook/hubert-xlarge-ls960-ft")
# processor.parameters() -> error (has no attribute parameters)
# Wav2Vec2Processor.parameters() -> error (has no attribute parameters)
# Wav2Vec2Processor.feature_extractor.parameters() -> error (has no attribute parameters)Is there any way to know the model size / paramter count of  transformers module?