Repository navigation
[spmd_types] llama3 enablement - #3763
Conversation
[ghstack-poisoned]
| has_compile = any("compile.enable" in arg for arg in variant) | ||
| if not _is_pp_only(variant, t.ngpu) and not (has_cp and has_compile): | ||
| prefix.append("--parallelism.spmd_backend full_dtensor") | ||
| prefix.append(f"--parallelism.spmd_backend {backend}") |
There was a problem hiding this comment.
actually shall enable debug.spmd_typechecking for those without PP, or SAC + Flex?
There was a problem hiding this comment.
keeping a list of tests to skip typechecking on
| prefix.append(f"--parallelism.spmd_backend {backend}") | ||
| if ( | ||
| backend == "spmd_types" | ||
| and not has_ac_mode |
There was a problem hiding this comment.
a lot of times default is SAC
- is this switching everything to none AC?
- I thought spmd_types work with SAC / full AC in general, just not SAC + flex
There was a problem hiding this comment.
yeah so I wasn't sure, I guess we can filter for flex but I think it's the default for llama3 now? either we can do
- test everything with typechecking + no AC
- test everything with SAC but no typecheck
- do both 1 & 2 but add decent CI workload
but either should pass, minus the filtered tests
There was a problem hiding this comment.
oh I see.
1 sounds OK, because we are still testing AC with the non-supported ones, right?
tianyu-l
left a comment
There was a problem hiding this comment.
CI failed with
Last 50 lines:
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/distributed/fsdp/_fully_shard/_fsdp_param.py", line 270, in _init_sharded_param
param_data = self._init_sharding_spec(param, fsdp_placement, shard_dim)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/py_3.12/lib/python3.12/site-packages/torch/distributed/fsdp/_fully_shard/_fsdp_param.py", line 346, in _init_sharding_spec
raise ValueError(
ValueError: When dp_mesh_dims is provided, all parameters must be DTensors on the full SPMD mesh (e.g. via distribute_module). Got plain tensor for parameter 'weight'.
I guess because pytorch side change hasn't taken effect in nightly.
| prefix.append(f"--parallelism.spmd_backend {backend}") | ||
| if ( | ||
| backend == "spmd_types" | ||
| and not has_ac_mode |
There was a problem hiding this comment.
oh I see.
1 sounds OK, because we are still testing AC with the non-supported ones, right?
yeah good point, those are spmd backend + no typecheck + default AC unless specified |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
ghstack-source-id: 781b4e6 ghstack-source-id: 781b4e6 Pull Request resolved: pytorch/torchtitan#3763
Stack from ghstack (oldest at bottom):