正在自动登录…
← 返回项目列表nokia-applied-research/
nokia-applied-research/ AnyJev
AnyJev 是一个将任意大语言模型转换为 Jev 风格决策模型的工具,提供类型化决策和真实概率,无需训练。它支持训练无关的 Decider 和自蒸馏的 Tacit 模型,适用于需要可靠概率输出的决策场景。
AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/16 20:12:00 · 查看原文
- 累计 Stars
- 1,469
- 当前热度
- 已过新项目期
- 仓库创建时间
选用指南
AI 根据 README 整理 · 2026/10/16 20:12:00
- 使用方式
通过 Python 库使用,支持 transformers、vLLM 和 HTTP 网关。
查看 README 依据
```python from anyjev import Tacit tacit = Tacit.from_pretrained("morriszjm/Tacit-9B") # transformers, one GPU d = tacit.decide(state="Customer: my package was due last Monday and it still has not arrived.", question="What does the customer want?", options=["track_order", "cancel_order", "refund", "change_address"]) d["answer"], d["probs"], d["route"] # an option, {option: probability}, "one_forward" or "cot" ``` `kind` is `"choice"` (default), `"yes_no"` or `"score"` (`options` are ordered levels, lowest
escalate, however hard the traffic gets. Every escalation is reported (`route == "cot"`, with the first pass kept), and `tacit.stats` counts them. **On vLLM.** A stock server; the client needs only the tokenizer. ```bash pip install "anyjev[client]" vllm serve morriszjm/Tacit-9B --host 127.0.0.1 --port 8000 ``` ```python tacit = Tacit.from_pretrained("morriszjm/Tacit-9B", engine="server", base_url="http://127.0.0.1:8000", adaptive=True) ``` `engine="vllm"` (`pip install "anyjev[vllm]"`) runs vLLM in the same process instead.
**An HTTP endpoint for many clients sharing one cap.** ```bash python -m anyjev.serve --model morriszjm/Tacit-9B --upstream http://127.0.0.1:8000 --adaptive --port 8100 curl -s 127.0.0.1:8100/v1/decide -H 'Content-Type: application/json' \ -d '{"state": "Customer: my package has not arrived.", "question": "What does the customer want?", "options": ["track_order", "refund"]}' ``` `POST /v1/decide` takes one decision or `{"items": [...]}`; `GET /v1/stats` reports the escalation share. The gateway listens on 127.0.0.1 and has no authentication of its own. | argument | default | meaning |
- 部署要求
需要 Python 环境,Tacit 模型需 GPU,vLLM 服务需相应硬件。
查看 README 依据
```python from anyjev import Tacit tacit = Tacit.from_pretrained("morriszjm/Tacit-9B") # transformers, one GPU d = tacit.decide(state="Customer: my package was due last Monday and it still has not arrived.", question="What does the customer want?", options=["track_order", "cancel_order", "refund", "change_address"]) d["answer"], d["probs"], d["route"] # an option, {option: probability}, "one_forward" or "cot" ``` `kind` is `"choice"` (default), `"yes_no"` or `"score"` (`options` are ordered levels, lowest
escalate, however hard the traffic gets. Every escalation is reported (`route == "cot"`, with the first pass kept), and `tacit.stats` counts them. **On vLLM.** A stock server; the client needs only the tokenizer. ```bash pip install "anyjev[client]" vllm serve morriszjm/Tacit-9B --host 127.0.0.1 --port 8000 ``` ```python tacit = Tacit.from_pretrained("morriszjm/Tacit-9B", engine="server", base_url="http://127.0.0.1:8000", adaptive=True) ``` `engine="vllm"` (`pip install "anyjev[vllm]"`) runs vLLM in the same process instead.
- 已知限制
作者指出存在已知限制,详见 docs/limitations.md。
查看 README 依据
Dated plan and help-wanted files: [ROADMAP.md](https://github.com/nokia-applied-research/AnyJev/blob/main/ROADMAP.md). Known limitations: [docs/limitations.md](https://github.com/nokia-applied-research/AnyJev/blob/main/docs/limitations.md). ## 🤝 Contributing and citation
README
正在加载 README…
收录信息
- 仓库创建时间
- 2026/9/21 13:55:40
- 首次达标收录
- 2026/10/9 12:20:58
- 统计更新时间
- 2026/10/22 19:25:35
按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。
模型评估
值得看加权总分 4.2 / 5
由 Jev 模型根据仓库描述与 README 评估,2026/10/16 20:12:04 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。
仓库信息
- 最近推送
- 2026/10/22 04:30:58
- 许可证标识
- Apache-2.0
- Fork 数
- 168
- 当前状态
- 未归档
收录记录
按创建时长与累计 Stars 首次收录:小火
首次发现项目