Install this version:
emerge -a =sci-ml/accelerate-1.13.0-r1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sci-ml/accelerate-1.13.0-r1
Or alternatively:
emerge --autounmask-write -a =sci-ml/accelerate-1.13.0-r1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.13.0-r1 | 8 | ~amd64 | 0 |
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_SINGLE_IMPL=1
inherit distutils-r1
DESCRIPTION="Run your *raw* PyTorch training script on any kind of device"
HOMEPAGE="https://github.com/huggingface/accelerate"
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"
RDEPEND="
sci-ml/huggingface_hub[${PYTHON_SINGLE_USEDEP}]
sci-ml/pytorch[${PYTHON_SINGLE_USEDEP}]
sci-ml/caffe2[${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}]
sci-ml/safetensors[${PYTHON_USEDEP}]
')
"
DEPEND="${RDEPEND}"
BDEPEND="test? (
$(python_gen_cond_dep '
dev-python/networkx[${PYTHON_USEDEP}]
dev-python/parameterized[${PYTHON_USEDEP}]
sci-ml/clearml[${PYTHON_USEDEP}]
')
sci-ml/caffe2[gloo]
sci-ml/evaluate[${PYTHON_SINGLE_USEDEP}]
sci-ml/torchdata[${PYTHON_SINGLE_USEDEP}]
)"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_test() {
local EPYTEST_DESELECT=(
tests/test_accelerator.py::AcceleratorTester::test_env_var_device
tests/test_cli.py::ModelEstimatorTester
tests/test_examples.py::FeatureExamplesTests
tests/test_modeling_utils.py::ModelingUtilsTester::test_infer_auto_device_map_on_t0pp
tests/test_utils.py::UtilsTester::test_patch_environment_key_exists
)
epytest tests
}
sci-ml/huggingface_hub[] sci-ml/pytorch[] sci-ml/caffe2[] $(python_gen_cond_dep ' dev-python/numpy[] dev-python/packaging[] dev-python/psutil[] dev-python/pyyaml[] sci-ml/safetensors[] ')
sci-ml/huggingface_hub[] sci-ml/pytorch[] sci-ml/caffe2[] $(python_gen_cond_dep ' dev-python/numpy[] dev-python/packaging[] dev-python/psutil[] dev-python/pyyaml[] sci-ml/safetensors[] ')
test? ( $(python_gen_cond_dep ' dev-python/networkx[] dev-python/parameterized[] sci-ml/clearml[] ') sci-ml/caffe2[gloo] sci-ml/evaluate[] sci-ml/torchdata[] )