GithubHelp home page GithubHelp logo

eitanturok / lagent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from internlm/lagent

0.0 0.0 0.0 281 KB

A lightweight framework for building LLM-based agents

License: Apache License 2.0

Python 100.00%

lagent's Introduction

👋 join us on 𝕏 (Twitter), Discord and WeChat

InternLM2-Agent.mp4

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

  • Stream Output: Provides the stream_chat interface for streaming output, allowing cool streaming demos right at your local setup.
  • Interfacing is unified, with a comprehensive design upgrade for enhanced extensibility, including:
    • Model: Whether it's the OpenAI API, Transformers, or LMDeploy inference acceleration framework, you can seamlessly switch between models.
    • Action: Simple inheritance and decoration allow you to create your own personal toolkit, adaptable to both InternLM and GPT.
    • Agent: Consistent with the Model's input interface, the transformation from model to intelligent agent only takes one step, facilitating the exploration and implementation of various agents.
  • Documentation has been thoroughly upgraded with full API documentation coverage.

💻Tech Stack

python

All Thanks To Our Contributors:

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.

🔼 Back to top

lagent's People

Contributors

liujiangning30 avatar harold-lkk avatar braisedpork1964 avatar zehuichen123 avatar mzr1996 avatar zwwwayne avatar killer2op avatar rangilyu avatar lzhgrla avatar vansin avatar tackhwa avatar zhouzaida avatar vinaykokate22 avatar 5h0ov avatar shruti-sen2004 avatar seanxuu avatar kalyanimhala avatar hellock avatar eltociear avatar bandhiyahardik avatar eitanturok avatar bhargavshirin avatar aryan4884 avatar apu52 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.