-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
103 lines (97 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
103 lines (97 loc) · 2.62 KB
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
97
98
99
100
101
102
103
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[project]
name = "fabricpc"
version = "0.3.1"
description = "A flexible, performant predictive coding library using JAX"
readme = "README.md"
requires-python = ">=3.10"
authors = [
{name = "FabricPC Authors"}
]
keywords = ["predictive-coding", "jax", "neural-networks", "machine-learning"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Private :: Do Not Upload",
]
dependencies = [
"jax",
"jaxlib",
"optax>=0.1.7",
"orbax-checkpoint>=0.4.0",
"flax>=0.7.5",
"chex>=0.1.84",
"jaxtyping>=0.2.23",
"numpy>=1.24.0",
"tqdm>=4.65.0",
"optuna",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0.0",
"hypothesis>=6.0.0",
"black[colorama]==26.1.0",
"mypy>=1.0.0",
"pre-commit>=3.0.0",
]
tfds = [
"tensorflow-datasets>=4.9.0",
"tensorflow>=2.15.0",
# tfds imports the third-party importlib_resources backport unconditionally
# in its download path (dataset_builder.py), but declares it only for
# python_version < "3.9". Without this, the first download of any dataset
# fails with ModuleNotFoundError on Python >= 3.9.
"importlib_resources",
]
experiments = [
"scipy>=1.10.0",
]
viz = [
"plotly>=5.0.0",
"kaleido>=0.2.1",
"pandas>=2.0.0",
# Aim needs aimrocks (RocksDB), which ships no Windows wheels, and supports Python <=3.12
# only; skipped on Windows and on 3.13 so [viz]/[all] still resolve everywhere.
"aim>=3.0.0; python_version < '3.13' and platform_system != 'Windows'",
]
# Backend selection. Each delegates the full coupled wheel set to JAX
# (jaxlib, plugin, pjrt, nvidia-*); FabricPC pins none of those versions.
cpu = [
"jax[cpu]",
]
cuda12 = [
"jax[cuda12]",
]
cuda13 = [
"jax[cuda13]",
]
# Everything except the hardware backend. Append a backend extra for GPU
# (e.g. ".[all,cuda12]"), or omit it for the CPU build from the base jax dependency.
all = [
"fabricpc[dev,tfds,experiments,viz]",
]
[tool.setuptools]
py-modules = ["jax_setup"]
[tool.setuptools.packages.find]
where = ["."]
include = ["fabricpc*"]
[tool.black]
line-length = 88
target-version = ["py310", "py311", "py312", "py313"]
include = '\.pyi?$'
extend-exclude = '''
/(
\.git
| \.venv
| build
| dist
)/
'''