Hi🤗
Do you mean size in mb or the number of the parameters used?
Regarding size check this:
  

      stackoverflow.com
  

  
      
    
  


  How to get the size of a Hugging Face pretrained model? 21



  python, deep-learning, nlp, pytorch



  
  answered by
  
    Tobias H&#246;lzer
  
  on 05:23PM - 28 Jun 21 UTC


  

  
    
    
  

  


Regarding the number of the parameters in PyTorch you can use:
sum(p.numel() for p in model.parameters())