Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[CI] Add a new environment called pytorch-min-ci #7522

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mfbalin
Copy link
Collaborator

@mfbalin mfbalin commented Jul 13, 2024

Description

We support torch 2.1.0 as our minimum. The latest torch version we support is 2.3.1. The least we can do is to run tests for both versions in the CI to be more robust. @Rhett-Ying could you help achieve that? This PR is simply building our container to include 2 environments for pytorch, pytorch-ci for the latest torch we support and pytorch-min-ci for the oldest torch we support. Feel free to push to this branch if it is not mergeable like this, I opened this PR to kickstart the effort and help you.

Motivation: prevent mistakes like #7521 from occurring again.

I think it would be best if we modified the CI related files so that we can easily run the tests for any number of torch versions. The ideal case is to test all the pytorch versions that we claim to support in the CI.

Checklist

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
  • I've leverage the tools to beautify the python and c++ code.
  • The PR is complete and small, read the Google eng practice (CL equals to PR) to understand more about small PR. In DGL, we consider PRs with less than 200 lines of core code change are small (example, test and documentation could be exempted).
  • All changes have test coverage
  • Code is well-documented
  • To the best of my knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change
  • Related issue is referred in this PR
  • If the PR is for a new model/paper, I've updated the example index here.

Changes

@mfbalin mfbalin requested a review from Rhett-Ying July 13, 2024 03:55
@dgl-bot
Copy link
Collaborator

dgl-bot commented Jul 13, 2024

To trigger regression tests:

  • @dgl-bot run [instance-type] [which tests] [compare-with-branch];
    For example: @dgl-bot run g4dn.4xlarge all dmlc/master or @dgl-bot run c5.9xlarge kernel,api dmlc/master

@mfbalin
Copy link
Collaborator Author

mfbalin commented Jul 13, 2024

@frozenbugs FYI.

@dgl-bot
Copy link
Collaborator

dgl-bot commented Jul 13, 2024

Commit ID: 27b1ba6

Build ID: 1

Status: ✅ CI test succeeded.

Report path: link

Full logs path: link

@Rhett-Ying
Copy link
Collaborator

Covering different version combination of torch, cuda is not necessary for CI. CI is just cover the basic unit tests. Instead, our regression or release pipeline should cover (Unfortunately it's not covered yet).

@mfbalin
Copy link
Collaborator Author

mfbalin commented Jul 16, 2024

Covering different version combination of torch, cuda is not necessary for CI. CI is just cover the basic unit tests. Instead, our regression or release pipeline should cover (Unfortunately it's not covered yet).

Then shall we remove the newly added pytorch version related things and merge the refactored remaining portion? There was quite a lot of duplication in some files. Maybe you want to personally test before merging so it is okay to keep this PR open until we can actually test it.

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.

3 participants