mirror of
https://github.com/kohya-ss/sd-scripts.git
synced 2026-04-08 14:34:23 +00:00
Fix to work full_bf16 and full_fp16.
This commit is contained in:
@@ -891,6 +891,14 @@ class MMDiT(nn.Module):
|
||||
def model_type(self):
|
||||
return "m" # only support medium
|
||||
|
||||
@property
|
||||
def device(self):
|
||||
return next(self.parameters()).device
|
||||
|
||||
@property
|
||||
def dtype(self):
|
||||
return next(self.parameters()).dtype
|
||||
|
||||
def enable_gradient_checkpointing(self):
|
||||
self.gradient_checkpointing = True
|
||||
for block in self.joint_blocks:
|
||||
|
||||
Reference in New Issue
Block a user