Mindket

Laya

新上架第 1 版 · 更新于

概览

用一次约 33 ms 的前向计算,对一条消息、邮件、工单或 JSON 记录里的带类型问题给出校准过的概率,支持 100 多种语言,适合给工单分流和文本分类的开发者。

Laya 是一款工具包,属于开发类,由 Mindket 上架。可免费获取。当前为第 1 版,最近更新于 。在本页下载,是一个装着它全部文件的 zip 压缩包。这些文件不会自己运行。

速览

你需要
  • Python 3.10 或更新版本
  • 首次使用时需要联网,因为 Router 那时会下载检查点
  • 大约 843 MB 磁盘空间存放 F16 权重,4-bit 估算约 211 MB
用在
  • Python,通过 laya 包和它的 Router
  • HTTP 服务器,通过 laya serve 扩展
  • MCP 服务器,通过 laya mcp 扩展
  • LangChain 和 LangGraph,通过 laya langchain 扩展
先运行
pip install laya

平台

服务器可在其上运行

关于

它是什么

Laya 是一个从不写文字的决策模型。你给它一段内容,比如邮件、工单或 JSON 记录,再加上带类型的问题。它用一次约 33 ms 的前向计算,在 100 多种语言里,为每个问题返回答案和概率。它有 421M 参数。

适合谁

它适合需要对传入文本快速得到可核对答案的开发者,比如该由哪个团队处理、有多紧急。

IndustryWho uses itHow they use itExample
客户支持支持工程师给工单分流并识别流失风险把一条账单投诉交给账单团队
软件后端开发者在服务里对消息和记录分类一个给每封来信打标签的 API
运维IT 团队按紧急程度给请求排序把一份故障报告标成阻塞
全球团队本地化人员用一个模型处理多种语言的消息在同一个队列里分流印地语和西班牙语消息

如果你需要模型写回复或摘要,可以跳过它,因为它只在你定义的答案里做选择。

用在哪里

  • Python,通过 laya 包和它的 Router
  • HTTP 服务器,通过 laya serve 扩展
  • MCP 服务器,通过 laya mcp 扩展
  • LangChain 和 LangGraph,通过 laya langchain 扩展
  • ONNX Runtime 和 TileLang GPU 快速路径,通过另外两个扩展
Use caseWhoWhat they get back
工单分流支持团队一个部门选择及其概率
紧急度打分运维在不紧急、尽快或阻塞这样的量表上的位置
流失检查客户团队客户威胁离开的概率

如何设置

你需要先准备:

  • Python 3.10 或更新版本
  • 首次使用时需要联网,因为 Router 那时会下载检查点
  • 大约 843 MB 磁盘空间存放 F16 权重,4-bit 估算约 211 MB
  1. 用 pip 安装 laya 包。
  2. 如果想要服务器、MCP、LangChain、ONNX 或快速 GPU 路径,就加一个扩展。
  3. 创建一个 Router,它在你首次使用时获取检查点。
pip install laya

如何使用

写下要判断的文字和一组带类型的问题,然后对 Router 调用 predict。每个问题是选择题、打分题或是非题。Router 会检测语言,并把非英语文本交给多语言检查点。

from laya import Router
router = Router()  # downloads a checkpoint on first use; Router(preload=True) loads all three up front
state = "Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan."
questions = {
    "department": {"type": "choice", "instructions": "Which department should handle this?",
                   "criteria": {"billing": "invoices, payments, refunds",
                                "technical": "bugs, outages, system errors",
                                "other": "everything else"}},
    "urgency": {"type": "score", "instructions": "How urgent is this?",
                "criteria": ["not urgent", "soon", "blocking"]},
    "churn_risk": {"type": "noul", "instructions": "Does the user threaten to cancel or leave?"},
}
result = router.predict(state, questions)
print(result["answers"]["department"]["choice"])  # billing
print(result["answers"]["churn_risk"]["noul"])    # probability the answer is yes
print(result["routing"]["model"])                 # english

处理长文档时,请指定多语言检查点并调高上限。

result = router.predict(long_document, questions, model="multilingual", max_len=8192)
ToolWhat it does
choice从你列出的条件里选一个选项
score把答案放在一个有序量表上
noul给出是非答案为是的概率
Router检测语言,并选择英语或多语言检查点

示例

你传入一封说客户被重复扣费、可能取消的邮件,再配上面三个问题。结果会指出部门是账单,并给出客户有流失风险的概率。没有生成任何文字,也不需要解析。

新手与专家

