Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

extract model arch filename from fl_config.json #7

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,14 @@ def create_fl_client_request(client: Client, proj_folder: Path):
# Create a request folder for the client
fl_client_request_folder.mkdir(parents=True, exist_ok=True)

# Copy the fl_config.json, model.py to the request folder
# Copy the fl_config.json, model_arch file to the request folder
shutil.copy(proj_folder / "fl_config.json", fl_client_request_folder)
# FIXME: filename hardcoded. Should be extracted from config files
shutil.copy(proj_folder / "model.py", fl_client_request_folder)

# Copy the model architecture file to the request folder
fl_config = read_json(proj_folder / "fl_config.json")
model_arch_filename = fl_config["model_arch"]

shutil.copy(proj_folder / model_arch_filename, fl_client_request_folder)
print(
f"Sending request to {fl_client.name} for the project {proj_folder.name}"
)
Expand Down