> ## Content Index
> Fetch the complete content index at: https://globalfeed.ai/llms.txt
> Use this file to discover other available public pages before exploring further.

# Hugging Face：如何让开放模型适应你的智能体工具？
- URL: https://globalfeed.ai/zh/hugging-face-ru-he-rang-kai-fang-mo-xing-gua-ying-ni-de-zhi-neng-ti-gong-ju/
- Published: 2026-11-21T20:10:31.000Z
- Updated: 2026-11-21T20:10:31.000Z
- Description: Hugging Face 公开工具适配器配方：冻结模型，在智能体工具内训练 LoRA，从选题到合并。
- Author: GlobalFeed Editor
- Tags: Hugging Face, LoRA, 强化学习, 智能体, dil-zh, elle

Hugging Face 团队于11月20日发布[长文](https://huggingface.co/blog/harness-adapters-at-scale?ref=globalfeed.ai)，完整公开"harness adapter"（工具适配器）配方：冻结模型本身，只为某一个智能体工具训练一个小型 LoRA 附加层。以 Qwen3.8-27B 搭配 pi 为例，Terminal-Bench 2.1 从39%升至55%，每个任务的 token 从约2900降到1500。

## 配方步骤

智能体工具按原样运行，代理记录其产生的 token 供训练使用。任务来自 SWE-smith、SWE-Gym 和 Tasksmith，经 openenv validate 检验，1127个候选中858个通过；再只保留基础模型"有时能解"的171个任务，最终形成35个仓库、871个任务的[数据集](https://huggingface.co/datasets/harness-hub/agentic-coding-envs?ref=globalfeed.ai)。训练使用 TRL 的 AsyncGRPOTrainer，学习率从多次试验后定为2e-5。

## 结果

据团队测量，在 SWE-bench Pro 最难的51题上，pi 适配器从39.2%升至64.7%，工具调用减少53%至72%。三个适配器以二分之一权重合并成"超级适配器"，在关闭思考模式时六组对比全部胜过基础模型。所有数据、适配器和评测记录均已公开。

来源： [Hugging Face 博客](https://huggingface.co/blog/harness-adapters-at-scale?ref=globalfeed.ai), [任务数据集](https://huggingface.co/datasets/harness-hub/agentic-coding-envs?ref=globalfeed.ai)