Buckets:

hf-doc-build/doc-dev / trl /pr_4331 /en /installation.md
rtrm's picture
|
download
raw
924 Bytes

Installation

You can install TRL either from PyPI or from source:

PyPI

Install the library with pip or uv:

uv is a fast Rust-based Python package and project manager. Refer to Installation for installation instructions.

uv pip install trl
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]"

Xet Storage Details

Size:
924 Bytes
·
Xet hash:
a54d561499f0b3acae87bde10aaa8cd99d89a737080f583ac5dd35dbfdeba777

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.