rdt2-base-p150 / code /tt_rdt2 /tt /__init__.py
changh95's picture
tt-model push rdt2-base-p150 (container)
9d8d25c verified
Raw History Blame Contribute Delete
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.
"""