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 a tp -i for interactive workflows #48

Merged
merged 1 commit into from
Jan 22, 2025
Merged

Add a tp -i for interactive workflows #48

merged 1 commit into from
Jan 22, 2025

Conversation

tengyifei
Copy link
Collaborator

@tengyifei tengyifei commented Jan 22, 2025

With this change, we can run:

  • tp -i test ... to run some unit tests
  • tp -i run ... to run a distributed SPMD command

And the script will monitor the filesystem for changes. It will re-trigger the command again whenever one changes a file, leading to an ergonomic dev/test cycle.

I also found some flags to make the CPU checks faster.

Tested: tp -i test torchprime/torch_xla_models to repeatedly run the torch_xla model tests upon edit.

@tengyifei tengyifei force-pushed the yifeit/dev-cycle branch 3 times, most recently from 1447c5d to 529cd25 Compare January 22, 2025 06:17
With this change, we can run:

- `tp -i test ...` to run some unit tests
- `tp -i run ...` to run a distributed SPMD command

And the script will monitor the filesystem for changes. It will
re-trigger the command again whenever one changes a file.

I also found some flags to make the CPU checks faster.

Tested: `tp -i test torchprime/torch_xla_models` to repeatedly run the
torch_xla model tests upon edit.
@tengyifei tengyifei marked this pull request as ready for review January 22, 2025 18:20
@tengyifei tengyifei requested review from bhavya01 and qihqi January 22, 2025 18:20
@tengyifei tengyifei merged commit 6656059 into main Jan 22, 2025
6 checks passed
@bhavya01
Copy link
Collaborator

Thanks! Looks very convenient.

@tengyifei tengyifei deleted the yifeit/dev-cycle branch January 26, 2025 07:10
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