MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / is_replicated

Method is_replicated

deepspeed/runtime/engine.py:2195–2201  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected