Install this version:
emerge -a =sci-ml/trl-0.24.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-ml/trl-0.24.0
Or alternatively:
emerge --autounmask-write -a =sci-ml/trl-0.24.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.24.0 | 8 | ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1 pypi
DESCRIPTION="Train transformer language models with reinforcement learning (SFT, DPO, GRPO)"
HOMEPAGE="
https://github.com/huggingface/trl
https://pypi.org/project/trl/
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=sci-ml/accelerate-1.4.0[${PYTHON_SINGLE_USEDEP}]
>=sci-ml/datasets-3.0.0[${PYTHON_SINGLE_USEDEP}]
>=sci-ml/transformers-4.56.1[${PYTHON_SINGLE_USEDEP}]
"
BDEPEND="$(python_gen_cond_dep '>=dev-python/setuptools-77.0.3[${PYTHON_USEDEP}]')"
>=sci-ml/accelerate-1.4.0[] >=sci-ml/datasets-3.0.0[] >=sci-ml/transformers-4.56.1[]
$(python_gen_cond_dep '>=dev-python/setuptools-77.0.3[${PYTHON_USEDEP}]')