社区 Runtime

Laya Node.js / TypeScript + ONNX

通过 ONNX Runtime 在 Node.js / TypeScript 中运行 Laya,并保持 typed-decision 请求/响应形态。

Node.js 后端TypeScriptONNX Runtime无需 Python Runtime
快速开始
npm install @receptron/laya
Source
receptron/laya

第一次使用会下载 ONNX 权重,需要为模型与 batch 预留内存。

Usage
import { Laya } from "@receptron/laya";

const laya = await Laya.load();
const result = await laya.systemOne(state, questions);