laya / code /tt_laya /__init__.py
changh95's picture
tt-model push laya (container)
f882f26 verified
Raw History Blame Contribute Delete
701 Bytes
# SPDX-License-Identifier: Apache-2.0
"""tt_laya: the laya decision model (convaiinnovations/laya, classic checkpoints) on one Tenstorrent Blackhole p150.
Engines: ``mk`` (one plan-driven megakernel: ModernBERT encoder + decision head, weights streamed from DRAM),
``ttnn`` (ttnn ops baseline; rows past 512 tokens) and ``cpu`` (the clean-room fp32 reference). Importing the
package has no side effects (no ttnn, no torch, no device).
from tt_laya.api import Laya
agent = Laya.from_pretrained()
out = agent.predict("We were billed twice, please refund.", {"refund": {"type": "noul",
"instructions": "Does the user ask for a refund?"}})
"""
__version__ = "0.1.0"