Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Models
This page holds the Llama2-7b model which is trained with Agent-FLAN dataset. It is fine-tuned on AgentInstruct and Toolbench by applying the data generation pipeline proposed in Agent-FLAN paper, which holds strong abilities on various agent tasks and tool utilization~
Open-sourced Large Language Models (LLMs) have achieved great success in various NLP tasks, however, they are still far inferior to API-based models when acting as agents. How to integrate agent ability into general LLMs becomes a crucial and urgent problem. This paper first delivers three key observations: (1) the current agent training corpus is entangled with both formats following and agent reasoning, which significantly shifts from the distribution of its pre-training data; (2) LLMs exhibit different learning speeds on the capabilities required by agent tasks; and (3) current approaches have side-effects when improving agent abilities by introducing hallucinations. Based on the above findings, we propose Agent-FLAN to effectively Fine-tune LANguage models for Agents. Through careful decomposition and redesign of the training corpus, Agent-FLAN enables Llama2-7B to outperform prior best works by 3.5% across various agent evaluation datasets. With comprehensively constructed negative samples, Agent-FLAN greatly alleviates the hallucination issues based on our established evaluation benchmark. Besides, it consistently improves the agent capability of LLMs when scaling model sizes while slightly enhancing the general capability of LLMs.
🤗 Agent-FLAN Model
Agent-FLAN is produced by mixed training on AgentInstruct, ToolBench, and ShareGPT datasets from the Llama2-chat series.
The models follow the conversation format of Llama-2-chat, with the template protocol as:
Agent-FLAN is built with
Lagent
and
T-Eval
. Thanks for their awesome work!
🖊️ Citation
If you find this project useful in your research, please consider citing:
@article{chen2024agent,
title={Agent-FLAN: Designing Data and Methods of Effective Agent Tuning for Large Language Models},
author={Chen, Zehui and Liu, Kuikun and Wang, Qiuchen and Liu, Jiangning and Zhang, Wenwei and Lin, Dahua and Chen, Kai and Zhao, Feng},
journal={arXiv preprint arXiv:2403.12881},
year={2024}
}
💳 License
This project is released under the Apache 2.0
license
.
Runs of internlm Agent-FLAN-7b on huggingface.co
212
Total runs
-3
24-hour runs
9
3-day runs
19
7-day runs
119
30-day runs
More Information About Agent-FLAN-7b huggingface.co Model
Agent-FLAN-7b huggingface.co is an AI model on huggingface.co that provides Agent-FLAN-7b's model effect (), which can be used instantly with this internlm Agent-FLAN-7b model. huggingface.co supports a free trial of the Agent-FLAN-7b model, and also provides paid use of the Agent-FLAN-7b. Support call Agent-FLAN-7b model through api, including Node.js, Python, http.
Agent-FLAN-7b huggingface.co is an online trial and call api platform, which integrates Agent-FLAN-7b's modeling effects, including api services, and provides a free online trial of Agent-FLAN-7b, you can try Agent-FLAN-7b online for free by clicking the link below.
internlm Agent-FLAN-7b online free url in huggingface.co:
Agent-FLAN-7b is an open source model from GitHub that offers a free installation service, and any user can find Agent-FLAN-7b on GitHub to install. At the same time, huggingface.co provides the effect of Agent-FLAN-7b install, users can directly use Agent-FLAN-7b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.