MCPcopy Create free account
hub / github.com/AI-Hypercomputer/maxtext / create_rampup_manager

Function create_rampup_manager

src/MaxText/rampup_batch.py:103–112  ·  view source on GitHub ↗
(config, checkpoint_manager)

Source from the content-addressed store, hash-verified

101
102
103def create_rampup_manager(config, checkpoint_manager):
104 if not config.enable_rampup_batch_size:
105 return None
106
107 # Current step default as -1 if no checkpoint exists
108 current_step = -1
109 if checkpoint_manager and checkpoint_manager.latest_step():
110 current_step = checkpoint_manager.latest_step()
111
112 return RampupBatchManager(config, current_step)

Callers 1

setup_train_loopFunction · 0.90

Calls 1

RampupBatchManagerClass · 0.85

Tested by

no test coverage detected