@@ -1301,13 +1301,13 @@ def _check_help_arguments(self, a_namer: typing.Callable[[str], str]) -> bool:
13011301
13021302 if text_encoder_help and len (self .text_encoder_uris ) > 1 :
13031303 raise RenderLoopConfigError (
1304- f'You cannot specify "help" or "helpargs" to { a_namer ("text_encoders " )} '
1304+ f'You cannot specify "help" or "helpargs" to { a_namer ("text_encoder_uris " )} '
13051305 f'with multiple values involved.'
13061306 )
13071307
13081308 if second_model_text_encoder_help and len (self .second_model_text_encoder_uris ) > 1 :
13091309 raise RenderLoopConfigError (
1310- f'You cannot specify "help" or "helpargs" to { a_namer ("second_model_text_encoders " )} '
1310+ f'You cannot specify "help" or "helpargs" to { a_namer ("second_model_text_encoder_uris " )} '
13111311 f'with multiple values involved.'
13121312 )
13131313
@@ -1340,6 +1340,18 @@ def _check_optimization_features(self, a_namer: typing.Callable[[str], str]):
13401340 f'{ a_namer ("model_cpu_offload" )} is not compatible '
13411341 f'with { a_namer ("ras" )} and related arguments.'
13421342 )
1343+ if self .ras_index_fusion and self .model_sequential_offload :
1344+ raise RenderLoopConfigError (
1345+ f'{ a_namer ("ras_index_fusion" )} is not compatible '
1346+ f'with { a_namer ("model_sequential_offload" )} .'
1347+ )
1348+
1349+ if self .ras_index_fusion and (
1350+ self .quantizer_uri or (self .unet_uri and _pipelinewrapper .UNetUri .parse (self .unet_uri ).quantizer )
1351+ ):
1352+ raise RenderLoopConfigError (
1353+ f'{ a_namer ("ras_index_fusion" )} is not supported for RAS when UNet quantization is enabled, '
1354+ f'quantize the text encoders individually using { a_namer ("text_encoder_uris" )} .' )
13431355
13441356 def _check_second_model_compatibility (self , a_namer : typing .Callable [[str ], str ]):
13451357 """Check compatibility of second model arguments with the primary model type."""
0 commit comments