Buckets:

hf-doc-build/doc-dev / trl /pr_5607 /en /installation.md
|
download
raw
721 Bytes
# Installation
You can install TRL either from PyPI or from source:
## PyPI
Install the library with pip or [uv](https://docs.astral.sh/uv/):
uv is a fast Rust-based Python package and project manager. Refer to [Installation](https://docs.astral.sh/uv/getting-started/installation/) for installation instructions.
```bash
uv pip install trl
```
```bash
pip install trl
```
## Source
You can also install the latest version from source. First clone the repo and then run the installation with `pip`:
```bash
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:
```bash
pip install -e ".[dev]"
```

Xet Storage Details

Size:
721 Bytes
·
Xet hash:
93a212e058d9bb34cba1a06128f233b868aa7888dba650df4f172e05dcb3b75a

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