(p)
| 2165 | return |
| 2166 | |
| 2167 | def is_replicated(p): |
| 2168 | if hasattr(p, "ds_status") and p.ds_status is not ZeroParamStatus.AVAILABLE: |
| 2169 | return False |
| 2170 | elif hasattr(p, 'ds_optim_param'): |
| 2171 | # do not broadcast OptimizedLinear parameters, they are unique per base weight shard |
| 2172 | return False |
| 2173 | return True |
| 2174 | |
| 2175 | for n, p in self.module.named_parameters(): |
| 2176 | # Broadcast the model for different parameters |
nothing calls this directly
no outgoing calls
no test coverage detected