• Cyril Vallez's avatar
    Remove low_cpu_mem_usage and _fast_init (#36963) · f304318f
    Cyril Vallez authored
    * Remove low_cpu_mem_usage and _fast_init
    
    * Update deepspeed.py
    
    * Update modeling_utils.py
    
    * remove the first 2 tests everywhere
    
    * Update test_modeling_common.py
    
    * remove what was remaining about fast_init
    
    * fix logic and simplify
    
    * mismatched keys logic update
    
    * Update modeling_utils.py
    
    * Update modeling_utils.py
    
    * Update modeling_utils.py
    
    * Update modeling_utils.py
    
    * fix 2 models init_weights
    
    * extend to others
    
    * remove grad
    
    * Update modeling_fsmt.py
    
    * init weights in tests
    
    * style
    
    * Update test_modeling_fsmt.py
    
    * more old models
    
    * fix more init_weights
    
    * copies
    
    * fix
    
    * style
    
    * Update modeling_lxmert.py
    
    * fix inits
    
    * more and more
    
    * more
    
    * should finalize
    
    * style
    
    * Update modeling_dinov2_with_registers.py
    
    * fix
    
    * Update modeling_encoder_decoder.py
    
    * fix
    
    * style
    
    * Update modeling_lxmert.py
    
    * post rebase cleanup
    
    * Update modeling_informer.py
    
    * back to start for device
    
    * fix
    
    * add test to detect all failing cases corre...
    f304318f