Installation
With pip
Install with pip (Recommended).
pip install lagent
From source
Optionally, you could also build Lagent from source in case you want to modify the code:
git clone https://github.com/InternLM/lagent.git
cd lagent
pip install -e .