来自创作者
Hugging Face 为「决策模型」提出统一接口,Transformers 和 llama.cpp 已支持
Hugging Face 在 2026 年 11 月 10 日的博文里介绍决策模型:输入状态和预设答案的问题,直接给出各答案概率,不生成文本。与传统分类和零样本分类相比,一次请求可问多个具名问题,并有 choice、score、noul 三种题型。
Hugging Face 的目标是统一接口而不统一实现,Transformers 新增 /v1/systemone 端点,llama.cpp 用同一 API 服务。Hub 增加 decision-model 标签,训练可用 Trainer,TRL 支持发文时仍未合并,Unsloth 有把生成式模型改成决策模型的做法。
要点
- 决策模型直接输出预设答案的概率,不生成文本
- 三种题型:choice 多选一、score 有序打分、noul 是非题
- Transformers 与 llama.cpp 共用同一接口
- Hub 新增 decision-model 标签,便于查找兼容模型
- 可用 Trainer 微调,TRL 支持在发文时尚未合并
原文:Decision Models in Hugging Face
Decision models are interesting not because classification is new, but because they make decisions and probabilities first-class outputs for software.
收录于 。摘自官方博客的简短节选,著作权归原发布者所有。