可以把 Laya 想成一个非常快的分拣员。它读文字,用数字回答固定的问题。第一步可以用你自己的一条短消息运行上面的快速开始。

它是非自回归的,所以一次前向计算就给出所有答案。训练用的是针对严格恰当评分规则的强化学习,这让给出诚实的概率成为获得奖励的唯一办法。

  1. 你传入文字和带类型的问题
  2. Router 按语言选择检查点
  3. 一次前向计算为每个选项打分
  4. 你得到带概率的答案

注意事项

laya-multilingual 的默认输入上限比它的最大值小。

laya-multilingual 的 token 上限
Default limit1,024 tokens
With max_len=81928,192 tokens
  • 长输入: 到约 4,000 个 token 时,20 个请求里答对 16 到 18 个,超过后是 20 个里 8 到 17 个,所以请在你自己的数据上测试
  • 速度: 4,000 个 token 的输入在 Apple GPU 上约需 1.7 s,短输入不受影响
  • 其他版本: 列出了其他人做的 91 个量化版本和 218 个微调版本
  • License: Apache 2.0
  • Cost to run: 未提及
  • Data it reaches: 你传入的文字,以及它首次使用时下载的检查点

README 和文件

README

Laya

用一次约 33 ms 的前向计算,对一条消息、邮件、工单或 JSON 记录里的带类型问题给出校准过的概率,支持 100 多种语言,适合给工单分流和文本分类的开发者。

由 convaiinnovations 在 Hugging Face 上制作。这些说明是 Mindket 根据它的模型页面和模型卡写的,模型自己的文件和许可证在 Hugging Face 上。

简介

它是什么:Laya 是一个从不写文字的决策模型。你给它一段内容,比如邮件、工单或 JSON 记录,再加上带类型的问题。它用一次约 33 ms 的前向计算,在 100 多种语言里,为每个问题返回答案和概率。它有 421M 参数。

适合谁:它适合需要对传入文本快速得到可核对答案的开发者,比如该由哪个团队处理、有多紧急。

Industry | Who uses it | How they use it | Example
客户支持 | 支持工程师 | 给工单分流并识别流失风险 | 把一条账单投诉交给账单团队
软件 | 后端开发者 | 在服务里对消息和记录分类 | 一个给每封来信打标签的 API
运维 | IT 团队 | 按紧急程度给请求排序 | 把一份故障报告标成阻塞
全球团队 | 本地化人员 | 用一个模型处理多种语言的消息 | 在同一个队列里分流印地语和西班牙语消息

如果你需要模型写回复或摘要,可以跳过它,因为它只在你定义的答案里做选择。

用在哪里:

  • Python,通过 laya 包和它的 Router
  • HTTP 服务器,通过 laya serve 扩展
  • MCP 服务器,通过 laya mcp 扩展
  • LangChain 和 LangGraph,通过 laya langchain 扩展
  • ONNX Runtime 和 TileLang GPU 快速路径,通过另外两个扩展
Use case | Who | What they get back
工单分流 | 支持团队 | 一个部门选择及其概率
紧急度打分 | 运维 | 在不紧急、尽快或阻塞这样的量表上的位置
流失检查 | 客户团队 | 客户威胁离开的概率

如何设置:

你需要先准备:

  • Python 3.10 或更新版本
  • 首次使用时需要联网,因为 Router 那时会下载检查点
  • 大约 843 MB 磁盘空间存放 F16 权重,4-bit 估算约 211 MB
  1. 用 pip 安装 laya 包。
  2. 如果想要服务器、MCP、LangChain、ONNX 或快速 GPU 路径,就加一个扩展。
  3. 创建一个 Router,它在你首次使用时获取检查点。
pip install laya

如何使用:写下要判断的文字和一组带类型的问题,然后对 Router 调用 predict。每个问题是选择题、打分题或是非题。Router 会检测语言,并把非英语文本交给多语言检查点。

from laya import Router
router = Router()  # downloads a checkpoint on first use; Router(preload=True) loads all three up front
state = "Hi, we were billed twice for March. Please refund the duplicate today or we will cancel our plan."
questions = {
    "department": {"type": "choice", "instructions": "Which department should handle this?",
                   "criteria": {"billing": "invoices, payments, refunds",
                                "technical": "bugs, outages, system errors",
                                "other": "everything else"}},
    "urgency": {"type": "score", "instructions": "How urgent is this?",
                "criteria": ["not urgent", "soon", "blocking"]},
    "churn_risk": {"type": "noul", "instructions": "Does the user threaten to cancel or leave?"},
}
result = router.predict(state, questions)
print(result["answers"]["department"]["choice"])  # billing
print(result["answers"]["churn_risk"]["noul"])    # probability the answer is yes
print(result["routing"]["model"])                 # english

