Skip to content

Commit 80025d0

Browse files
authored
Merge branch 'master' into eval_desc_auto_batch_size
2 parents 23340af + a7c597d commit 80025d0

829 files changed

Lines changed: 161503 additions & 20034 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The following packages are installed into the Python environment `.venv`:
1313
- LAMMPS
1414
- MPICH
1515
- CMake
16-
- pre-commit (including hooks)
16+
- prek (including hooks)
1717
- Test packages including pytest
1818
- Doc packages including sphinx
1919

.devcontainer/build_py.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ SCRIPT_PATH=$(dirname $(realpath -s $0))
55
cd ${SCRIPT_PATH}/..
66

77
uv sync --dev --python 3.12 --extra cpu --extra torch --extra jax --extra lmp --extra test --extra docs
8-
pre-commit install
8+
prek install

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"features": {
77
"ghcr.io/devcontainers/features/github-cli:1": {}
88
},
9-
"postCreateCommand": ".devcontainer/build_py.sh && .devcontainer/download_libtorch.sh && .devcontainer/build_cxx.sh && pre-commit install-hooks",
9+
"postCreateCommand": ".devcontainer/build_py.sh && .devcontainer/download_libtorch.sh && .devcontainer/build_cxx.sh && prek install-hooks",
1010
"remoteEnv": {
1111
"PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/.venv/bin",
1212
"DP_ENABLE_PYTORCH": "1",
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Discussion Templates
2+
3+
This directory contains GitHub Discussion category forms for DeePMD-kit.
4+
5+
## Active template
6+
7+
- `q-a.yml`**Q&A**
8+
9+
## Notes
10+
11+
- The filename must match the discussion category slug exactly.
12+
- GitHub Discussion forms only support a limited set of top-level keys, such as `title`, `labels`, and `body`.
13+
- This Q&A template is intentionally lightweight; most fields are optional and should be filled only when relevant.
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
title: "[Q&A] "
2+
labels: ["question"]
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Use this form for Q&A discussions.
8+
9+
This template is intentionally lightweight.
10+
**Only fill the technical fields below if they are relevant to your question.**
11+
12+
If your question is about using DeePMD-kit or diagnosing a problem, version info and a minimal reproducible example can help others answer faster.
13+
- type: textarea
14+
id: question
15+
attributes:
16+
label: Question
17+
description: Please describe your question clearly.
18+
placeholder: What would you like to ask?
19+
value:
20+
validations:
21+
required: true
22+
- type: input
23+
id: version
24+
attributes:
25+
label: DeePMD-kit Version
26+
description: "If applicable: `dp --version`."
27+
placeholder: "e.g., 2.2.7"
28+
validations:
29+
required: false
30+
- type: input
31+
id: backend-version
32+
attributes:
33+
label: Backend and its version
34+
description: "If applicable: the backend and its version will be printed when running DeePMD-kit, e.g. TensorFlow v2.15.0."
35+
placeholder: "e.g., TensorFlow v2.15.0"
36+
validations:
37+
required: false
38+
- type: textarea
39+
id: other-version
40+
attributes:
41+
label: Python Version, CUDA Version, GCC Version, LAMMPS Version, etc
42+
description: "If applicable, specify your platform or environment details."
43+
placeholder:
44+
value:
45+
validations:
46+
required: false
47+
- type: textarea
48+
id: details
49+
attributes:
50+
label: Details
51+
description: "If applicable, add more context such as what you are trying to do, what you have tried, and where you got stuck."
52+
placeholder:
53+
value:
54+
validations:
55+
required: false
56+
- type: textarea
57+
id: reproducible-example
58+
attributes:
59+
label: Reproducible Example, Input Files, and Commands
60+
description: |
61+
If applicable, provide a minimal reproducible example.
62+
For software-usage questions, this is often the fastest way to get a useful answer.
63+
placeholder: |
64+
Commands:
65+
```bash
66+
dp train input.json
67+
```
68+
69+
Input / config:
70+
```json
71+
{
72+
"model": {}
73+
}
74+
```
75+
76+
Expected behavior:
77+
...
78+
79+
Actual behavior / error message:
80+
...
81+
value:
82+
validations:
83+
required: false
84+
- type: textarea
85+
id: further
86+
attributes:
87+
label: Further Information, Files, and Links
88+
description: Put any additional information here, including links to docs, papers, related issues, screenshots, or external resources.
89+
placeholder:
90+
value:
91+
validations:
92+
required: false

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ body:
3737
- docker
3838
- pip
3939
- Built from source
40+
- dp1s
4041
- Others (write below)
4142
validations:
4243
required: true

.github/labeler.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ C:
3030
LAMMPS:
3131
- changed-files:
3232
- any-glob-to-any-file: source/lmp/**/*
33-
Gromacs:
34-
- changed-files:
35-
- any-glob-to-any-file: source/gmx/**/*
3633
i-PI:
3734
- changed-files:
3835
- any-glob-to-any-file: source/ipi/**/*

0 commit comments

Comments
 (0)