Create README.md
Browse files
WanTransformerBlock.fp8da/README.md
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WanTransformerBlock
|
| 2 |
+
|
| 3 |
+
{Block metadata / build context}
|
| 4 |
+
|
| 5 |
+
## Example usage
|
| 6 |
+
|
| 7 |
+
``` python
|
| 8 |
+
import spaces
|
| 9 |
+
import torch
|
| 10 |
+
from diffusers import DiffusionPipeline
|
| 11 |
+
from torchao import quantize_
|
| 12 |
+
|
| 13 |
+
pipeline = DiffusionPipeline.from_pretrained('Wan2.2')
|
| 14 |
+
quantize_(pipeline.transformer, Float8Config())
|
| 15 |
+
spaces.aoti_blocks_load(pipeline.transformer, 'zerogpu-aoti/Wan2', variant='fp8da')
|
| 16 |
+
```
|