@karthikgali Did you end up with a decent solution for this issue?  Did you try the solution suggested on StackOverflow below?
Here are some leads:
  
      github.com/huggingface/transformers
  
  
    
  
	  
  

  
    
      Pegasus ONNX format? 12
    

    
      
        opened 
        
          
        
        Feb 6, 2021
      
      


      
        
          
          Ashwin367
        
      
    
  



  I tried to convert Pegasus to the ONNX format using this guide but it failed. Can Pegasus be converted to the...





  
  
    
    
  
  


  
      stackoverflow.com
  
  
      
    
  

  how to convert HuggingFace's Seq2seq models to onnx format 8



  python, tensorflow, pytorch, huggingface-transformers



  
  answered by
  
    WaveShaper
  
  on 10:36AM - 09 Feb 21 UTC


  
  
    
    
  
  


  
      github.com/huggingface/transformers
  
  
    
  
	  
  

  
    
      When would pegasus be able to be exported in ONNX format? 6
    

    
      
        opened 
        
          
        
        Nov 2, 2020
      
      


      
        
          
          phosfuldev
        
      
    
  



  It seems like it's not available now, I got this error:
Error while converting the model: Unrecognized configuration class <class 'transformers.configuration_pegasus.PegasusConfig'> for...





  
  
    
    
  
  


thanks