MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / lr_lambda

Function lr_lambda

trainer/base_trainer.py:414–418  ·  view source on GitHub ↗
(current_step)

Source from the content-addressed store, hash-verified

412 assert warmup_steps > 0
413
414 def lr_lambda(current_step):
415 if current_step > warmup_steps:
416 return 1.0
417 else:
418 return current_step / warmup_steps
419
420 return lr_lambda

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected