• Suraj Patil's avatar
    remove adjust_logits_during_generation method (#10087) · c130e67d
    Suraj Patil authored
    * add forced logits processors
    
    * delete adjust_logits method
    
    * add forced_eos_token_id argument in config
    
    * add tests for forced logits processors
    
    * update gen utils tests
    
    * add forced option to tf generate
    
    * remove adjust_logits method from tf models
    
    * update adjust_logits for marian
    
    * delete _force_token_id_to_be_generated method
    
    * style
    
    * import warnings
    
    * pass max_length to _get_logits_processor
    
    * set forced_eos_token_id to None
    
    * set forced attributes in conf utils
    
    * typo
    
    * fix rag generate
    
    * add forced_eos_token_id in rag config
    
    * remove force_bos_token_to_be_generated from BartConfig
    
    * remove _force_token_ids_generation from FSMT
    
    * nit
    
    * fix negative constant
    
    * apply suggestions from code review
    c130e67d
modeling_pegasus.py 69.9 KB