assertPARTITION_ACTIVATIONS,"CPU Checkpointing/Contiguous Checkpointing is only availble with partitioned activations. Set partitioned activations to true in deepspeed config"
ifCONTIGUOUS_CHECKPOINTING:
assertPARTITION_ACTIVATIONS,"Contiguous Checkpointing is only availble with partitioned activations. Set partitioned activations to true in deepspeed config"
ifCONTIGUOUS_CHECKPOINTING:
assertnum_layersisnotNone,"Must specify the number of layers with contiguous memory checkpointing"