@@ -492,46 +492,46 @@ def test_checkpoint_pruning_with_files(tmp_path):
492492]
493493
494494
495- def test_checkpoint_save_and_load_single_process_ddp_fp8_quantized (recipe_path , tmp_path ):
495+ def test_checkpoint_save_and_load_single_process_ddp_fp8_quantized (recipe_path , tmp_path , fp_recipe ):
496496 """Test checkpoint save/resume for DDP with FP8 quantized model init."""
497497 _run_single_process_checkpoint_test (
498498 recipe_path ,
499499 tmp_path ,
500500 main_ddp ,
501501 ckpt_subdir_name = "train_ddp" ,
502502 config_name = "L0_sanity_cp" ,
503- extra_overrides = _FP8_QUANTIZED_OVERRIDES ,
503+ extra_overrides = [ * _FP8_QUANTIZED_OVERRIDES , * fp_recipe ] ,
504504 is_ddp = True ,
505505 )
506506
507507
508- def test_checkpoint_save_and_load_single_process_fsdp2_fp8_quantized (recipe_path , tmp_path ):
508+ def test_checkpoint_save_and_load_single_process_fsdp2_fp8_quantized (recipe_path , tmp_path , fp_recipe ):
509509 """Test checkpoint save/resume for FSDP2 with FP8 quantized model init."""
510510 _run_single_process_checkpoint_test (
511511 recipe_path ,
512512 tmp_path ,
513513 main_fsdp2 ,
514514 ckpt_subdir_name = "train_fsdp2" ,
515515 config_name = "L0_sanity_cp" ,
516- extra_overrides = _FP8_QUANTIZED_OVERRIDES ,
516+ extra_overrides = [ * _FP8_QUANTIZED_OVERRIDES , * fp_recipe ] ,
517517 is_ddp = False ,
518518 )
519519
520520
521- def test_checkpoint_save_and_load_single_process_fsdp2_cp_fp8_quantized (recipe_path , tmp_path ):
521+ def test_checkpoint_save_and_load_single_process_fsdp2_cp_fp8_quantized (recipe_path , tmp_path , fp_recipe ):
522522 """Test checkpoint save/resume for FSDP2 with context parallelism and FP8 quantized model init."""
523523 _run_single_process_checkpoint_test (
524524 recipe_path ,
525525 tmp_path ,
526526 main_fsdp2_cp ,
527527 ckpt_subdir_name = "train_fsdp2" ,
528528 config_name = "L0_sanity_cp" ,
529- extra_overrides = _FP8_QUANTIZED_OVERRIDES ,
529+ extra_overrides = [ * _FP8_QUANTIZED_OVERRIDES , * fp_recipe ] ,
530530 is_ddp = False ,
531531 )
532532
533533
534- def test_checkpoint_save_and_load_single_process_fsdp2_cp_fp8_quantized_async (recipe_path , tmp_path ):
534+ def test_checkpoint_save_and_load_single_process_fsdp2_cp_fp8_quantized_async (recipe_path , tmp_path , fp_recipe ):
535535 """Test checkpoint save/resume for FSDP2+CP with FP8 quantized model init and async save.
536536
537537 This reproduces the corys_config scenario where async_save=true (the default)
@@ -545,6 +545,7 @@ def test_checkpoint_save_and_load_single_process_fsdp2_cp_fp8_quantized_async(re
545545 config_name = "L0_sanity_cp" ,
546546 extra_overrides = [
547547 * _FP8_QUANTIZED_OVERRIDES ,
548+ * fp_recipe ,
548549 "checkpoint.async_save=true" ,
549550 ],
550551 is_ddp = False ,
0 commit comments