MCPcopy Create free account
hub / github.com/CERT-Lab/lora-sb / get_lr_scheduler

Function get_lr_scheduler

train_eval.py:139–144  ·  view source on GitHub ↗
(optimizer, num_warmup_steps, num_training_steps)

Source from the content-addressed store, hash-verified

137
138
139def get_lr_scheduler(optimizer, num_warmup_steps, num_training_steps):
140 return get_linear_schedule_with_warmup(
141 optimizer,
142 num_warmup_steps=num_warmup_steps,
143 num_training_steps=num_training_steps,
144 )
145

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected