• Younes Belkada's avatar
    [ `T5`] fix fp16 loading issue (#20878) · accad48e
    Younes Belkada authored
    * fix fp16 loading issue
    
    * add backward compatibility
    
    * better refactor
    
    * better readability
    
    - remove `force_upcast_dtype` as it is used once
    - use `inspect`
    - add `TODO`
    accad48e
modeling_utils.py 159 KB