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

Function load_checkpoint_to_cpu

fairseq/checkpoint_utils.py:133–143  ·  view source on GitHub ↗

Loads a checkpoint to CPU (with upgrading for backward compatibility).

(path, arg_overrides=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 2

_upgrade_state_dictFunction · 0.85
loadMethod · 0.80

Tested by

no test coverage detected