MCPcopy Index your code
hub / github.com/OpenGVLab/InternVL / get_optimizer_state_str

Function get_optimizer_state_str

classification/main_deepspeed.py:159–163  ·  view source on GitHub ↗
(optimizer)

Source from the content-addressed store, hash-verified

157
158
159def get_optimizer_state_str(optimizer):
160 states = []
161 for param_group in optimizer.param_groups:
162 states.append(f'name={param_group["name"]} lr={param_group["lr"]} weight_decay={param_group["weight_decay"]}')
163 return '\n'.join(states)
164
165
166def build_ds_config(config, args):

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected