-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
85 lines (73 loc) · 2.18 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "deeperwin"
requires-python = ">=3.11"
version = "1.3.0"
authors = [
{ name = "Michael Scherbela", email = "michael.scherbela@gmail.com" },
{ name = "Leon Gerard", email = "leongerard@outlook.de" },
{ name = "Rafael Reisenhofer" },
]
description = "A JAX based framework to calculate deep-learning VMC solutions to the Schrödinger equation"
readme = "README.md"
dependencies = [
"jax[cpu]==0.4.23", # CPU-only version of jax. Comment out for GPU support
# Uncomment this AND the find-links directive in the [tool.uv] section for GPU support
# "jax[cuda12_pip]==0.4.23",
"numpy<2.0.0",
"dm-haiku>=0.0.12",
"optax>=0.2.2",
"chex>=0.1.86",
"pyscf>=2.3.0,<2.7.0", # UCASSCF is broken in pyscf 2.7.0; remove this version cap once fixed
# VMC
"folx>=0.2.6",
"kfac_jax",
# utilities
"ruamel.yaml >= 0.18",
"pydantic>=2.0.0",
"wandb>=0.18",
"pytest>=8.0",
"pytest-xdist>=3.0",
"pytest-env>=1.0",
# analysis
"pandas>=2.0",
"matplotlib>=3.9",
"seaborn>=0.13",
"ase>=3.0",
]
[project.scripts]
deeperwin = "deeperwin.cli:main"
dpe_sweep_agent = "deeperwin.sweep_agent:run_sweep_agent"
copy_wandb = "deeperwin.run_tools.copy_wandb_run:main"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-n 10"
env = ['CUDA_VISIBLE_DEVICES=""']
[tool.ruff]
line-length = 120
exclude = [
"src/analysis",
"src/scratchpad",
"src/paper_plots",
"custom_kfac_jax",
"datasets",
]
[tool.ruff.lint]
ignore = [
"E731", # allow assignign lambdas
"E741", # allow "ambiguous variable names", in particular the variable l for angular momentum
]
[tool.uv]
constraint-dependencies = [
"nvidia-cudnn-cu12<9.0", # jax==0.4.23 misses version constraint cudnn<9.0; remove for higher jax versions
"nvidia-cudnn-cu11<9.0",
"scipy <=1.12.0,>= 1.6.0" # incompatibility with jax==0.4.23
]
index-strategy = "unsafe-best-match"
find-links = [
# "https://storage.googleapis.com/jax-releases/jax_cuda_releases.html" # uncomment for GPU support
]
[tool.uv.sources]
kfac_jax = { editable = true, path = "./custom_kfac_jax" }