• Ond艡ej C铆fka's avatar
    Fix `kwargs` handling in `generate_with_fallback` (#29225) · bcd42c4a
    Ond艡ej C铆fka authored
    * Fix generate_with_fallback **kwargs
    
    * Change pop to get
    
    * Delete keys from kwargs to prevent overriding generation_config
    
    * Revert to passing kwargs by reference, but make a (shallow) copy
    
    * dict -> copy.copy
    
    * Add test_whisper_longform_multi_batch_beam
    bcd42c4a
test_modeling_whisper.py 213 KB