Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test_cuda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
pip uninstall -y torch
pip install --no-input --quiet --pre torch --index-url https://download.pytorch.org/whl/nightly/cu126
pip install --quiet .
pytest tests --deselect=tests/test_dtensor.py::ImplicitRegistrationTest::test_implicit_registration
pytest tests
python examples/example_autoparallel.py
python examples/example_llama3.py
python examples/example_dcp.py
Expand Down
7 changes: 6 additions & 1 deletion autoparallel/dtensor_util/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
is_tensor_shardable,
register_op_strategy,
)
from torch.distributed.tensor.debug import (
_clear_fast_path_sharding_prop_cache,
_clear_python_sharding_prop_cache,
)
from torch.distributed.tensor.placement_types import Placement, Replicate, Shard

try:
Expand Down Expand Up @@ -82,7 +86,8 @@ def op_strategy_context(op_overload, strategy_func, schema_info=None):
del propagator.op_to_schema_info[op_overload]
else:
propagator.op_to_schema_info[op_overload] = _origin_op_strategy_schema
propagator.propagate_op_sharding.cache.cache_clear()
_clear_fast_path_sharding_prop_cache()
_clear_python_sharding_prop_cache()


# -------------define universal op strategy-------------
Expand Down
Loading