# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="${PN}"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="Accelerate"

HOMEPAGE="https://github.com/huggingface/accelerate"
LICENSE="Apache-2.0"
SRC_URI="https://files.pythonhosted.org/packages/source/${REALNAME::1}/${REALNAME}/${REALNAME}-${REALVERSION}.tar.gz"
SOURCEFILE="${REALNAME}-${REALVERSION}.tar.gz"
RESTRICT="test"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="deepspeed quality rich test-dev test-fp8 test-prod test-trackers testing"
DEPENDENCIES=">=dev-python/numpy-1.17[${PYTHON_USEDEP}]
	>=dev-python/packaging-20.0[${PYTHON_USEDEP}]
	dev-python/psutil[${PYTHON_USEDEP}]
	dev-python/pyyaml[${PYTHON_USEDEP}]
	dev-python/torch[${PYTHON_USEDEP}]
	dev-python/huggingface-hub[${PYTHON_USEDEP}]
	dev-python/safetensors[${PYTHON_USEDEP}]
	quality? ( dev-python/ruff[${PYTHON_USEDEP}] )
	test-prod? ( >=dev-python/pytest-7.2.0[${PYTHON_USEDEP}] )
	test-prod? ( dev-python/pytest-xdist[${PYTHON_USEDEP}] )
	test-prod? ( dev-python/pytest-subtests[${PYTHON_USEDEP}] )
	test-prod? ( dev-python/parameterized[${PYTHON_USEDEP}] )
	test-prod? ( dev-python/pytest-order[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/datasets[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/diffusers[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/evaluate[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/torchdata[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/torchpippy[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/transformers[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/scipy[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/scikit-learn[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/tqdm[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/bitsandbytes[${PYTHON_USEDEP}] )
	test-dev? ( dev-python/timm[${PYTHON_USEDEP}] )
	testing? ( >=dev-python/pytest-7.2.0[${PYTHON_USEDEP}] )
	testing? ( dev-python/pytest-xdist[${PYTHON_USEDEP}] )
	testing? ( dev-python/pytest-subtests[${PYTHON_USEDEP}] )
	testing? ( dev-python/parameterized[${PYTHON_USEDEP}] )
	testing? ( dev-python/pytest-order[${PYTHON_USEDEP}] )
	testing? ( dev-python/datasets[${PYTHON_USEDEP}] )
	testing? ( dev-python/diffusers[${PYTHON_USEDEP}] )
	testing? ( dev-python/evaluate[${PYTHON_USEDEP}] )
	testing? ( dev-python/torchdata[${PYTHON_USEDEP}] )
	testing? ( dev-python/torchpippy[${PYTHON_USEDEP}] )
	testing? ( dev-python/transformers[${PYTHON_USEDEP}] )
	testing? ( dev-python/scipy[${PYTHON_USEDEP}] )
	testing? ( dev-python/scikit-learn[${PYTHON_USEDEP}] )
	testing? ( dev-python/tqdm[${PYTHON_USEDEP}] )
	testing? ( dev-python/bitsandbytes[${PYTHON_USEDEP}] )
	testing? ( dev-python/timm[${PYTHON_USEDEP}] )
	deepspeed? ( dev-python/deepspeed[${PYTHON_USEDEP}] )
	rich? ( dev-python/rich[${PYTHON_USEDEP}] )
	test-fp8? ( dev-python/torchao[${PYTHON_USEDEP}] )
	test-trackers? ( dev-python/wandb[${PYTHON_USEDEP}] )
	test-trackers? ( dev-python/comet-ml[${PYTHON_USEDEP}] )
	test-trackers? ( dev-python/tensorboard[${PYTHON_USEDEP}] )
	test-trackers? ( dev-python/dvclive[${PYTHON_USEDEP}] )
	test-trackers? ( dev-python/matplotlib[${PYTHON_USEDEP}] )
	test-trackers? ( dev-python/swanlab[${PYTHON_USEDEP}] )
	test-trackers? ( dev-python/trackio[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"