[BugFIX] enable Hunyuan image3 with stage selection among text_to_image/image_to_text (#1826)
Signed-off-by: Chendi Xue <chendi.xue@intel.com>
This commit is contained in:
1 parent
4ac25287fd
commit
d71c9ae60f
6 files changed
+227
-2
No files matched your search
@@ -21,6 +21,8 @@ from diffusers.utils.torch_utils import randn_tensor
|
||||
from einops import rearrange
|
||||
from torch import Tensor, nn
|
||||
|
||||
from vllm_omni.diffusion.distributed.utils import get_local_device
|
||||
|
||||
|
||||
class DiagonalGaussianDistribution:
|
||||
def __init__(self, parameters: torch.Tensor, deterministic: bool = False):
|
||||
@@ -506,7 +508,7 @@ class AutoencoderKLConv3D(ModelMixin, ConfigMixin):
|
||||
|
||||
self.use_compile = False
|
||||
|
||||
self.empty_cache = torch.empty(0, device="cuda")
|
||||
self.empty_cache = torch.empty(0, device=get_local_device())
|
||||
|
||||
def _set_gradient_checkpointing(self, module, value=False):
|
||||
if isinstance(module, (Encoder, Decoder)):
|
||||
|
||||
Reference in new issue
Block a user