(p)
| 2112 | return |
| 2113 | |
| 2114 | def is_replicated(p): |
| 2115 | if hasattr(p, "ds_status") and p.ds_status is not ZeroParamStatus.AVAILABLE: |
| 2116 | return False |
| 2117 | elif hasattr(p, 'ds_optim_param'): |
| 2118 | # do not broadcast OptimizedLinear parameters, they are unique per base weight shard |
| 2119 | return False |
| 2120 | return True |
| 2121 | |
| 2122 | for n, p in self.module.named_parameters(): |
| 2123 | # Broadcast the model for different parameters |
nothing calls this directly
no outgoing calls
no test coverage detected