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

add comm part to et_replay without lazy allocation of tensors #178

Closed
wants to merge 1 commit into from

Conversation

shengfukevin
Copy link
Contributor

Summary

add comm part to et_replay without lazy allocation of tensors

Test plan

run resnet 2 gpu trace with both compute and comms

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 30, 2024
@shengfukevin shengfukevin self-assigned this Aug 30, 2024
@shengfukevin
Copy link
Contributor Author

@TaekyungHeo and Songyant, thanks for putting this together in a very short period of time. Overall looks good, I left some inline comments. Please check.

@facebook-github-bot
Copy link
Contributor

@shengfukevin has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit that referenced this pull request Aug 30, 2024
Summary:
add comm part to et_replay without lazy allocation of tensors


Test Plan: run resnet 2 gpu trace with both compute and comms

Differential Revision: D62052138

Pulled By: shengfukevin
@facebook-github-bot facebook-github-bot force-pushed the shengfu/full_replay_with_no_dyntensor branch from dc43809 to aff5bc1 Compare August 30, 2024 23:51
@facebook-github-bot
Copy link
Contributor

@shengfukevin has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052138

@shengfukevin
Copy link
Contributor Author

@TaekyungHeo and Songyant, I have done some initial tests, both resnet 1 gpu and 2 gpu failed in et_replay:generate_io_tensors, looks like input_tensors are none.

The following are what I ran:

mpirun -np 1 et_replay --input param_bench/fb/integration_tests/resnet_1gpu_et.json

mpirun -np 2 et_replay --trace-path param_bench/fb/integration_tests/resnet-2gpu/

A minor issue: for single gpu run, I still need to use mpirun, otherwise the comm initialization will hang, it looks like the global rank info is wrong. It would be better if we can run et_replay without mpi_run for single gpu.

Thanks
resnet_1gpu_et.json.tar.gz
resnet_2gpu_et.json.tar.gz

facebook-github-bot pushed a commit that referenced this pull request Sep 5, 2024
Summary:
add comm part to et_replay without lazy allocation of tensors


Test Plan: run resnet 2 gpu trace with both compute and comms

Differential Revision: D62052138

Pulled By: shengfukevin
@facebook-github-bot facebook-github-bot force-pushed the shengfu/full_replay_with_no_dyntensor branch from aff5bc1 to 6f9041b Compare September 5, 2024 00:46
@facebook-github-bot
Copy link
Contributor

@shengfukevin has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052138

@shengfukevin
Copy link
Contributor Author

Hi Songyan, please check my inline comments. Thanks

facebook-github-bot pushed a commit that referenced this pull request Sep 5, 2024
Summary:
add comm part to et_replay without lazy allocation of tensors


Test Plan: run resnet 2 gpu trace with both compute and comms

Differential Revision: D62052138

Pulled By: shengfukevin
@facebook-github-bot facebook-github-bot force-pushed the shengfu/full_replay_with_no_dyntensor branch from 6f9041b to 4473728 Compare September 5, 2024 17:16
@facebook-github-bot
Copy link
Contributor

@shengfukevin has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052138

facebook-github-bot pushed a commit that referenced this pull request Sep 6, 2024
Summary:
add comm part to et_replay without lazy allocation of tensors


Test Plan:
/usr/local/fbcode/platform010/bin/mpirun -np 2 ../buck-out/v2/gen/fbcode/6ef5f323b6193f0f/param_bench/et_replay/__comm_replay__/comm_replay.par --trace-path param_bench/fb/integration_tests/resnet-2gpu/

 ../buck-out/v2/gen/fbcode/009ebbab256a7e75/param_bench/et_replay/__et_replay__/et_replay.par --input param_bench/fb/integration_tests/resnet_1gpu_et.json

Reviewed By: sanrise

Differential Revision: D62052138

Pulled By: shengfukevin
@facebook-github-bot facebook-github-bot force-pushed the shengfu/full_replay_with_no_dyntensor branch from 4473728 to 690575d Compare September 6, 2024 05:09
@facebook-github-bot
Copy link
Contributor

@shengfukevin has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052138

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052138

shengfukevin pushed a commit that referenced this pull request Sep 6, 2024
Summary:
add comm part to et_replay without lazy allocation of tensors

Pull Request resolved: #178

Test Plan:
/usr/local/fbcode/platform010/bin/mpirun -np 2 ../buck-out/v2/gen/fbcode/6ef5f323b6193f0f/param_bench/et_replay/__comm_replay__/comm_replay.par --trace-path param_bench/fb/integration_tests/resnet-2gpu/

 ../buck-out/v2/gen/fbcode/009ebbab256a7e75/param_bench/et_replay/__et_replay__/et_replay.par --input param_bench/fb/integration_tests/resnet_1gpu_et.json

Reviewed By: sanrise

Differential Revision: D62052138

Pulled By: shengfukevin
@shengfukevin shengfukevin force-pushed the shengfu/full_replay_with_no_dyntensor branch from 690575d to 2196fd3 Compare September 6, 2024 08:09
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052138

shengfukevin pushed a commit that referenced this pull request Sep 6, 2024
Summary:
add comm part to et_replay without lazy allocation of tensors

Pull Request resolved: #178

Test Plan:
/usr/local/fbcode/platform010/bin/mpirun -np 2 ../buck-out/v2/gen/fbcode/6ef5f323b6193f0f/param_bench/et_replay/__comm_replay__/comm_replay.par --trace-path param_bench/fb/integration_tests/resnet-2gpu/

 ../buck-out/v2/gen/fbcode/009ebbab256a7e75/param_bench/et_replay/__et_replay__/et_replay.par --input param_bench/fb/integration_tests/resnet_1gpu_et.json

Reviewed By: sanrise

Differential Revision: D62052138

Pulled By: shengfukevin
@shengfukevin shengfukevin force-pushed the shengfu/full_replay_with_no_dyntensor branch from 2196fd3 to f49f8f7 Compare September 6, 2024 18:19
Summary:
add comm part to et_replay without lazy allocation of tensors

Pull Request resolved: #178

Test Plan:
/usr/local/fbcode/platform010/bin/mpirun -np 2 ../buck-out/v2/gen/fbcode/6ef5f323b6193f0f/param_bench/et_replay/__comm_replay__/comm_replay.par --trace-path param_bench/fb/integration_tests/resnet-2gpu/

 ../buck-out/v2/gen/fbcode/009ebbab256a7e75/param_bench/et_replay/__et_replay__/et_replay.par --input param_bench/fb/integration_tests/resnet_1gpu_et.json

Reviewed By: sanrise

Differential Revision: D62052138

Pulled By: shengfukevin
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D62052138

@facebook-github-bot
Copy link
Contributor

@shengfukevin merged this pull request in d6e4dfd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants