Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 476 Bytes

installation.mdx

File metadata and controls

24 lines (18 loc) · 476 Bytes

Installation

You can install TRL either from pypi or from source:

pypi

Install the library with pip:

pip install trl

Source

You can also install the latest version from source. First clone the repo and then run the installation with pip:

git clone https://github.com/huggingface/trl.git
cd trl/
pip install -e .

If you want the development install you can replace the pip install with the following:

pip install -e ".[dev]"