blob: c155a606707bb3c8cec43e8a2a791f0ced9d4061 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
{
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 ];
};
}
|