MCPcopy Index your code
hub / github.com/THUDM/GLM / ensure_directory_exists

Function ensure_directory_exists

utils.py:205–208  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

203
204
205def ensure_directory_exists(filename):
206 dirname = os.path.dirname(filename)
207 if not os.path.exists(dirname):
208 os.makedirs(dirname, exist_ok=True)
209
210
211def get_checkpoint_tracker_filename(checkpoints_path):

Callers 2

save_zero_checkpointFunction · 0.85
save_checkpointFunction · 0.85

Calls 1

existsMethod · 0.45

Tested by

no test coverage detected