Download code/tt_laya/__init__.py from changh95/laya: direct link, hf CLI and curl.
- Browser
- Download file 701 Bytes
-
https://huggingface.co/changh95/laya/resolve/main/code/tt_laya/__init__.py
- Command line
-
hf download hf://changh95/laya/code/tt_laya/__init__.py
-
curl -L -o __init__.py https://huggingface.co/changh95/laya/resolve/main/code/tt_laya/__init__.py
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" | |