@@ -798,9 +798,7 @@ def _stub_mimo_config(
798798 return SimpleNamespace (
799799 language_model_spec = SimpleNamespace (params = {'config' : language_config }),
800800 modality_submodules_spec = {
801- "images" : SimpleNamespace (
802- params = {} if modality_params is None else modality_params
803- )
801+ "images" : SimpleNamespace (params = {} if modality_params is None else modality_params )
804802 },
805803 )
806804
@@ -830,9 +828,7 @@ def test_empty_encoder_output_uses_language_dtype_without_modality_config(self,
830828 monkeypatch .setattr (torch .cuda , "current_device" , lambda : torch .device ("cpu" ))
831829 model = MimoModel .__new__ (MimoModel )
832830 model .mimo_config = self ._stub_mimo_config (
833- hidden_size = 8 ,
834- language_dtype = torch .bfloat16 ,
835- modality_params = {},
831+ hidden_size = 8 , language_dtype = torch .bfloat16 , modality_params = {}
836832 )
837833
838834 output = model ._empty_encoder_output ("images" )
@@ -846,9 +842,7 @@ def test_empty_encoder_output_defaults_to_float32_without_language_dtype(self, m
846842 monkeypatch .setattr (torch .cuda , "current_device" , lambda : torch .device ("cpu" ))
847843 model = MimoModel .__new__ (MimoModel )
848844 model .mimo_config = self ._stub_mimo_config (
849- hidden_size = 8 ,
850- include_language_dtype = False ,
851- modality_params = {},
845+ hidden_size = 8 , include_language_dtype = False , modality_params = {}
852846 )
853847
854848 output = model ._empty_encoder_output ("images" )
0 commit comments