flip.nvflare.components.persist_and_cleanup
Classes
The component that is executed post training and is a part of the FLIP training model |
Module Contents
- class flip.nvflare.components.persist_and_cleanup.PersistToS3AndCleanup(model_id: str, persistor_id: str = AppConstants.DEFAULT_PERSISTOR_ID, flip: flip.FLIP = FLIP())[source]
Bases:
nvflare.apis.fl_component.FLComponentThe component that is executed post training and is a part of the FLIP training model
The PersistToS3AndCleanup workflow saves the aggregated model (once training has finished) to an S3 bucket, and then deletes files created as part of the run
- Parameters:
- Raises:
when the model ID is not a valid UUID.
FileNotFoundError: boto3 error for when the zip file does not exist.
- model_persistor: nvflare.app_opt.pt.file_model_persistor.PTFileModelPersistor | None = None[source]