Download code/tt_rdt2/tt/__init__.py from changh95/rdt2-base-p150: direct link, hf CLI and curl.
- Browser
- Download file 761 Bytes
-
https://huggingface.co/changh95/rdt2-base-p150/resolve/main/code/tt_rdt2/tt/__init__.py
- Command line
-
hf download hf://changh95/rdt2-base-p150/code/tt_rdt2/tt/__init__.py
-
curl -L -o __init__.py https://huggingface.co/changh95/rdt2-base-p150/resolve/main/code/tt_rdt2/tt/__init__.py
761 Bytes
| # SPDX-License-Identifier: Apache-2.0 | |
| """ttnn port of RDT2-FM on one Blackhole p150 (PORT_LOG.md, OPT_BASELINE.md). | |
| * ``common`` precision presets (``baseline`` default, ``accurate``), compute-kernel / matmul program configs, wrappers | |
| * ``vision`` VISION: Qwen2.5-VL ViT (32 blocks, windowed / full SDPA, 2x2 merger) + host pixel formatting | |
| * ``prefix`` PREFIX: embedding + image scatter, Qwen2.5 layers 0..12 + layer-13 K/V -> the expert's conditioning | |
| * ``expert`` EXPERT: state prologue + 5 Euler steps of the 14-block RDT expert, on device | |
| * ``model`` ``RDT2FMTT``: fixed input buffers, one Metal trace per call, ``open_rdt2_device`` (ETH / WORKER) | |
| ``ttnn`` is imported lazily inside functions: importing these modules does not open the device. | |
| """ | |