处理长文档时,请指定多语言检查点并调高上限。

result = router.predict(long_document, questions, model="multilingual", max_len=8192)
Tool | What it does
choice | 从你列出的条件里选一个选项
score | 把答案放在一个有序量表上
noul | 给出是非答案为是的概率
Router | 检测语言,并选择英语或多语言检查点

示例:你传入一封说客户被重复扣费、可能取消的邮件,再配上面三个问题。结果会指出部门是账单,并给出客户有流失风险的概率。没有生成任何文字,也不需要解析。

新手与专家:可以把 Laya 想成一个非常快的分拣员。它读文字,用数字回答固定的问题。第一步可以用你自己的一条短消息运行上面的快速开始。

它是非自回归的,所以一次前向计算就给出所有答案。训练用的是针对严格恰当评分规则的强化学习,这让给出诚实的概率成为获得奖励的唯一办法。

你传入文字和带类型的问题
Router 按语言选择检查点
一次前向计算为每个选项打分
你得到带概率的答案

注意事项:laya-multilingual 的默认输入上限比它的最大值小。

Title: laya-multilingual 的 token 上限
Default limit: 1,024 tokens
With max_len=8192: 8,192 tokens
  • 长输入: 到约 4,000 个 token 时,20 个请求里答对 16 到 18 个,超过后是 20 个里 8 到 17 个,所以请在你自己的数据上测试
  • 速度: 4,000 个 token 的输入在 Apple GPU 上约需 1.7 s,短输入不受影响
  • 其他版本: 列出了其他人做的 91 个量化版本和 218 个微调版本
  • License: Apache 2.0
  • Cost to run: 未提及
  • Data it reaches: 你传入的文字,以及它首次使用时下载的检查点

Hugging Face 上的数据(2026年11月13日)

  • 任务:text classification
  • 框架:transformers
  • 参数量:421M
  • Weights: about 843 MB in F16; about 211 MB at 4-bit (estimate)
  • Formats: Safetensors
  • 最近 30 天下载:18,689
  • 点赞:5,956
  • 许可证:apache-2.0
  • Quantized versions: 92
  • Fine-tunes: 221
  • 标签:transformers, safetensors, laya, system-one, calibrated-decisions, rlcd, classification, routing, scoring, guardrails, moderation, reinforcement-learning

链接

  • 模型:https://huggingface.co/convaiinnovations/laya
  • 文件:https://huggingface.co/convaiinnovations/laya/tree/main

获取模型

用 Hugging Face 的命令行下载它的文件:

pip install -U huggingface_hub
hf download convaiinnovations/laya

然后按它的模型卡使用它。这个工具包里没有会自己运行的东西。

文件
README.md  6 KB

1 个文件,共 6 KB,以 zip 压缩包下载。

更新内容

  • 第 1 版 · 2026-11-12

同类产品对比

同一分类里与本产品共有标签最多的已上架 Hugging Face 模型。

产品最近 30 天下载点赞参数量许可证最近更新
Laya 本页18,6895,956421Mapache-2.0
Laya Multilingual共有 calibrated-decisions · moderation · rlcd9,698422322Mapache-2.0
elephant-1共有 guardrails · routing · classification7,4261159.4Bmit
mammoth-1共有 guardrails · routing · classification5,9039727.4Bmit
joey-1共有 guardrails · routing · classification1,539472.7Bmit
FRIDA-Decisions共有 guardrails · routing · safetensors1,11157823Mmit
数据为 Mindket 在 2026-11-12 至 2026-11-13 期间读取的数值。

评价

还没有评分

写评价

还没有评价。

大家怎么说

Hacker News、Bluesky、X、Reddit、Facebook 和 YouTube 上提到这个项目的帖子和评论,来自每周一次的搜索和 Trendshift。它们不是 Mindket 写的,也未经核实,点开即可在原帖处阅读。

