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

Function DistributedFairseqModel

fairseq/models/distributed_fairseq_model.py:14–66  ·  view source on GitHub ↗

Wrap a *model* to support distributed data parallel training. This is similar to the built-in DistributedDataParallel, but allows additional configuration of the DistributedDataParallel class to use, and also provides easier access to the wrapped model by forwarding requests fo

(args, model)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected