Install this version:
emerge -a =dev-python/peft-0.21.0
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-python/peft-0.21.0
Or alternatively:
emerge --autounmask-write -a =dev-python/peft-0.21.0
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.21.0 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Parameter-Efficient Fine-Tuning: LoRA and friends on top of
# transformers. Packaged for sci-ml/soup-cli; every dependency is a
# tree package.
EAPI=8
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
PYTHON_COMPAT=( python3_{12..14} )
inherit distutils-r1
DESCRIPTION="State-of-the-art Parameter-Efficient Fine-Tuning (LoRA, prompt tuning, ...)"
HOMEPAGE="https://github.com/huggingface/peft"
SRC_URI="https://github.com/huggingface/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
# The suite needs GPUs, network access and bitsandbytes.
RESTRICT="test"
RDEPEND="
sci-ml/accelerate[${PYTHON_SINGLE_USEDEP}]
sci-ml/huggingface_hub[${PYTHON_SINGLE_USEDEP}]
sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
sci-ml/transformers[${PYTHON_SINGLE_USEDEP}]
$(python_gen_cond_dep '
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/tqdm[${PYTHON_USEDEP}]
sci-ml/safetensors[${PYTHON_USEDEP}]
')
"
DEPEND="${RDEPEND}"
sci-ml/accelerate[${PYTHON_SINGLE_USEDEP}] sci-ml/huggingface_hub[${PYTHON_SINGLE_USEDEP}] sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}] sci-ml/transformers[${PYTHON_SINGLE_USEDEP}] $(python_gen_cond_dep ' dev-python/numpy[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] dev-python/psutil[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/tqdm[${PYTHON_USEDEP}] sci-ml/safetensors[${PYTHON_USEDEP}] ')
sci-ml/accelerate[${PYTHON_SINGLE_USEDEP}] sci-ml/huggingface_hub[${PYTHON_SINGLE_USEDEP}] sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}] sci-ml/transformers[${PYTHON_SINGLE_USEDEP}] $(python_gen_cond_dep ' dev-python/numpy[${PYTHON_USEDEP}] dev-python/packaging[${PYTHON_USEDEP}] dev-python/psutil[${PYTHON_USEDEP}] dev-python/pyyaml[${PYTHON_USEDEP}] dev-python/tqdm[${PYTHON_USEDEP}] sci-ml/safetensors[${PYTHON_USEDEP}] ')
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | peft-0.21.0.gh.tar.gz | 11222702 bytes | https://github.com/huggingface/peft/archive/refs/tags/v0.21.0.tar.gz |