-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
96 lines (87 loc) · 2.68 KB
/
pyproject.toml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# Package =====================================================================
[build-system]
requires = ["setuptools >= 61.0.0"]
build-backend = "setuptools.build_meta"
[project]
name = "bayesian_lora"
dynamic = ["version"] # version number is inferred in ./setup.py
description = "Bayesian LoRA adapters for Language Models"
authors = [
{ name = "Maxime Robeyns", email = "dev@maximerobeyns.com" },
]
license = { text = "Apache-2.0" }
readme = "README.md"
requires-python = ">=3.8"
keywords = ["Bayes", "LLM", "LoRA", "machine learning", "uncertainty"]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: GPU :: NVIDIA CUDA",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
# Minimal dependencies are intentionally left without version requirements,
# since this has made past Laplace projects hard to work with...
dependencies = [
"jaxtyping>=0.2.25",
"torch",
"tqdm",
]
[project.optional-dependencies]
# Dependencies for running the examples and tests
examples = [
"datasets>=2.16.1",
"hydra-core>=1.2.0, <2.0",
"omegaconf>=2.3.0",
"peft>=0.5.0",
"torchmetrics>=1.2.0",
"transformers>=4.37.2",
"pytest>=7.2.0",
"bitsandbytes",
]
# Other miscellaneous dev tools
dev = [
"ipywidgets>=8.0.4",
"jupyterlab>=3.5, <3.6",
"jupyterlab-vim",
"jupyterlab-vimrc",
"mypy>=0.990,<=1.0",
"tensorboard>=2.11.2, <3.0",
]
# Doc writing
docs = [
"furo>=2022.9.29",
"sphinx-autobuild>=2021.3.14",
"sphinx-copybutton>=0.5.1",
"sphinxext-opengraph>=0.7.2",
]
all = ["bayesian_lora[examples]", "bayesian_lora[dev]", "bayesian_lora[docs]"]
[project.urls]
Homepage = "https://github.com/MaximeRobeyns/bayesian_lora"
Repository = "https://github.com/MaximeRobeyns/bayesian_lora"
Documentation = "https://maximerobeyns.github.io/bayesian_lora/"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
include = ["bayesian_lora", "bayesian_lora/*"]
[tool.setuptools.package-data]
# include any package data as a list of paths here
bayesian_lora = [ ]
[tool.mypy]
python_version = "3.11"
ignore_missing_imports = true
files = "bayesian_lora/**/*.py"
[tool.pytest.ini_options]
# --ff for previously failed first
# -l for print state on failure
# -x for stop on first failure
# -s for show stdout while testing
# -v for verbose (e.g. show test names)
# -n for n threadsafe parallel workers
addopts = "-l -x --ff -s -v"
testpaths = ["tests"]
filterwarnings = ["ignore::DeprecationWarning"]
markers = [
"slow: marks tests as slow (run with '--run-slow')",
]