Spaces:
Running on Zero
Running on Zero
Download toolkit/models/v2/diffusion_models/hidream.py from HTBris/zerogpu-sdxlTrainer: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/spaces/HTBris/zerogpu-sdxlTrainer/resolve/main/toolkit/models/v2/diffusion_models/hidream.py
- Command line
-
hf download hf://spaces/HTBris/zerogpu-sdxlTrainer/toolkit/models/v2/diffusion_models/hidream.py
-
curl -L -o hidream.py https://huggingface.co/spaces/HTBris/zerogpu-sdxlTrainer/resolve/main/toolkit/models/v2/diffusion_models/hidream.py
541 Bytes
| from diffusers.models import ( | |
| HiDreamImageTransformer2DModel as DiffusersHiDreamImageTransformer2DModel, | |
| ) | |
| from .._mixin import OstrisModelMixin | |
| class HiDreamImageTransformer2DModel( | |
| DiffusersHiDreamImageTransformer2DModel, OstrisModelMixin | |
| ): | |
| """The diffusers HiDream DiT (hidream_e1; the base hidream arch uses the | |
| vendored copy in the hidream extension).""" | |
| aitk_subfolder = "transformer" | |
| def get_transformer_block_names(cls): | |
| return ["double_stream_blocks", "single_stream_blocks"] | |