MCPcopy Index your code
hub / github.com/tdrussell/diffusion-pipe / to

Function to

train.py:571–572  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

569 assert 'adapter' in config, 'Block swapping only works when training LoRA'
570 # Don't automatically move to GPU, we'll do that ourselves.
571 def to(self, *args, **kwargs):
572 pass
573 deepspeed.pipe.PipelineModule.to = to
574 model.enable_block_swap(blocks_to_swap)
575

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected