Instructions to use OzzyGT/drama_3_diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use OzzyGT/drama_3_diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("OzzyGT/drama_3_diffusers", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Upload README.md
Browse files
README.md
CHANGED
|
@@ -114,7 +114,7 @@ The weights are under the [Fish Audio Community License](LICENSE), the same as t
|
|
| 114 |
|
| 115 |
## Sample dialogue
|
| 116 |
|
| 117 |
-
It needs about
|
| 118 |
|
| 119 |
```python
|
| 120 |
import soundfile as sf
|
|
@@ -128,7 +128,7 @@ pipe = blocks.init_pipeline()
|
|
| 128 |
pipe.load_components(dtype={"default": torch.bfloat16, "audio_decoder": torch.float32, "codec": torch.float32})
|
| 129 |
|
| 130 |
enable_moe_cache = get_class_from_dynamic_module(
|
| 131 |
-
"OzzyGT/drama_3_custom_blocks", "moe_cache.py", "enable_moe_cache", trust_remote_code=True
|
| 132 |
)
|
| 133 |
enable_moe_cache(pipe.backbone, slots=128, device="cuda")
|
| 134 |
pipe.audio_decoder.to("cuda")
|
|
|
|
| 114 |
|
| 115 |
## Sample dialogue
|
| 116 |
|
| 117 |
+
It needs about 29 GiB of VRAM and 33 GiB of system RAM; with `slots=64`, about 21 GiB of VRAM.
|
| 118 |
|
| 119 |
```python
|
| 120 |
import soundfile as sf
|
|
|
|
| 128 |
pipe.load_components(dtype={"default": torch.bfloat16, "audio_decoder": torch.float32, "codec": torch.float32})
|
| 129 |
|
| 130 |
enable_moe_cache = get_class_from_dynamic_module(
|
| 131 |
+
"OzzyGT/drama_3_custom_blocks", "moe_cache.py", class_name="enable_moe_cache", trust_remote_code=True
|
| 132 |
)
|
| 133 |
enable_moe_cache(pipe.backbone, slots=128, device="cuda")
|
| 134 |
pipe.audio_decoder.to("cuda")
|