Just for reference , maybe useful to community on this topic 

  
      github.com/huggingface/transformers
  
  
    
  
    
  

  
    
      Diverse beam search 14
    

    
      huggingface:master ← ayushtiku5:diverse_beam_search
    

    
      
        opened 
        
          
        
        Nov 19, 2020
      
      

      
        
          
          ayushtiku5
        
      

      
        
          +590
          -20