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

Function print_params

tests/small_model_debugging/test_model.py:109–112  ·  view source on GitHub ↗
(tag, model)

Source from the content-addressed store, hash-verified

107
108
109def print_params(tag, model):
110 if dist.get_rank() == 0:
111 for n, p in model.named_parameters():
112 print0("{} {}:{}".format(tag, n, p))
113
114
115data_loader = get_data_loader(model=model, total_samples=256, 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