Skip to content

Use Ignite's interrupt api in MonaiAlgo#5071

Merged
wyli merged 12 commits into
Project-MONAI:devfrom
holgerroth:4554-use-interrupt-api
Sep 6, 2022
Merged

Use Ignite's interrupt api in MonaiAlgo#5071
wyli merged 12 commits into
Project-MONAI:devfrom
holgerroth:4554-use-interrupt-api

Conversation

@holgerroth

@holgerroth holgerroth commented Sep 1, 2022

Copy link
Copy Markdown
Collaborator

Fixes #4554.

Requires latest Ignite RC.

Also improves ClientAlgo docstrings formatting.

Description

A few sentences describing the changes proposed in this pull request.

Status

Ready

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Holger Roth <hroth@nvidia.com>
Signed-off-by: Holger Roth <hroth@nvidia.com>
Comment thread monai/fl/client/client_algo.py Outdated
Comment thread monai/fl/client/client_algo.py
@Nic-Ma

Nic-Ma commented Sep 2, 2022

Copy link
Copy Markdown
Contributor

Hi @holgerroth @wyli ,

I think we should update the min_version of ignite in the monai_algo.py file to 0.4.10:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/fl/client/monai_algo.py#L41
Other places keep the original min version.
Then when ignite released 0.4.10 next Monday, let's update the ignite version in all the docker and CI configs.
Now the min required version is 0.4.4 for all the places:
https://github.com/Project-MONAI/MONAI/blob/dev/monai/config/deviceconfig.py#L261
And the docker and CI version is 0.4.9:
https://github.com/Project-MONAI/MONAI/blob/dev/requirements-dev.txt#L3

What do you think?

Thanks.

Signed-off-by: Holger Roth <hroth@nvidia.com>
@holgerroth

Copy link
Copy Markdown
Collaborator Author

Hi @holgerroth @wyli ,

I think we should update the min_version of ignite in the monai_algo.py file to 0.4.10: https://github.com/Project-MONAI/MONAI/blob/dev/monai/fl/client/monai_algo.py#L41 Other places keep the original min version. Then when ignite released 0.4.10 next Monday, let's update the ignite version in all the docker and CI configs. Now the min required version is 0.4.4 for all the places: https://github.com/Project-MONAI/MONAI/blob/dev/monai/config/deviceconfig.py#L261 And the docker and CI version is 0.4.9: https://github.com/Project-MONAI/MONAI/blob/dev/requirements-dev.txt#L3

What do you think?

Thanks.

Actually, we don't need to import Ignite anymore in this class. I removed it.

Signed-off-by: Holger Roth <hroth@nvidia.com>
@vfdev-5

vfdev-5 commented Sep 5, 2022

Copy link
Copy Markdown
Member

FYI, we just released 0.4.10, so you can check and also update MONAI deps.

@Nic-Ma

Nic-Ma commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

FYI, we just released 0.4.10, so you can check and also update MONAI deps.

Cool!
@holgerroth Can I update the ignite related logic in your PR directly?

Thanks.

@Nic-Ma Nic-Ma left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the ignite dependency in the PR.

Thanks.

@Nic-Ma

Nic-Ma commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

/black

@Nic-Ma

Nic-Ma commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

/build

@Nic-Ma

Nic-Ma commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

Hi @wyli ,

Could you please help double confirm it?

Thanks in advance.

@Nic-Ma

Nic-Ma commented Sep 5, 2022

Copy link
Copy Markdown
Contributor

And @YanxuanLiu , may need your help to update the ignite version in the Blossom CI config to 0.4.10.

Thanks in advance.

monai-bot and others added 2 commits September 5, 2022 15:32
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
@Nic-Ma

Nic-Ma commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

/build

@wyli

wyli commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

Hi @wyli ,

Could you please help double confirm it?

Thanks in advance.

I see there are docs-test errors: https://github.com/Project-MONAI/MONAI/runs/8197608122?check_suite_focus=true

Comment thread monai/fl/client/client_algo.py
Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
@Nic-Ma

Nic-Ma commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

/black

@Nic-Ma

Nic-Ma commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

/build

@wyli wyli enabled auto-merge (squash) September 6, 2022 09:07
@wyli wyli merged commit b6016a9 into Project-MONAI:dev Sep 6, 2022
wyli pushed a commit to yashika-git/MONAI that referenced this pull request Sep 6, 2022
Fixes Project-MONAI#4554. 

Requires latest Ignite RC.

Also improves ClientAlgo docstrings formatting.

### Description
A few sentences describing the changes proposed in this pull request.

### Status
**Ready**

### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
- [x] Non-breaking change (fix or new feature that would not break existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests  --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/` folder.

Signed-off-by: Holger Roth <hroth@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
Co-authored-by: Nic Ma <nma@nvidia.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: monai-bot <monai.miccai2019@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add interrupt/terminate option to Trainers & Evaluators

5 participants