Download code/tt_diffrhythm/__init__.py from sunandbean/diffrhythm-1.2-p100a: direct link, hf CLI and curl.
- Browser
- Download file 937 Bytes
-
https://huggingface.co/sunandbean/diffrhythm-1.2-p100a/resolve/main/code/tt_diffrhythm/__init__.py
- Command line
-
hf download hf://sunandbean/diffrhythm-1.2-p100a/code/tt_diffrhythm/__init__.py
-
curl -L -o __init__.py https://huggingface.co/sunandbean/diffrhythm-1.2-p100a/resolve/main/code/tt_diffrhythm/__init__.py
937 Bytes
| # SPDX-License-Identifier: Apache-2.0 | |
| """DiffRhythm 1.2 Full on one Tenstorrent Blackhole p100a. | |
| The CFM transformer and the stable-audio VAE decoder run on the card in TTNN. The style | |
| encoder, the sampler and the post-processing stay on the CPU inside DiffRhythm's own | |
| environment. `LocalWorker` runs both in one process when one environment satisfies DiffRhythm | |
| and ttnn at once; `TTWorker` keeps them apart, talking to the card through a worker process over | |
| a Unix socket, when it does not. | |
| """ | |
| from .common import close_device, dram_stats, open_device | |
| from .diffrhythm_dit import DiffRhythmDiT, DRPrecision | |
| from .local import LocalWorker | |
| from .oobleck_vae import OobleckTT | |
| from .remote import RemoteDiffRhythmDiT, RemoteVae, TTWorker | |
| __all__ = ["DiffRhythmDiT", "DRPrecision", "OobleckTT", "TTWorker", "LocalWorker", "RemoteDiffRhythmDiT", | |
| "RemoteVae", "open_device", "close_device", "dram_stats"] | |
| __version__ = "0.1.0" | |