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

Function print_params

tests/small_model_debugging/partial_offload_test.py:111–114  ·  view source on GitHub ↗
(tag, model)

Source from the content-addressed store, hash-verified

109
110
111def print_params(tag, model):
112 if dist.get_rank() == 0:
113 for n, p in model.named_parameters():
114 print0("{} {}:{}".format(tag, n, p))
115
116
117data_loader = get_data_loader(model=model, total_samples=1000, hidden_dim=hidden_dim, device=model.device)

Callers

nothing calls this directly

Calls 2

print0Function · 0.70
get_rankMethod · 0.45

Tested by

no test coverage detected