File size: 1,193 Bytes
9d8d25c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# SPDX-License-Identifier: Apache-2.0
"""RDT2-FM (robotics-diffusion-transformer/RDT2-FM + the RDT2-VQ Qwen2.5-VL-7B prefix) on one Tenstorrent Blackhole p150.

    from tt_rdt2 import RDT2FM, load_sample
    with RDT2FM.from_pretrained() as model:
        out = model(**load_sample())       # out.actions: (24, 20) float32, out.timing_ms

Sub-packages: ``api`` (the Python API), ``server`` (the HTTP server), ``reference`` (CPU fp32 torch reference, no
official code), ``tt`` (ttnn port and megakernels), ``tests``. Importing this package has no side effects (no torch /
ttnn import, no network): the names below are loaded on first use.
"""
__version__ = "0.1.0"

_LAZY = {"RDT2FM": "api", "ActionChunk": "api", "InputError": "api", "load_sample": "api", "resolve_weights": "api",
         "SAMPLE_PATH": "api", "PROMPT_BUCKETS": "api", "CAMERA_ORDER": "api", "NUM_STEPS": "api", "CHUNK_SHAPE": "api"}
__all__ = ["__version__"] + list(_LAZY)


def __getattr__(name):
    if name in _LAZY:
        import importlib

        mod = importlib.import_module(f".{_LAZY[name]}", __name__)
        return getattr(mod, name)
    raise AttributeError(f"module {__name__!r} has no attribute {name!r}")