### Offline inference
The default checkpoint, [`deepseek-ai/DeepSeek-V4.1-Flash-1017`](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017), is
downloaded into the Hugging Face cache on the first run; set `DEEPINFER_HF_MODEL_DIR=/path/to/DeepSeek-V4.1-Flash-1017` to
run from a local copy instead.
curl http://127.0.0.1:8012/v1/decisions -H'Content-Type: application/json' -d '{
"state": "The battery stopped charging after two weeks.",
"questions": {
"defect": {"type": "noul", "instructions": "Does the review report a product defect?"},
"severity": {"type": "choice", "instructions": "How severe is the issue?",
"criteria": {"low": "Minor", "medium": "Noticeable", "high": "The product is unusable"}}
}
}'
DeepInfer vs verdict 常见问题 (FAQ)
DeepInfer 和 verdict 在开源协议与商用合规上有什么区别?
deepseek-ai/DeepInfer 采用 Apache-2.0 · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。);PyModel/verdict 采用 MIT · 允许商用(宽松开源协议,允许商业使用、修改与私有化闭源分发(保留版权声明即可)。)。
2026 年 DeepInfer 与 verdict 哪个社区增长更快?
按 RepoForAI 实时快照,DeepInfer 总 Star 27,715(7日 +1,312),verdict 总 Star 118(7日 +118),近期增速由 DeepInfer 领先。
团队技术选型时该如何二选一?
适合选用 DeepInfer(Python):已有受支持的 SM100 或 Ascend 950 环境,需要对 DeepSeek-V4.1-Flash 做离线评测或集成,并希望直接控制并行布局与结果复现;适合选用 verdict(Swift):在 Apple silicon Mac 上为工具、Agent 或可信局域网客户端提供本地 Decisions API,处理结构化文本或图像分类、打分;16 GB 机型可先选 Flash。