hanifbbzThe rise and fall of Jev hype> no one thought of doing it before So we're gonna pretend Laya didn't exist 1.5 years prior? https://laya.convaiinnovations.com/UndergroundAI⚡ Neuer Text-Klassifizierer auf HuggingFace. 🛠️ Das Trend-Modell laya von convaiinnovations sorgt für Aufmerksamkeit in der Community. 🚀 Entdecke mehr KI-Geheimtipps auf Underground AI. 👉 https://underground-ai.bolt.app/ #OpenSource #KuenstlicheIntelligenz #MachineLearning3 赞make3Build your own decision modelThe real guide is here: https://huggingface.co/convaiinnovations/laya🚀 olud.ai🤗 Climbing on Hugging Face right now: convaiinnovations/laya ⬇ 3.8k downloads / 30 days · ♡ 5.2k · text classification · Apache-2.0 Open-weight models ranked by real-world usage, every day: https://olud.ai/#leaderboard #OpenSource #AI #HuggingFace1 赞zahlekhanI built non-autoregressive decision models with RL a year agohttps://huggingface.co/spaces/convaiinnovations/laya-demo Try this. Author mentioned he is working on hosting it soon.デイリーHuggingFaceトレンド今日のHuggingFaceトレンド convaiinnovations/laya Layaは多言語対応の非自己回帰型意思決定モデルです。 テキストやJSON等の入力と型付きの質問に対し、数学的に校正された確率を伴う回答を高速に返します。 強化学習(RLCD)を用いて訓練されており、テキストを生成しないためハルシネーションが発生せず、パースも不要です。 主に分類、ルーティング、スコアリング、モデレーション等の用途を目的に作成されました。1 赞edotI built non-autoregressive decision models with RL a year agoI don’t understand Jev or this. I used this since it’s open source (good job btw!) with the following. State: “a 6 sided die rolled a 3”, question (noul): “Is the number odd?” Answer: 9% chance, with 91% confidence. Heh??? Ok, even worse. 75% chance a coin landed heads up? State: I flipped a coin.…🚀 olud.ai🤗 Climbing on Hugging Face right now: convaiinnovations/laya ⬇ 0 downloads / 30 days · ♡ 5k · text classification · Apache-2.0 Open-weight models ranked by real-world usage, every day: https://olud.ai/#leaderboard #OpenSource #AI #HuggingFace1 赞prodigycorpI built non-autoregressive decision models with RL a year agoAnd how is laya previous art? The project was vibecoded and posted yesterday. https://github.com/NandhaKishorM/laya/commits/main/ https://huggingface.co/convaiinnovations/laya/commits/main🚀 olud.ai🤗 Climbing on Hugging Face right now: convaiinnovations/laya ⬇ 0 downloads / 30 days · ♡ 4.9k · text classification · Apache-2.0 Open-weight models ranked by real-world usage, every day: https://olud.ai/#leaderboard #OpenSource #AI #HuggingFace1 赞srameshcLaya the open source version of Jevfrom https://huggingface.co/convaiinnovations/laya > The policy reports a distribution; exploration adds zero-mean Gaussian noise to the logits; the reward is a strictly proper scoring rule (log + spherical, plus ranked probability score for ordinal questions). Expected reward is maximised only by…🚀 olud.ai🤗 convaiinnovations/laya has 4.9k likes yet zero downloads in the last 30 days—what makes a text classification model gain that much attention without being used? https://olud.ai/#leaderboard #OpenSource #AI #HuggingFace1 赞

搜索日期

Mindket 的更多商品

查看 Mindket 的全部商品

anaksor-ocr

Sokheng · 工具包

这个模型从文档、收据和路牌照片里读取高棉语和英语文字,用一个检测器找文本行,再用识别器读每一行。适合需要在 Python 里做高棉语 OCR 的开发者。

新上架

Qwen2.5-7B-Instruct-GGUF

Qwen · 工具包

Qwen2.5-7B-Instruct 的 GGUF 文件,提供八种量化大小,可通过 llama.cpp 在本地聊天。适合想在自己电脑上用 7.6B 强力模型、又不想搭 Python 环境的人。

新上架

ACE-Step 1.5 XL SFT

ACE-Step · 工具包

用 4B 扩散解码器根据文字生成音乐,50 步并带引导控制,音频质量高于基础版。适合拥有 12 GB 或更多显存 GPU 的创作者。

新上架

开发类的相似商品

查看开发类的全部商品

Claude Code Skills & Plugins

alirezarezvani · 技能

为 Claude Code 和其他编程智能体提供 411 个现成技能,按角色分组,从工程、产品到营销、财务和合规。以插件方式安装。适合开发者和业务团队。

新上架29.8k

buzz

block · 工具包

可自行托管的工作空间,人和 AI 智能体在同样的房间里协作,基于 Nostr 中继,把每个动作记录为签名事件。适合想自己运行中继的团队。

新上架37.3k

plannotator

backnotprop · 工具包

把你的 AI 编程智能体的计划、规格和代码改动在浏览器里打开,让你加批注或评论,并把反馈直接发回给智能体。

新上架10.5k