mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
Originally, we didn't enable BWD for colwise embedding because we thought it was just for inference, but it turns out that we do need it for training. So, let's enable it for now and unit test is also added. Pull Request resolved: https://github.com/pytorch/pytorch/pull/104820 Approved by: https://github.com/fegin |
||
|---|---|---|
| .. | ||
| debug | ||
| __init__.py | ||
| README.md | ||
| test_api.py | ||
| test_basic_strategy.py | ||
| test_common_rules.py | ||
| test_device_mesh.py | ||
| test_dtensor.py | ||
| test_dtensor_ops.py | ||
| test_embedding_ops.py | ||
| test_init.py | ||
| test_math_ops.py | ||
| test_matrix_ops.py | ||
| test_pointwise_ops.py | ||
| test_random_ops.py | ||
| test_redistribute.py | ||
| test_tensor_ops.py | ||
| test_utils.py | ||
| test_view_ops.py | ||
Run distributed tensor tests:
from root, run (either CPU or GPU)
pytest test/spmd/tensor/test_tensor.py
pytest test/spmd/tensor/test_ddp.py
run specific test case and print stdout/stderr:
pytest test/spmd/tensor/test_tensor.py -s -k test_tensor_from_local