TRL documentation

설치

You are viewing v1.18.0 version. A newer version v1.18.1 is available.
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

설치

TRL은 PyPI 또는 소스에서 설치할 수 있습니다:

PyPI

pip 또는 uv로 라이브러리를 설치합니다:

uv
pip

uv는 빠른 Rust 기반의 Python 패키지 및 프로젝트 매니저입니다. 설치 방법은 Installation을 참조하세요.

uv pip install trl

소스

소스에서 최신 버전을 설치할 수도 있습니다. 먼저 저장소를 클론한 다음 pip로 설치를 실행하세요:

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

개발용 설치를 원하시면 pip install을 다음으로 대체할 수 있습니다:

pip install -e ".[dev]"
Update on GitHub