How sameulah/slperf works
• Configuration & Parsing:
– Highlight the config.yaml file and the parsing modules (in the Parse, JSON, and YAML directories) that evaluate user settings. Mention the factory design pattern (parseFactory) used to load configurations.
• Data Handling:
– Mark the data directory and the dataset-related modules under SLFrame/core/dataset. Include the dataset factory, partition components (basePartition, partitionFactory, and partitionUtils), and dataset controllers that are specialized for different datasets (e.g., mnistController, cifar10Controller).
• Communication Layer:
– Identify the communication modules under SLFrame/core/communication and the MPI-specific files (mpi_com_manager, mpi_receive_thread, mpi_send_thread). Emphasize that these handle the low-level message passing and observer patterns.
• Model Management:
– Represent the model directory components including various architectures (Alex_model.py, DenseNet.py, cnn.py, etc.) and their corresponding factories. This portion represents how training models are defined and instantiated for both clients and servers.
• Process Management:
– Include the process directory with baseClient, baseServer, and their respective managers. This is the orchestration layer that initializes and runs the training loops, models, and communication paths.
• Variants / Paradigms:
– Highlight the variants folder that contains multiple subdirectories (such as SplitFed, TaskAgnostic, Asynchronous, vanilla, etc.). Each variant includes its own client, client_manager, message_define, server, and server_manager. Emphasize that these modules extend the base process to support different federated learning paradigms.
• Logging:
– Represent the logging modules (Log, abstractLog, baseLog) as well as output log files which are crucial for tracing and debugging the distributed training processes.
Relationships and data flow between components
• How the client and server models (defined under the model directory) are separately instantiated within the main function. Also, show how these models are passed to the respective client and server processes, which are managed by their corresponding base classes in the process directory.
Important architectural patterns and design principles
• Factory Patterns: Emphasize how the system uses factory modules (parseFactory, datasetFactory, modelFactory, variantsFactory) to create specific objects based on the user configuration.
• Modularity & Separation of Concerns: Clearly separate the concerns of configuration, data management, communication, model definition, and process orchestration.
• Distributed System Principles: Note the use of MPI and messaging that enable multi-process coordination in a federated learning setup.
• Extensibility: The variants folder shows a pluggable architecture – each variant (e.g., SplitFed, TaskAgnostic, asyVanilla, etc.) encapsulates its own client/server logic, making it easy to extend.
Additional notes
• To capture the hierarchical nature of the project – from high-level system orchestration down to detailed functions within each module.
• If desired, add notes on dependency: for instance, the configuration drives both dataset selection and model instantiation, and all components ultimately rely on the MPI-based communication backbone for distributed learning.