MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / DeepSpeedWrapperModel

Class DeepSpeedWrapperModel

train_single.py:845–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

843# So we create a virtual wrapper to contail all the models
844
845class DeepSpeedWrapperModel(nn.Module):
846 def __init__(self, **kwargs):
847 super().__init__()
848 for name, value in kwargs.items():
849 assert isinstance(value, nn.Module)
850 self.register_module(name, value)
851
852
853def main():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected