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

Method from_pretrained

fairseq/models/fairseq_model.py:144–175  ·  view source on GitHub ↗

Load a :class:`~fairseq.models.FairseqModel` from a pre-trained model file. Downloads and caches the pre-trained model file if needed. The base implementation returns a :class:`~fairseq.hub_utils.GeneratorHubInterface`, which can be used to generate translat

(cls, model_name_or_path, checkpoint_file='model.pt', data_name_or_path='.', **kwargs)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
hub_modelsMethod · 0.45

Tested by

no test coverage detected