ca34a0ac67
Diff: https://github.com/speediedan/finetuning-scheduler/compare/v2.9.1...v2.9.2 Changelog: https://github.com/speediedan/finetuning-scheduler/blob/v2.9.2/CHANGELOG.md
67 lines
1.6 KiB
Nix
67 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
setuptools,
|
|
|
|
# dependencies
|
|
pytorch-lightning,
|
|
torch,
|
|
|
|
# tests
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "finetuning-scheduler";
|
|
version = "2.9.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "speediedan";
|
|
repo = "finetuning-scheduler";
|
|
tag = "v${version}";
|
|
hash = "sha256-+LJ36LzFamC5Mv5ec+uUtMWZt0WMjuHKZlA73rZqoxw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonRelaxDeps = [
|
|
"pytorch-lightning"
|
|
];
|
|
|
|
dependencies = [
|
|
pytorch-lightning
|
|
torch
|
|
];
|
|
|
|
# needed while lightning is installed as package `pytorch-lightning` rather than`lightning`:
|
|
env.PACKAGE_NAME = "pytorch";
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
enabledTestPaths = [ "tests" ];
|
|
disabledTests = [
|
|
# AssertionError: assert 'lightning @ git+' in 'lightning>=2.5.0,<2.5.6'
|
|
"test_get_lightning_requirement"
|
|
]
|
|
++ lib.optionals (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux) [
|
|
# slightly exceeds numerical tolerance on aarch64-linux:
|
|
"test_fts_frozen_bn_track_running_stats"
|
|
];
|
|
|
|
pythonImportsCheck = [ "finetuning_scheduler" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = {
|
|
description = "PyTorch Lightning extension for foundation model experimentation with flexible fine-tuning schedules";
|
|
homepage = "https://finetuning-scheduler.readthedocs.io";
|
|
changelog = "https://github.com/speediedan/finetuning-scheduler/blob/v${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ bcdarwin ];
|
|
};
|
|
}
|