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

Method is_replicated

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected