MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / checkpoint_paths

Function checkpoint_paths

fairseq/checkpoint_utils.py:179–195  ·  view source on GitHub ↗

Retrieves all checkpoints found in `path` directory. Checkpoints are identified by matching filename to the specified pattern. If the pattern contains groups, the result will be sorted by the first group in descending order.

(path, pattern=r'checkpoint(\d+)\.pt')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

save_checkpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected