Download WanTransformerBlock.fp8da/example.py from rahul7star/WanAot: direct link, hf CLI and curl.
- Browser
- Download file 285 Bytes
-
https://huggingface.co/rahul7star/WanAot/resolve/main/WanTransformerBlock.fp8da/example.py
- Command line
-
hf download hf://rahul7star/WanAot/WanTransformerBlock.fp8da/example.py
-
curl -L -o example.py https://huggingface.co/rahul7star/WanAot/resolve/main/WanTransformerBlock.fp8da/example.py
285 Bytes
| import spaces | |
| import torch | |
| from diffusers import DiffusionPipeline | |
| from torchao import quantize_ | |
| pipeline = DiffusionPipeline.from_pretrained('Wan2.2') | |
| quantize_(pipeline.transformer, Float8Config()) | |
| spaces.aoti_blocks_load(pipeline.transformer, 'zerogpu-aoti/Wan2', variant='fp8da') | |