Home

Awesome

<div id="top"></div> <div align="center"> <img src="docs/imgs/lagent_logo.png" width="450"/>

docs PyPI license issue resolution open issues Visitors GitHub forks GitHub Repo stars GitHub contributors

English | 简体中文 | 日本語 | हिंदी | বাংলা | 한국어

</div> <p align="center"> 👋 join us on <a href="https://twitter.com/intern_lm" target="_blank">𝕏 (Twitter)</a>, <a href="https://discord.gg/xa29JuW87d" target="_blank">Discord</a> and <a href="https://r.vansin.top/?r=internwx" target="_blank">WeChat</a> </p> <div align="center">

https://github.com/InternLM/lagent/assets/24622904/3242f9bf-32d2-4907-8815-e16a75a4ac0e

</div>

Getting Started

Please see the overview for the general introduction of Lagent. Meanwhile, we provide extremely simple code for quick start. You may refer to examples for more details.

Installation

Install with pip (Recommended).

pip install lagent

Run a Web Demo

You need to install Streamlit first.

# pip install streamlit
streamlit run examples/internlm2_agent_web_demo.py

What's Lagent?

Lagent is a lightweight open-source framework that allows users to efficiently build large language model(LLM)-based agents. It also provides some typical tools to augment LLM. The overview of our framework is shown below:

image

Major Features

💻Tech Stack

<p> <a href=""> <img src="https://img.shields.io/badge/Python-007ACC?style=for-the-badge&logo=python&logoColor=yellow" alt="python" /> </a>

All Thanks To Our Contributors:

<a href="https://github.com/InternLM/lagent/graphs/contributors"> <img src="https://contrib.rocks/image?repo=InternLM/lagent" /> </a>

Citation

If you find this project useful in your research, please consider cite:

@misc{lagent2023,
    title={{Lagent: InternLM} a lightweight open-source framework that allows users to efficiently build large language model(LLM)-based agents},
    author={Lagent Developer Team},
    howpublished = {\url{https://github.com/InternLM/lagent}},
    year={2023}
}

License

This project is released under the Apache 2.0 license.

<p align="right"><a href="#top">🔼 Back to top</a></p>