Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Apr 20, 2023

What changes were proposed in this pull request?

Reduce the memory requirement in torch-related tests

Why are the changes needed?

The computation in torch distributor actually happens in the external torch processes, and the Github Action resources is very limited, this PR tries to make related tests more stable

Does this PR introduce any user-facing change?

no, test-only

How was this patch tested?

CI, let me keep merging oncoming commits from master to see whether this change is stable enough

@zhengruifeng zhengruifeng changed the title [WIP][ML][PYTHON][CONNECT][TESTS] Reduce the memory requirement in torch-related tests [SPARK-43231][WIP][ML][PYTHON][CONNECT][TESTS] Reduce the memory requirement in torch-related tests Apr 21, 2023
@zhengruifeng zhengruifeng marked this pull request as ready for review April 25, 2023 06:26
@zhengruifeng zhengruifeng changed the title [SPARK-43231][WIP][ML][PYTHON][CONNECT][TESTS] Reduce the memory requirement in torch-related tests [SPARK-43231][ML][PYTHON][CONNECT][TESTS] Reduce the memory requirement in torch-related tests Apr 25, 2023
@zhengruifeng
Copy link
Contributor Author

except one run failed due to something unrelated, in all other 10 runs the torch tests passed successfully.

@zhengruifeng
Copy link
Contributor Author

merged to master

@zhengruifeng zhengruifeng deleted the torch_reduce_memory branch April 25, 2023 07:28
HyukjinKwon added a commit that referenced this pull request Jul 13, 2023
…cal-cluster tests

### What changes were proposed in this pull request?

This PR is a followup of #41942 that reduces the memory used in tests.

### Why are the changes needed?

To reduce the memory used in GitHub Actions test. This is consistent with:

https://github.com/apache/spark/blob/master/python/pyspark/ml/tests/connect/test_parity_torch_distributor.py#L67C55-L67C58

See also #40874

### Does this PR introduce _any_ user-facing change?

No, test-only.

### How was this patch tested?

Manually ran the tests in my local to verify the change.

Closes #41977 from HyukjinKwon/SPARK-44348-followup.

Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants