10 个 GitHub 仓库助你精通 AI 决策模型

作者:Abid Ali Awan,KDnuggets 助理编辑,2026 年 11 月 27 日,人工智能专栏
在 TypeSafe AI 发布 Jev 之后,AI 决策模型正变得越来越流行。如今,一类专门做一件事的 AI 模型正在不断壮大:不做文本生成,而是做决策。
这些模型是通用型的。你提供一个问题、一些上下文以及可能的选项,模型就会返回一个决策以及各项概率。例如:某只股票应该买入、持有还是卖出?某个客户请求应该批准还是拒绝?某项任务应该由哪个 AI 模型来处理?
你无需单独训练一个分类模型,也无需用大语言模型(LLM)生成结构化回复,而是可以在应用中集成一个轻量级决策模型。这可以节省时间、降低推理成本,并减少硬件要求。
令人兴奋的是,这些模型正在快速进步,可用的开源工具和框架也越来越多。
在本文中,我们将介绍 10 个 GitHub 仓库,帮助你上手 AI 决策模型。这些项目涵盖的内容包括:使用预训练模型、训练或微调自己的模型、把现有 LLM 转换为决策模型、构建应用、部署模型,以及评估其性能。
对于每个仓库,我都会说明它的作用,并分享一个可实际动手的项目点子,帮你获得实践经验。
vLLM Semantic Router 是一个开源决策层,可根据不同 AI 模型的需求把请求路由到相应的模型。
它还支持 D3 系列决策模型,这类模型可以评估预定义的选项并返回概率分布,而无需生成冗长的回答。
你可以将它用于模型路由、分类、工具选择,以及其他快速做出决策比生成文本更重要的任务。
可尝试的项目:构建一个 AI 路由器,自动判断某个请求需要小型快速模型,还是更强大的推理模型。
DecisionFormer 是一个框架,可将现有的 Hugging Face 模型转化为专用的决策模型。
你可以不训练语言模型去生成书面回答,而是微调它来评估各个选项并输出结构化决策。
该代码库涵盖模型训练、推理和服务,有助于理解决策模型是如何开发的。
可尝试的项目:微调一个小型 Qwen 模型,将客户请求分类为 Approve、Reject 或 Manual Review,并与普通 LLM 的表现进行对比。
StartLux-Decision 提供参数规模从 0.8B 到 27B 的开放决策模型。
特别有意思的是它的 AutoThink 方法。当模型有把握时,它可以直接做出决定;当它不确定时,则可以先进行额外推理,再做出最终决定。
这让开发者能更好地控制速度与准确率之间的权衡。
可尝试的项目:构建一个决策应用,在置信度高时立即作答,在置信度低于阈值时则启动推理。
JevTrainer 旨在让训练决策模型变得更加容易。
它支持 LoRA 和全量微调、多种决策头架构,以及可配置的训练流水线。
你还可以试验不同类型的题目,包括多选题、评分题和是/否判断。
它对学习有帮助的地方在于,你可以用同一份训练数据比较不同架构。
可尝试的项目:用不同的读出头训练三个决策模型,并比较它们的准确率、延迟和置信度校准情况。
Laya 是一款轻量级决策引擎,专为快速的非自回归推理而设计。
它支持 100 多种语言的多选题、评分题和是非题。
该项目还提供微调决策模型的学习资源,对于希望直接上手实验、而不必从零搭建一切的开发者来说,是一个实用的起点。
可尝试的项目:创建一个多语言内容审核模型,输出 Allow、Review 或 Block 决策。
Kev 是一系列基于 Qwen3.5 和 Qwen3.8 构建的开放决策模型。
你可以下载预训练模型,在本地运行,或使用自定义数据集训练自己的模型。
该仓库包含训练脚本、基准测试工具和推理服务示例。它还使用 uv,让开发环境的搭建相对简单。
可尝试的项目:训练一个决策模型,根据用户的请求来选择 AI 智能体应调用哪个工具。
JevAny 提供了一个端到端框架,用于训练、评估和部署决策模型。
它同时支持语言模型和多模态模型,因此你可以试验涉及文本、图像以及其他输入类型的决策。
一个实用的功能是它的入门训练工作流。你可以从一个小型 Qwen 模型开始,用示例数据集进行训练,然后通过 API 部署它。
值得尝试的项目:在支持工单上训练你自己的决策模型,并通过本地 API 对外提供。
AnyJev 采用了不同的思路。它无需微调,就能把现有的开放语言模型转变为 Jev 风格的决策系统。
它的工作原理是提取并处理模型内部的 Token 概率,以评估预定义的选项。
这对于理解「生成答案」与「直接为可能的答案打分」之间的区别尤其有用。
值得尝试的项目:在不做微调的情况下,把现有的 Qwen 模型转换为 Buy/Hold/Sell 分类器,并将其预测结果与标准提示式 LLM 的预测结果进行比较。
Decision Index 专注于评估决策模型,而非构建决策模型。
它提供了一套可复现的基准测试套件,开发者可以在本地运行,也可以通过 Hugging Face Jobs 运行。
这一点很重要,因为模型返回 90% 的置信度,并不自动意味着它在 90% 的情况下都会是正确的。
值得尝试的项目:使用同一数据集对 D3、Kev 以及另一个决策模型进行基准测试。比较准确率、推理延迟和概率校准。
10. Awesome Decision Models
Awesome Decision Models 是一个精选集合,涵盖决策模型、框架、研究论文、API、SDK 和基准测试。
与其他仓库不同,它不是训练框架。它是一个学习资源,帮助你了解决策模型生态中正在发生的事情。
如果你想探索不同的模型架构、寻找新项目,或了解这些模型之间的对比,它会很有用。
可以尝试的项目:挑选三个开放权重决策模型,让它们运行相同的任务,然后自己做一份关于准确率、速度和内存占用的对比。
决策模型其实算不上全新概念。多年来我们一直在用机器学习模型做预测和决策。真正新的是,这一思路正借助语言模型被重新引入——这类模型可以评估不同选项,并直接返回带概率的决策,而无需生成冗长的回复。
由于这种方法还相对较新,GitHub 上专门的学资源或教程并不多。我们介绍过的大多数仓库都是实验性项目、框架和工具,而非循序渐进的学习材料。
不过,我预计这一领域会迅速成长。随着越来越多开发者尝试决策模型,我们很可能会看到更好的训练方法、更快的推理、更高效的架构,以及将它们集成到 AI 应用中的新方式。
就目前而言,最好的学习方式就是探索这些仓库、运行这些模型、用自己的数据集做实验,看看它们在哪些方面比传统 LLM 表现更好。
Abid Ali Awan(@1abidaliawan)是一位认证数据科学家,热衷于构建机器学习模型。目前他专注于内容创作,撰写有关机器学习和数据科学技术的技术博客。Abid 拥有技术管理硕士学位和电信工程学士学位。他的愿景是利用图神经网络为受心理疾病困扰的学生打造一款 AI 产品。
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(10 GitHub Repositories to Master AI Decision Models)
By Abid Ali Awan, KDnuggets Assistant Editor on November 27, 2026 in Artificial Intelligence

AI decision models are becoming increasingly popular following the release of Jev by TypeSafe AI. There's now a growing category of AI models designed to do one thing: make decisions instead of generating text.
These models are general-purpose. You provide a question, some context, and possible options, and the model returns a decision along with probabilities. For example, should you buy, hold, or sell a stock? Should a customer request be approved or rejected? Which AI model should handle a task?
Instead of training a separate classification model or using a large language model (LLM) to generate structured responses, you can integrate a lightweight decision model into your application. This can save time, reduce inference costs, and lower hardware requirements.
The exciting part is that these models are improving quickly, with more open-source tools and frameworks becoming available.
In this article, we will explore 10 GitHub repositories that will help you get started with AI decision models. These projects cover everything from using pretrained models and training or fine-tuning your own to converting existing LLMs into decision models, building applications, deploying models, and evaluating their performance.
For each repository, I will explain what it does and share a practical project idea you can try to get hands-on experience.
vLLM Semantic Router is an open-source decision layer that helps route requests to different AI models based on their requirements.
It also supports the D3 family of decision models, which can evaluate predefined options and return probability distributions without generating long responses.
You can use it for model routing, classification, tool selection, and other tasks where making a quick decision is more important than generating text.
Project to try: Build an AI router that automatically decides whether a request needs a small, fast model or a more powerful reasoning model.
DecisionFormer is a framework for turning existing Hugging Face models into specialized decision models.
Instead of training a language model to generate a written answer, you can fine-tune it to evaluate choices and produce structured decisions.
The repository covers model training, inference, and serving, making it useful for understanding how decision models are developed.
Project to try: Fine-tune a small Qwen model to classify customer requests into Approve, Reject, or Manual Review, and compare its performance against a regular LLM.
StartLux-Decision provides open decision models ranging from 0.8B to 27B parameters.
What's particularly interesting is its AutoThink approach. When the model is confident, it can make a decision directly. When it's uncertain, it can use additional reasoning before making the final decision.
This gives developers more control over the trade-off between speed and accuracy.
Project to try: Build a decision application that answers immediately when confidence is high and activates reasoning when confidence falls below a threshold.
JevTrainer is designed to make training decision models easier.
It supports LoRA and full fine-tuning, multiple decision-head architectures, and configurable training pipelines.
You can also experiment with different types of questions, including multiple-choice, scoring, and yes/no decisions.
What makes it useful for learning is that you can compare different architectures using the same training data.
Project to try: Train three decision models using different readout heads and compare their accuracy, latency, and confidence calibration.
Laya is a lightweight decision engine designed for fast, non-autoregressive inference.
It supports multiple-choice, scoring, and yes/no questions across more than 100 languages.
The project also provides learning resources for fine-tuning decision models, making it a practical starting point for developers who want to experiment without building everything from scratch.
Project to try: Create a multilingual content moderation model that makes Allow, Review, or Block decisions.
Kev is a family of open decision models built on Qwen3.5 and Qwen3.8.
You can download the pretrained models, run them locally, or train your own using custom datasets.
The repository includes training scripts, benchmarking tools, and serving examples. It also uses uv, making the development environment relatively straightforward to set up.
Project to try: Train a decision model that selects which tool an AI agent should use based on the user's request.
JevAny provides an end-to-end framework for training, evaluating, and deploying decision models.
It supports both language and multimodal models, so you can experiment with decisions involving text, images, and other inputs.
One useful feature is its starter training workflow. You can begin with a small Qwen model, train it using example datasets, and then deploy it through an API.
Project to try: Train your own decision model on support tickets and expose it through a local API.
AnyJev takes a different approach. Instead of requiring fine-tuning, it can turn existing open language models into Jev-style decision systems.
It works by extracting and processing the model's internal token probabilities to evaluate predefined choices.
This is particularly useful for understanding the difference between generating an answer and directly scoring possible answers.
Project to try: Convert an existing Qwen model into a Buy/Hold/Sell classifier without fine-tuning and compare its predictions with those from a standard prompted LLM.
Decision Index focuses on evaluating decision models rather than building them.
It provides a reproducible benchmark suite that developers can run locally or through Hugging Face Jobs.
This is important because a model returning 90% confidence doesn't automatically mean it will be correct 90% of the time.
Project to try: Benchmark D3, Kev, and another decision model using the same dataset. Compare accuracy, inference latency, and probability calibration.
10. Awesome Decision Models
Awesome Decision Models is a curated collection of decision models, frameworks, research papers, APIs, SDKs, and benchmarks.
Unlike the other repositories, it isn't a training framework. It's a learning resource that helps you discover what's happening in the decision-model ecosystem.
It's useful if you want to explore different model architectures, find new projects, or understand how these models compare.
Project to try: Choose three open-weight decision models, run them on the same tasks, and create your own comparison of accuracy, speed, and memory usage.
Decision models aren't exactly a new concept. We've been using machine learning models to make predictions and decisions for years. What's new is how this idea is being reintroduced using language models that can evaluate different options and return decisions with probabilities, without generating lengthy responses.
Since this approach is still relatively new, there aren't many dedicated learning resources or tutorials available on GitHub. Most of the repositories we've covered are experimental projects, frameworks, and tools rather than step-by-step learning materials.
However, I expect this space to grow quickly. As more developers experiment with decision models, we'll likely see better training methods, faster inference, more efficient architectures, and new ways to integrate them into AI applications.
For now, the best way to learn is to explore these repositories, run the models, experiment with your own datasets, and see where they perform better than traditional LLMs.
Abid Ali Awan (@1abidaliawan) is a certified data scientist professional who loves building machine learning models. Currently, he is focusing on content creation and writing technical blogs on machine learning and data science technologies. Abid holds a Master's degree in technology management and a bachelor's degree in telecommunication engineering. His vision is to build an AI product using a graph neural network for students struggling with mental illness.
原文为英文,正文由自动抓取并保留原文。
原文发布于 KDnuggets(10 GitHub Repositories to Master AI Decision Models),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。