Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.3 kB · 114 lines
Nix
at flake-libs
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115{ lib, buildPythonPackage, fetchFromGitHub, stdenv,
# build-system setuptools,
# dependencies accelerate, huggingface-hub, numpy, packaging, psutil, pyyaml, safetensors, torch, tqdm, transformers,
# tests datasets, diffusers, parameterized, pytest-cov-stub, pytest-xdist, pytestCheckHook, scipy,}:
buildPythonPackage rec { pname = "peft"; version = "0.15.2"; pyproject = true;
src = fetchFromGitHub { owner = "huggingface"; repo = "peft"; tag = "v${version}"; hash = "sha256-c9oHBQCdJpPAeI7xwePXx75Sp39I8QVjRZSxxSOm2PM="; };
build-system = [ setuptools ];
dependencies = [ accelerate huggingface-hub numpy packaging psutil pyyaml safetensors torch tqdm transformers ];
pythonImportsCheck = [ "peft" ];
nativeCheckInputs = [ datasets diffusers parameterized pytest-cov-stub pytest-xdist pytestCheckHook scipy ];
pytestFlagsArray = [ "tests" ];
# These tests fail when MPS devices are detected disabledTests = lib.optional stdenv.isDarwin [ "gpu" ];
disabledTestPaths = [ # ValueError: Can't find 'adapter_config.json' "tests/test_config.py"
# Require internet access to download a dataset "tests/test_adaption_prompt.py" "tests/test_auto.py" "tests/test_boft.py" "tests/test_cpt.py" "tests/test_custom_models.py" "tests/test_decoder_models.py" "tests/test_encoder_decoder_models.py" "tests/test_feature_extraction_models.py" "tests/test_helpers.py" "tests/test_hub_features.py" "tests/test_incremental_pca.py" "tests/test_initialization.py" "tests/test_mixed.py" "tests/test_multitask_prompt_tuning.py" "tests/test_other.py" "tests/test_other.py" "tests/test_poly.py" "tests/test_stablediffusion.py" "tests/test_trainable_tokens.py" "tests/test_tuners_utils.py" "tests/test_vision_models.py" "tests/test_xlora.py" ];
meta = { homepage = "https://github.com/huggingface/peft"; description = "State-of-the art parameter-efficient fine tuning"; changelog = "https://github.com/huggingface/peft/releases/tag/${src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bcdarwin ]; };}