(p)
| 2193 | return |
| 2194 | |
| 2195 | def is_replicated(p): |
| 2196 | if hasattr(p, "ds_status") and p.ds_status is not ZeroParamStatus.AVAILABLE: |
| 2197 | return False |
| 2198 | elif hasattr(p, 'ds_optim_param'): |
| 2199 | # do not broadcast OptimizedLinear parameters, they are unique per base weight shard |
| 2200 | return False |
| 2201 | return True |
| 2202 | |
| 2203 | for n, p in self.module.named_parameters(): |
| 2204 | # Broadcast the model for different parameters |
nothing calls this directly
no outgoing calls
no test coverage detected