Upload folder using huggingface_hub
Browse files- .gitattributes +63 -32
- README.md +79 -0
- README_zh.md +79 -0
- data/DMC/solvent_xtb_test.xyz +0 -0
- data/DMC/solvent_xtb_train_200.xyz +0 -0
- manifest.yaml +376 -0
- metadata/schema.yaml +52 -0
- metadata/sha256_manifest.txt +2 -0
- onescience_relations.yaml +19 -0
- onescience_run_manifest.yaml +376 -0
- scripts/validate_dmc.py +153 -0
.gitattributes
CHANGED
|
@@ -1,60 +1,91 @@
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
-
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 11 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 12 |
-
*.lz4 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
-
*.mds filter=lfs diff=lfs merge=lfs -text
|
| 14 |
-
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 17 |
-
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 18 |
-
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 20 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 21 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 22 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 23 |
-
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 24 |
-
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 25 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 26 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 27 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 28 |
-
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 29 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 30 |
-
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 34 |
-
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 36 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 37 |
-
*.
|
| 38 |
-
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
-
|
| 40 |
-
*.
|
| 41 |
-
*
|
| 42 |
-
*.
|
| 43 |
-
|
| 44 |
-
*.
|
| 45 |
-
*.
|
| 46 |
-
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
-
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 48 |
-
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 49 |
-
# Image files - uncompressed
|
| 50 |
-
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 51 |
-
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 52 |
-
*.png filter=lfs diff=lfs merge=lfs -text
|
| 53 |
-
*.tiff filter=lfs diff=lfs merge=lfs -text
|
| 54 |
-
# Image files - compressed
|
| 55 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 56 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 57 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
-
*.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 6 |
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
| 11 |
*.model filter=lfs diff=lfs merge=lfs -text
|
| 12 |
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 13 |
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 14 |
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 15 |
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 16 |
*.pb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
| 17 |
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 18 |
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 19 |
*.rar filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 20 |
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 21 |
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.mat filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 30 |
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 31 |
*.tgz filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 32 |
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zstandard filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*.tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.db* filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
*.ark* filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
*.jpg filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
*.jpeg filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
*.bmp filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
*.gif filter=lfs diff=lfs merge=lfs -text
|
| 48 |
*.webp filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
*.mp3 filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
*.wav filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
*.wma filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
*.aac filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
*.ogg filter=lfs diff=lfs merge=lfs -text
|
| 54 |
+
*.m4a filter=lfs diff=lfs merge=lfs -text
|
| 55 |
+
*.m3u8 filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
*.amr filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
*.audio filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
*.avi filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
*.flv filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
*.mpg filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
*.asf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
*.mov filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
*.mpeg filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
*.3gp filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
*.wmv filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
*.rmvb filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
*.rm filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
*.ts filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
*.mkv filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
*.flash filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
*.vob filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
*.pdf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
*.ost filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
*.pst filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
*.doc filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
*.docx filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
*.txt filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
*.ppt filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
*.pptx filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
*.xls filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
*.xlsx filter=lfs diff=lfs merge=lfs -text
|
| 83 |
+
*.vsd filter=lfs diff=lfs merge=lfs -text
|
| 84 |
+
*.vsdx filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
*.jsonl filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
*.json filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
dataset_infos.json ignore
|
| 88 |
+
*.csv filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
*.tsv filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
|
| 91 |
+
data/DMC/solvent_xtb_test.xyz filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
# User-Defined Tags
|
| 3 |
+
tags:
|
| 4 |
+
- DMC
|
| 5 |
+
- MACE
|
| 6 |
+
- molecular dynamics
|
| 7 |
+
- extxyz
|
| 8 |
+
- carbonate
|
| 9 |
+
- XTB
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
- zh
|
| 13 |
+
license: mit
|
| 14 |
+
---
|
| 15 |
+
<p align="center">
|
| 16 |
+
<strong>
|
| 17 |
+
<span style="font-size: 30px;">DMC</span>
|
| 18 |
+
</strong>
|
| 19 |
+
</p>
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
DMC is a solvent XTB extxyz dataset for introductory training examples. It contains atomic coordinates, energies, and forces for carbonate molecular systems (VC, EC, PC, DMC, EMC, and DEC) in different configurations, and serves as a standard introductory benchmark dataset for learning and validating machine-learning interatomic potential methods.
|
| 23 |
+
|
| 24 |
+
The training file `solvent_xtb_train_200.xyz` contains 203 frames (200 training configurations + 3 isolated atom configurations), while the test file `solvent_xtb_test.xyz` contains 1000 frames. The element set is H, C, and O.
|
| 25 |
+
|
| 26 |
+
The current data package contains about 3 files.
|
| 27 |
+
|
| 28 |
+
## Supported Tasks
|
| 29 |
+
This standardized data repository provides the complete data package for the introductory MACE DMC example, including training and test sets. It can be used for:
|
| 30 |
+
- Introductory training and validation of potential energy surface models for carbonate molecular systems
|
| 31 |
+
- Potential energy surface fitting for molecular dynamics simulations
|
| 32 |
+
- Functional testing and benchmark evaluation of the MACE framework
|
| 33 |
+
|
| 34 |
+
## Dataset Format and Structure
|
| 35 |
+
|
| 36 |
+
The data files are located in the `data/DMC/` directory:
|
| 37 |
+
|
| 38 |
+
| File Path | Format | shape / Content | Description |
|
| 39 |
+
|---|---|---|---|
|
| 40 |
+
| `DMC/solvent_xtb_train_200.xyz` | extxyz | `[203, N_atoms]` | Training set, 200 training configurations + 3 isolated atom configurations |
|
| 41 |
+
| `DMC/solvent_xtb_test.xyz` | extxyz | `[1000, N_atoms]` | Test set, 1000 frames |
|
| 42 |
+
| `metadata/sha256_manifest.txt` | SHA256 | Checksum manifest | File integrity verification |
|
| 43 |
+
|
| 44 |
+
### extxyz Data Format
|
| 45 |
+
|
| 46 |
+
Each configuration consists of an atom-count line, a comment line, and atom lines. The comment line contains `Properties`, `energy_xtb`, and `pbc`. Each atom line contains the element, coordinates, optional `molID`, and `forces_xtb`.
|
| 47 |
+
|
| 48 |
+
| Field | Type | shape | Description |
|
| 49 |
+
|---|---|---|---|
|
| 50 |
+
| `species` | str | `[N_atoms]` | Element symbols; the current element set is H, C, and O |
|
| 51 |
+
| `pos` | float | `[N_atoms, 3]` | Atomic coordinates in Å |
|
| 52 |
+
| `molID` | int | `[N_atoms]` | Molecule ID; it may be absent from isolated atom configurations |
|
| 53 |
+
| `forces_xtb` | float | `[N_atoms, 3]` | Atomic forces calculated with XTB, in eV/Å |
|
| 54 |
+
| `energy_xtb` | float | `[1]` | Total configuration energy calculated with XTB, in eV |
|
| 55 |
+
| `pbc` | bool | `[3]` | Periodic boundary conditions |
|
| 56 |
+
|
| 57 |
+
## How to Use the Dataset
|
| 58 |
+
|
| 59 |
+
Download the dataset:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
hf download --dataset OneScience-Sugon/DMC --local-dir ./data
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
## Official OneScience Information
|
| 67 |
+
|
| 68 |
+
| Platform | OneScience Main Repository | Skills Repository |
|
| 69 |
+
|---|---|---|
|
| 70 |
+
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
|
| 71 |
+
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
|
| 72 |
+
|
| 73 |
+
## Limitations and License
|
| 74 |
+
|
| 75 |
+
This dataset contains the introductory DMC training example data. No new samples were generated, and the original data content was not modified. The original configuration data come from the 2022 work by Dajnowicz et al. on machine-learning potentials for lithium-ion battery electrolytes, with energies and forces recalculated using XTB (GFN2-xTB).
|
| 76 |
+
|
| 77 |
+
- **Original Paper**: Dajnowicz, S.; Agarwal, G.; Stevenson, J. M.; Jacobson, L. D.; Ramezanghorbani, F.; Leswing, K.; Friesner, R. A.; Halls, M. D.; Abel, R. High-Dimensional Neural Network Potential for Liquid Electrolyte Simulations. *J. Phys. Chem. B* **2022**, *126*, 6271–6280. https://doi.org/10.1021/acs.jpcb.2c03746
|
| 78 |
+
- **Original Data Repository**: https://github.com/imagdau/Tutorials
|
| 79 |
+
- **License**: The original data do not explicitly declare a license; refer to the original DMC data source, the OneScience repository, and the ModelScope page for applicable terms
|
README_zh.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
# 用户自定义标签
|
| 3 |
+
tags:
|
| 4 |
+
- DMC
|
| 5 |
+
- MACE
|
| 6 |
+
- molecular dynamics
|
| 7 |
+
- extxyz
|
| 8 |
+
- carbonate
|
| 9 |
+
- XTB
|
| 10 |
+
language:
|
| 11 |
+
- en
|
| 12 |
+
- zh
|
| 13 |
+
license: MIT License
|
| 14 |
+
---
|
| 15 |
+
<p align="center">
|
| 16 |
+
<strong>
|
| 17 |
+
<span style="font-size: 30px;">DMC</span>
|
| 18 |
+
</strong>
|
| 19 |
+
</p>
|
| 20 |
+
|
| 21 |
+
## 数据集描述
|
| 22 |
+
DMC 数据集是入门训练示例的溶剂 XTB extxyz 数据集。数据包含碳酸盐分子体系(VC、EC、PC、DMC、EMC、DEC)在不同构型下的原子坐标、能量和受力数据,是学习和验证机器学习原子间势方法的标准入门基准数据集。
|
| 23 |
+
|
| 24 |
+
训练文件 `solvent_xtb_train_200.xyz` 包含 203 帧(200 个训练构型 + 3 个 isolated atom 构型),测试文件 `solvent_xtb_test.xyz` 包含 1000 帧。元素集合为 H、C、O。
|
| 25 |
+
|
| 26 |
+
当前数据包包含约 3 个文件。
|
| 27 |
+
|
| 28 |
+
## 数据集支持的任务
|
| 29 |
+
本标准化数据仓库整理了 MACE DMC 入门示例的完整数据包,包含训练集和测试集,可用于:
|
| 30 |
+
- 碳酸盐分子体系势能面模型的入门训练与验证
|
| 31 |
+
- 分子动力学模拟的势能面拟合
|
| 32 |
+
- MACE 框架的功能测试与基准评测
|
| 33 |
+
|
| 34 |
+
## 数据集的格式和结构
|
| 35 |
+
|
| 36 |
+
数据文件位于 `data/DMC/` 目录下:
|
| 37 |
+
|
| 38 |
+
| 文件路径 | 格式 | shape / 内容 | 说明 |
|
| 39 |
+
|---|---|---|---|
|
| 40 |
+
| `DMC/solvent_xtb_train_200.xyz` | extxyz | `[203, N_atoms]` | 训练集,200 个训练构型 + 3 个 isolated atom 构型 |
|
| 41 |
+
| `DMC/solvent_xtb_test.xyz` | extxyz | `[1000, N_atoms]` | 测试集,1000 帧 |
|
| 42 |
+
| `metadata/sha256_manifest.txt` | SHA256 | 校验清单 | 文件完整性校验 |
|
| 43 |
+
|
| 44 |
+
### extxyz 数据格式
|
| 45 |
+
|
| 46 |
+
每个构型由原子数行、comment 行和原子行组成。comment 行包含 `Properties`、`energy_xtb` 和 `pbc`。原子行包含元素、坐标、可选 `molID` 和 `forces_xtb`。
|
| 47 |
+
|
| 48 |
+
| 字段 | 类型 | shape | 说明 |
|
| 49 |
+
|---|---|---|---|
|
| 50 |
+
| `species` | str | `[N_atoms]` | 元素符号,当前元素集合为 H、C、O |
|
| 51 |
+
| `pos` | float | `[N_atoms, 3]` | 原子坐标,单位 Å |
|
| 52 |
+
| `molID` | int | `[N_atoms]` | 分子编号,isolated atom 构型中可能不存在 |
|
| 53 |
+
| `forces_xtb` | float | `[N_atoms, 3]` | XTB 计算得到的原子受力,单位 eV/Å |
|
| 54 |
+
| `energy_xtb` | float | `[1]` | XTB 计算得到的构型总能量,单位 eV |
|
| 55 |
+
| `pbc` | bool | `[3]` | 周期边界条件 |
|
| 56 |
+
|
| 57 |
+
## 数据集使用方式
|
| 58 |
+
|
| 59 |
+
下载数据集:
|
| 60 |
+
|
| 61 |
+
```bash
|
| 62 |
+
hf download --dataset OneScience-Sugon/DMC --local-dir ./data
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
## OneScience 官方信息
|
| 67 |
+
|
| 68 |
+
| 平台 | OneScience 主仓库 | Skills 仓库 |
|
| 69 |
+
|---|---|---|
|
| 70 |
+
| Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
|
| 71 |
+
| GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
|
| 72 |
+
|
| 73 |
+
## 限制与许可证
|
| 74 |
+
|
| 75 |
+
本数据集为DMC 入门训练示例数据,未生成新样本或改变原始数据内容。原始构型数据来自 Dajnowicz 等 2022 年关于锂离子电池电解液机器学习势的工作,能量和受力由 XTB (GFN2-xTB) 重新计算。
|
| 76 |
+
|
| 77 |
+
- **原始论文**:Dajnowicz, S.; Agarwal, G.; Stevenson, J. M.; Jacobson, L. D.; Ramezanghorbani, F.; Leswing, K.; Friesner, R. A.; Halls, M. D.; Abel, R. High-Dimensional Neural Network Potential for Liquid Electrolyte Simulations. *J. Phys. Chem. B* **2022**, *126*, 6271–6280. https://doi.org/10.1021/acs.jpcb.2c03746
|
| 78 |
+
- **原始数据仓库**:https://github.com/imagdau/Tutorials
|
| 79 |
+
- **许可证**:原始数据未明确声明许可证,以原始 DMC 数据来源、OneScience 仓库和 ModelScope 页面说明为准
|
data/DMC/solvent_xtb_test.xyz
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
data/DMC/solvent_xtb_train_200.xyz
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
manifest.yaml
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
onescience_manifest_version: "0.1"
|
| 2 |
+
resource_type: dataset
|
| 3 |
+
resource:
|
| 4 |
+
id: OneScience/DMC
|
| 5 |
+
name: DMC
|
| 6 |
+
domain: matchem
|
| 7 |
+
domain_tags:
|
| 8 |
+
- matchem
|
| 9 |
+
- molecular_dataset
|
| 10 |
+
- solvent_xtb
|
| 11 |
+
task: mlip_training_data
|
| 12 |
+
task_tags:
|
| 13 |
+
- mlip
|
| 14 |
+
- energy_prediction
|
| 15 |
+
- force_prediction
|
| 16 |
+
- extxyz_training
|
| 17 |
+
modalities:
|
| 18 |
+
- atomistic_structure
|
| 19 |
+
input_formats:
|
| 20 |
+
- extxyz
|
| 21 |
+
output_formats: []
|
| 22 |
+
summary: 面向 MACE 入门训练示例的 DMC 溶剂 XTB extxyz 数据集。
|
| 23 |
+
|
| 24 |
+
platform_resource:
|
| 25 |
+
primary:
|
| 26 |
+
platform: modelscope
|
| 27 |
+
repo_id: OneScience/DMC
|
| 28 |
+
repo_type: dataset
|
| 29 |
+
url: https://modelscope.cn/datasets/OneScience/DMC
|
| 30 |
+
revision: main
|
| 31 |
+
readme_path: README.md
|
| 32 |
+
manifest_path: manifest.yaml
|
| 33 |
+
mirrors: []
|
| 34 |
+
access:
|
| 35 |
+
visibility: public
|
| 36 |
+
license: null
|
| 37 |
+
|
| 38 |
+
website_integration:
|
| 39 |
+
enabled: true
|
| 40 |
+
click_target:
|
| 41 |
+
platform: modelscope
|
| 42 |
+
resource_url: https://modelscope.cn/datasets/OneScience/DMC
|
| 43 |
+
llm_handoff:
|
| 44 |
+
readme_required: true
|
| 45 |
+
manifest_required: true
|
| 46 |
+
download_readme_first: true
|
| 47 |
+
resolve_related_models: true
|
| 48 |
+
default_run_goal: minimal_validation
|
| 49 |
+
|
| 50 |
+
runtime:
|
| 51 |
+
enabled: true
|
| 52 |
+
onescience_domain: matchem
|
| 53 |
+
min_onescience_version: null
|
| 54 |
+
supported_execution:
|
| 55 |
+
- local
|
| 56 |
+
- local_slurm
|
| 57 |
+
- remote_slurm
|
| 58 |
+
- scnet_mcp
|
| 59 |
+
|
| 60 |
+
onescience:
|
| 61 |
+
repo: https://gitee.com/onescience-ai/onescience
|
| 62 |
+
official_links:
|
| 63 |
+
gitee:
|
| 64 |
+
doc: https://gitee.com/onescience-ai/onescience-doc
|
| 65 |
+
onescience: https://gitee.com/onescience-ai/onescience
|
| 66 |
+
skills: https://gitee.com/onescience-ai/oneskills
|
| 67 |
+
github:
|
| 68 |
+
doc: https://github.com/onescience-ai/OneScience-doc
|
| 69 |
+
onescience: https://github.com/onescience-ai/OneScience
|
| 70 |
+
skills: https://github.com/onescience-ai/oneskills
|
| 71 |
+
install:
|
| 72 |
+
required_by_default: false
|
| 73 |
+
command: bash install.sh matchem
|
| 74 |
+
source_paths:
|
| 75 |
+
- matchem/mace/DMC
|
| 76 |
+
compatibility:
|
| 77 |
+
examples_path: examples/matchem/mace
|
| 78 |
+
status: examples_compatible
|
| 79 |
+
|
| 80 |
+
runtime_package:
|
| 81 |
+
kind: standard_runtime_package
|
| 82 |
+
package_root: .
|
| 83 |
+
standard_layout:
|
| 84 |
+
workdir: .
|
| 85 |
+
config_dir: metadata
|
| 86 |
+
checkpoint_dir: null
|
| 87 |
+
data_dir: data
|
| 88 |
+
output_dir: outputs
|
| 89 |
+
apply_policy:
|
| 90 |
+
mode: direct_use
|
| 91 |
+
target: session_workdir
|
| 92 |
+
overwrite: true
|
| 93 |
+
protect_installed_onescience: true
|
| 94 |
+
entry_files:
|
| 95 |
+
- scripts/validate_dmc.py
|
| 96 |
+
- metadata/schema.yaml
|
| 97 |
+
- metadata/sha256_manifest.txt
|
| 98 |
+
entrypoints:
|
| 99 |
+
preflight: scripts/validate_dmc.py
|
| 100 |
+
inference: null
|
| 101 |
+
train: null
|
| 102 |
+
finetune: null
|
| 103 |
+
evaluate: null
|
| 104 |
+
visualize: null
|
| 105 |
+
deploy: null
|
| 106 |
+
|
| 107 |
+
files:
|
| 108 |
+
model_files: []
|
| 109 |
+
dataset_files:
|
| 110 |
+
- id: dmc_train_extxyz
|
| 111 |
+
path: data/DMC/solvent_xtb_train_200.xyz
|
| 112 |
+
role: train_split
|
| 113 |
+
description_zh: DMC 溶剂 XTB 训练 extxyz 文件,包含 203 帧,其中 3 帧为 isolated atom,200 帧为训练构型。
|
| 114 |
+
required: true
|
| 115 |
+
required_for: [preflight, train]
|
| 116 |
+
format: extxyz
|
| 117 |
+
source:
|
| 118 |
+
platform: modelscope
|
| 119 |
+
repo_id: OneScience/DMC
|
| 120 |
+
repo_type: dataset
|
| 121 |
+
path: data/DMC/solvent_xtb_train_200.xyz
|
| 122 |
+
revision: main
|
| 123 |
+
url: null
|
| 124 |
+
download_method: command_ref
|
| 125 |
+
command_ref: commands.download.download_dataset_package
|
| 126 |
+
mirrors: []
|
| 127 |
+
local_path: session_workdir/data/DMC/solvent_xtb_train_200.xyz
|
| 128 |
+
size: 672K
|
| 129 |
+
checksum: metadata/sha256_manifest.txt
|
| 130 |
+
large_file: false
|
| 131 |
+
- id: dmc_test_extxyz
|
| 132 |
+
path: data/DMC/solvent_xtb_test.xyz
|
| 133 |
+
role: test_split
|
| 134 |
+
description_zh: DMC 溶剂 XTB 测试 extxyz 文件,包含 1000 帧,用于 MACE 示例训练后的测试评估。
|
| 135 |
+
required: true
|
| 136 |
+
required_for: [preflight, evaluate]
|
| 137 |
+
format: extxyz
|
| 138 |
+
source:
|
| 139 |
+
platform: modelscope
|
| 140 |
+
repo_id: OneScience/DMC
|
| 141 |
+
repo_type: dataset
|
| 142 |
+
path: data/DMC/solvent_xtb_test.xyz
|
| 143 |
+
revision: main
|
| 144 |
+
url: null
|
| 145 |
+
download_method: command_ref
|
| 146 |
+
command_ref: commands.download.download_dataset_package
|
| 147 |
+
mirrors: []
|
| 148 |
+
local_path: session_workdir/data/DMC/solvent_xtb_test.xyz
|
| 149 |
+
size: 3.4M
|
| 150 |
+
checksum: metadata/sha256_manifest.txt
|
| 151 |
+
large_file: false
|
| 152 |
+
config_files:
|
| 153 |
+
- id: schema
|
| 154 |
+
path: metadata/schema.yaml
|
| 155 |
+
role: schema
|
| 156 |
+
description_zh: DMC extxyz 数据结构、字段名、shape、单位、split 和 MACE 配置键说明。
|
| 157 |
+
required: true
|
| 158 |
+
required_for: [preflight, train, evaluate]
|
| 159 |
+
format: yaml
|
| 160 |
+
source:
|
| 161 |
+
platform: modelscope
|
| 162 |
+
repo_id: OneScience/DMC
|
| 163 |
+
repo_type: dataset
|
| 164 |
+
path: metadata/schema.yaml
|
| 165 |
+
revision: main
|
| 166 |
+
url: null
|
| 167 |
+
download_method: command_ref
|
| 168 |
+
command_ref: commands.download.download_dataset_package
|
| 169 |
+
mirrors: []
|
| 170 |
+
local_path: session_workdir/metadata/schema.yaml
|
| 171 |
+
size: null
|
| 172 |
+
checksum: null
|
| 173 |
+
large_file: false
|
| 174 |
+
- id: sha256_manifest
|
| 175 |
+
path: metadata/sha256_manifest.txt
|
| 176 |
+
role: checksum
|
| 177 |
+
description_zh: DMC 数据文件 SHA256 清单,用于校验整理后数据与原始数据一致。
|
| 178 |
+
required: true
|
| 179 |
+
required_for: [preflight]
|
| 180 |
+
format: txt
|
| 181 |
+
source:
|
| 182 |
+
platform: modelscope
|
| 183 |
+
repo_id: OneScience/DMC
|
| 184 |
+
repo_type: dataset
|
| 185 |
+
path: metadata/sha256_manifest.txt
|
| 186 |
+
revision: main
|
| 187 |
+
url: null
|
| 188 |
+
download_method: command_ref
|
| 189 |
+
command_ref: commands.download.download_dataset_package
|
| 190 |
+
mirrors: []
|
| 191 |
+
local_path: session_workdir/metadata/sha256_manifest.txt
|
| 192 |
+
size: null
|
| 193 |
+
checksum: null
|
| 194 |
+
large_file: false
|
| 195 |
+
sample_files:
|
| 196 |
+
- id: validate_script
|
| 197 |
+
path: scripts/validate_dmc.py
|
| 198 |
+
role: script
|
| 199 |
+
description_zh: DMC 数据读取验证脚本,检查 extxyz 字段、shape、帧数、元素集合和 SHA256。
|
| 200 |
+
required: true
|
| 201 |
+
required_for: [preflight]
|
| 202 |
+
format: py
|
| 203 |
+
source:
|
| 204 |
+
platform: modelscope
|
| 205 |
+
repo_id: OneScience/DMC
|
| 206 |
+
repo_type: dataset
|
| 207 |
+
path: scripts/validate_dmc.py
|
| 208 |
+
revision: main
|
| 209 |
+
url: null
|
| 210 |
+
download_method: command_ref
|
| 211 |
+
command_ref: commands.download.download_dataset_package
|
| 212 |
+
mirrors: []
|
| 213 |
+
local_path: session_workdir/scripts/validate_dmc.py
|
| 214 |
+
size: null
|
| 215 |
+
checksum: null
|
| 216 |
+
large_file: false
|
| 217 |
+
|
| 218 |
+
dataset:
|
| 219 |
+
format:
|
| 220 |
+
- extxyz
|
| 221 |
+
sample_unit: 单个分子构型,包含元素、坐标、energy_xtb 和 forces_xtb。
|
| 222 |
+
schema:
|
| 223 |
+
path: metadata/schema.yaml
|
| 224 |
+
splits:
|
| 225 |
+
train:
|
| 226 |
+
path: data/DMC/solvent_xtb_train_200.xyz
|
| 227 |
+
frames: 203
|
| 228 |
+
validation:
|
| 229 |
+
path: null
|
| 230 |
+
note_zh: "MACE DMC 示例通过 valid_fraction: 0.10 从训练文件划分验证集。"
|
| 231 |
+
test:
|
| 232 |
+
path: data/DMC/solvent_xtb_test.xyz
|
| 233 |
+
frames: 1000
|
| 234 |
+
|
| 235 |
+
relations:
|
| 236 |
+
required_datasets: []
|
| 237 |
+
optional_datasets: []
|
| 238 |
+
compatible_models:
|
| 239 |
+
- id: OneScience/MACE
|
| 240 |
+
role: train_data
|
| 241 |
+
required_for: [preflight, train, evaluate]
|
| 242 |
+
resource_ref:
|
| 243 |
+
platform: modelscope
|
| 244 |
+
repo_id: OneScience/MACE
|
| 245 |
+
repo_type: model
|
| 246 |
+
url: https://modelscope.cn/models/OneScience/MACE
|
| 247 |
+
revision: main
|
| 248 |
+
readme_path: README.md
|
| 249 |
+
manifest_path: manifest.yaml
|
| 250 |
+
expected_local_path: session_workdir/data/DMC
|
| 251 |
+
adapter: null
|
| 252 |
+
|
| 253 |
+
run_matrix:
|
| 254 |
+
scenarios:
|
| 255 |
+
- name: validate_dataset
|
| 256 |
+
default: true
|
| 257 |
+
capability: preflight
|
| 258 |
+
required_datasets:
|
| 259 |
+
- id: OneScience/DMC
|
| 260 |
+
role: train_data
|
| 261 |
+
local_path: data/DMC
|
| 262 |
+
required_model_files: []
|
| 263 |
+
required_data_files:
|
| 264 |
+
- data/DMC/solvent_xtb_train_200.xyz
|
| 265 |
+
- data/DMC/solvent_xtb_test.xyz
|
| 266 |
+
- metadata/sha256_manifest.txt
|
| 267 |
+
preconditions:
|
| 268 |
+
- 已下载数据集仓库 OneScience/DMC。
|
| 269 |
+
command_refs:
|
| 270 |
+
- commands.preflight.validate_dataset
|
| 271 |
+
outputs:
|
| 272 |
+
- path: stdout
|
| 273 |
+
description_zh: 数据字段、帧数、元素集合和 SHA256 检查结果。
|
| 274 |
+
|
| 275 |
+
capabilities:
|
| 276 |
+
inference: false
|
| 277 |
+
train: false
|
| 278 |
+
finetune: false
|
| 279 |
+
evaluate: false
|
| 280 |
+
visualize: false
|
| 281 |
+
deploy: false
|
| 282 |
+
|
| 283 |
+
commands:
|
| 284 |
+
download:
|
| 285 |
+
- name: download_dataset_package
|
| 286 |
+
target: dataset
|
| 287 |
+
repo_id: OneScience/DMC
|
| 288 |
+
source: .
|
| 289 |
+
local_path: session_workdir/
|
| 290 |
+
required: true
|
| 291 |
+
required_for: [preflight, train, evaluate]
|
| 292 |
+
cwd: .
|
| 293 |
+
command: modelscope download --dataset OneScience/DMC --local_dir session_workdir
|
| 294 |
+
expected_outputs:
|
| 295 |
+
- path: session_workdir/data/DMC/solvent_xtb_train_200.xyz
|
| 296 |
+
type: file
|
| 297 |
+
success_criteria:
|
| 298 |
+
- exit_code == 0
|
| 299 |
+
- output_path_exists
|
| 300 |
+
preflight:
|
| 301 |
+
- name: validate_dataset
|
| 302 |
+
description: 验证 DMC extxyz 文件结构、字段名、帧数和 SHA256。
|
| 303 |
+
cwd: .
|
| 304 |
+
command: python scripts/validate_dmc.py --dataset-root data/DMC --checksum-manifest metadata/sha256_manifest.txt
|
| 305 |
+
required_files:
|
| 306 |
+
- data/DMC/solvent_xtb_train_200.xyz
|
| 307 |
+
- data/DMC/solvent_xtb_test.xyz
|
| 308 |
+
- metadata/sha256_manifest.txt
|
| 309 |
+
- scripts/validate_dmc.py
|
| 310 |
+
required_env:
|
| 311 |
+
- python
|
| 312 |
+
expected_outputs:
|
| 313 |
+
- path: stdout
|
| 314 |
+
type: text
|
| 315 |
+
success_criteria:
|
| 316 |
+
- exit_code == 0
|
| 317 |
+
prepare: []
|
| 318 |
+
inference: []
|
| 319 |
+
train: []
|
| 320 |
+
finetune: []
|
| 321 |
+
evaluate: []
|
| 322 |
+
visualize: []
|
| 323 |
+
deploy: []
|
| 324 |
+
|
| 325 |
+
expected_outputs:
|
| 326 |
+
- path: stdout
|
| 327 |
+
type: text
|
| 328 |
+
description_zh: 验证脚本输出每个 split、字段和 SHA256 的 OK 结果。
|
| 329 |
+
|
| 330 |
+
diagnostics:
|
| 331 |
+
- error_pattern: "缺少文件"
|
| 332 |
+
likely_cause: 数据集下载不完整或运行 cwd 不在数据集仓库根目录。
|
| 333 |
+
action: 重新执行 modelscope download --dataset OneScience/DMC,并在下载后的数据集根目录运行验证命令。
|
| 334 |
+
- error_pattern: "SHA256 不一致"
|
| 335 |
+
likely_cause: 文件被截断、损坏或被替换。
|
| 336 |
+
action: 删除损坏文件后重新下载数据集。
|
| 337 |
+
- error_pattern: "energy_xtb"
|
| 338 |
+
likely_cause: extxyz comment 中缺少 MACE DMC 配置要求的能量字段。
|
| 339 |
+
action: 检查数据是否为本���库 DMC XTB 数据,或同步修改模型配置 energy_key。
|
| 340 |
+
- error_pattern: "forces_xtb"
|
| 341 |
+
likely_cause: extxyz Properties 中缺少 MACE DMC 配置要求的力字段。
|
| 342 |
+
action: 检查数据是否为本仓库 DMC XTB 数据,或同步修改模型配置 forces_key。
|
| 343 |
+
|
| 344 |
+
domain_extension:
|
| 345 |
+
matchem:
|
| 346 |
+
chemical_system:
|
| 347 |
+
elements:
|
| 348 |
+
- H
|
| 349 |
+
- C
|
| 350 |
+
- O
|
| 351 |
+
properties:
|
| 352 |
+
- energy
|
| 353 |
+
- forces
|
| 354 |
+
units:
|
| 355 |
+
energy: eV
|
| 356 |
+
forces: eV/Angstrom
|
| 357 |
+
structure_format:
|
| 358 |
+
- extxyz
|
| 359 |
+
|
| 360 |
+
large_resource:
|
| 361 |
+
enabled: false
|
| 362 |
+
total_size: 4.1M
|
| 363 |
+
file_count: 2
|
| 364 |
+
download_policy: full
|
| 365 |
+
default_download: full
|
| 366 |
+
minimal_files:
|
| 367 |
+
- data/DMC/solvent_xtb_train_200.xyz
|
| 368 |
+
- data/DMC/solvent_xtb_test.xyz
|
| 369 |
+
|
| 370 |
+
reproducibility:
|
| 371 |
+
level: minimal
|
| 372 |
+
goal: 完成一次 DMC extxyz 数据读取和 SHA256 校验。
|
| 373 |
+
command_ref: commands.preflight.validate_dataset
|
| 374 |
+
expected_runtime: less than 1 minute
|
| 375 |
+
expected_outputs:
|
| 376 |
+
- stdout
|
metadata/schema.yaml
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dataset: DMC
|
| 2 |
+
standardized_repo_id: OneScience/DMC
|
| 3 |
+
domain: matchem
|
| 4 |
+
format:
|
| 5 |
+
- extxyz
|
| 6 |
+
splits:
|
| 7 |
+
train:
|
| 8 |
+
path: data/DMC/solvent_xtb_train_200.xyz
|
| 9 |
+
frames: 203
|
| 10 |
+
note_zh: 文件名表示 200 个训练构型,文件内还包含 3 个 isolated atom 构型。
|
| 11 |
+
test:
|
| 12 |
+
path: data/DMC/solvent_xtb_test.xyz
|
| 13 |
+
frames: 1000
|
| 14 |
+
sample_schema:
|
| 15 |
+
extxyz_comment_fields:
|
| 16 |
+
- Properties
|
| 17 |
+
- energy_xtb
|
| 18 |
+
- pbc
|
| 19 |
+
properties:
|
| 20 |
+
species:
|
| 21 |
+
dtype: string
|
| 22 |
+
shape: [num_atoms]
|
| 23 |
+
description_zh: 元素符号。
|
| 24 |
+
pos:
|
| 25 |
+
dtype: float
|
| 26 |
+
shape: [num_atoms, 3]
|
| 27 |
+
unit: Angstrom
|
| 28 |
+
description_zh: 原子坐标。
|
| 29 |
+
molID:
|
| 30 |
+
dtype: int
|
| 31 |
+
shape: [num_atoms]
|
| 32 |
+
optional: true
|
| 33 |
+
description_zh: 分子编号,isolated atom 构型中可能不存在。
|
| 34 |
+
forces_xtb:
|
| 35 |
+
dtype: float
|
| 36 |
+
shape: [num_atoms, 3]
|
| 37 |
+
unit: eV/Angstrom
|
| 38 |
+
description_zh: XTB 计算得到的原子受力。
|
| 39 |
+
config_fields:
|
| 40 |
+
energy_xtb:
|
| 41 |
+
dtype: float
|
| 42 |
+
unit: eV
|
| 43 |
+
description_zh: XTB 计算得到的构型总能量。
|
| 44 |
+
model_expected_keys:
|
| 45 |
+
energy_key: energy_xtb
|
| 46 |
+
forces_key: forces_xtb
|
| 47 |
+
train_file: data/DMC/solvent_xtb_train_200.xyz
|
| 48 |
+
test_file: data/DMC/solvent_xtb_test.xyz
|
| 49 |
+
elements:
|
| 50 |
+
- H
|
| 51 |
+
- C
|
| 52 |
+
- O
|
metadata/sha256_manifest.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
d97b90c293af6e9742a0d22ab4fb1e13672091bb9ac6754481ef61fdf4f879fa solvent_xtb_test.xyz
|
| 2 |
+
e540bc7c026cfad063fc970406bb74c0f668007fc3c6d200801ecfd5f1ba600e solvent_xtb_train_200.xyz
|
onescience_relations.yaml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
required_datasets: []
|
| 2 |
+
optional_datasets: []
|
| 3 |
+
compatible_models:
|
| 4 |
+
- id: OneScience/MACE
|
| 5 |
+
role: train_data
|
| 6 |
+
required_for:
|
| 7 |
+
- preflight
|
| 8 |
+
- train
|
| 9 |
+
- evaluate
|
| 10 |
+
resource_ref:
|
| 11 |
+
platform: modelscope
|
| 12 |
+
repo_id: OneScience/MACE
|
| 13 |
+
repo_type: model
|
| 14 |
+
url: https://modelscope.cn/models/OneScience/MACE
|
| 15 |
+
revision: main
|
| 16 |
+
readme_path: README.md
|
| 17 |
+
manifest_path: manifest.yaml
|
| 18 |
+
expected_local_path: session_workdir/data/DMC
|
| 19 |
+
adapter: null
|
onescience_run_manifest.yaml
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
onescience_manifest_version: "0.1"
|
| 2 |
+
resource_type: dataset
|
| 3 |
+
resource:
|
| 4 |
+
id: OneScience/DMC
|
| 5 |
+
name: DMC
|
| 6 |
+
domain: matchem
|
| 7 |
+
domain_tags:
|
| 8 |
+
- matchem
|
| 9 |
+
- molecular_dataset
|
| 10 |
+
- solvent_xtb
|
| 11 |
+
task: mlip_training_data
|
| 12 |
+
task_tags:
|
| 13 |
+
- mlip
|
| 14 |
+
- energy_prediction
|
| 15 |
+
- force_prediction
|
| 16 |
+
- extxyz_training
|
| 17 |
+
modalities:
|
| 18 |
+
- atomistic_structure
|
| 19 |
+
input_formats:
|
| 20 |
+
- extxyz
|
| 21 |
+
output_formats: []
|
| 22 |
+
summary: 面向 MACE 入门训练示例的 DMC 溶剂 XTB extxyz 数据集。
|
| 23 |
+
|
| 24 |
+
platform_resource:
|
| 25 |
+
primary:
|
| 26 |
+
platform: modelscope
|
| 27 |
+
repo_id: OneScience/DMC
|
| 28 |
+
repo_type: dataset
|
| 29 |
+
url: https://modelscope.cn/datasets/OneScience/DMC
|
| 30 |
+
revision: main
|
| 31 |
+
readme_path: README.md
|
| 32 |
+
manifest_path: manifest.yaml
|
| 33 |
+
mirrors: []
|
| 34 |
+
access:
|
| 35 |
+
visibility: public
|
| 36 |
+
license: null
|
| 37 |
+
|
| 38 |
+
website_integration:
|
| 39 |
+
enabled: true
|
| 40 |
+
click_target:
|
| 41 |
+
platform: modelscope
|
| 42 |
+
resource_url: https://modelscope.cn/datasets/OneScience/DMC
|
| 43 |
+
llm_handoff:
|
| 44 |
+
readme_required: true
|
| 45 |
+
manifest_required: true
|
| 46 |
+
download_readme_first: true
|
| 47 |
+
resolve_related_models: true
|
| 48 |
+
default_run_goal: minimal_validation
|
| 49 |
+
|
| 50 |
+
runtime:
|
| 51 |
+
enabled: true
|
| 52 |
+
onescience_domain: matchem
|
| 53 |
+
min_onescience_version: null
|
| 54 |
+
supported_execution:
|
| 55 |
+
- local
|
| 56 |
+
- local_slurm
|
| 57 |
+
- remote_slurm
|
| 58 |
+
- scnet_mcp
|
| 59 |
+
|
| 60 |
+
onescience:
|
| 61 |
+
repo: https://gitee.com/onescience-ai/onescience
|
| 62 |
+
official_links:
|
| 63 |
+
gitee:
|
| 64 |
+
doc: https://gitee.com/onescience-ai/onescience-doc
|
| 65 |
+
onescience: https://gitee.com/onescience-ai/onescience
|
| 66 |
+
skills: https://gitee.com/onescience-ai/oneskills
|
| 67 |
+
github:
|
| 68 |
+
doc: https://github.com/onescience-ai/OneScience-doc
|
| 69 |
+
onescience: https://github.com/onescience-ai/OneScience
|
| 70 |
+
skills: https://github.com/onescience-ai/oneskills
|
| 71 |
+
install:
|
| 72 |
+
required_by_default: false
|
| 73 |
+
command: bash install.sh matchem
|
| 74 |
+
source_paths:
|
| 75 |
+
- matchem/mace/DMC
|
| 76 |
+
compatibility:
|
| 77 |
+
examples_path: examples/matchem/mace
|
| 78 |
+
status: examples_compatible
|
| 79 |
+
|
| 80 |
+
runtime_package:
|
| 81 |
+
kind: standard_runtime_package
|
| 82 |
+
package_root: .
|
| 83 |
+
standard_layout:
|
| 84 |
+
workdir: .
|
| 85 |
+
config_dir: metadata
|
| 86 |
+
checkpoint_dir: null
|
| 87 |
+
data_dir: data
|
| 88 |
+
output_dir: outputs
|
| 89 |
+
apply_policy:
|
| 90 |
+
mode: direct_use
|
| 91 |
+
target: session_workdir
|
| 92 |
+
overwrite: true
|
| 93 |
+
protect_installed_onescience: true
|
| 94 |
+
entry_files:
|
| 95 |
+
- scripts/validate_dmc.py
|
| 96 |
+
- metadata/schema.yaml
|
| 97 |
+
- metadata/sha256_manifest.txt
|
| 98 |
+
entrypoints:
|
| 99 |
+
preflight: scripts/validate_dmc.py
|
| 100 |
+
inference: null
|
| 101 |
+
train: null
|
| 102 |
+
finetune: null
|
| 103 |
+
evaluate: null
|
| 104 |
+
visualize: null
|
| 105 |
+
deploy: null
|
| 106 |
+
|
| 107 |
+
files:
|
| 108 |
+
model_files: []
|
| 109 |
+
dataset_files:
|
| 110 |
+
- id: dmc_train_extxyz
|
| 111 |
+
path: data/DMC/solvent_xtb_train_200.xyz
|
| 112 |
+
role: train_split
|
| 113 |
+
description_zh: DMC 溶剂 XTB 训练 extxyz 文件,包含 203 帧,其中 3 帧为 isolated atom,200 帧为训练构型。
|
| 114 |
+
required: true
|
| 115 |
+
required_for: [preflight, train]
|
| 116 |
+
format: extxyz
|
| 117 |
+
source:
|
| 118 |
+
platform: modelscope
|
| 119 |
+
repo_id: OneScience/DMC
|
| 120 |
+
repo_type: dataset
|
| 121 |
+
path: data/DMC/solvent_xtb_train_200.xyz
|
| 122 |
+
revision: main
|
| 123 |
+
url: null
|
| 124 |
+
download_method: command_ref
|
| 125 |
+
command_ref: commands.download.download_dataset_package
|
| 126 |
+
mirrors: []
|
| 127 |
+
local_path: session_workdir/data/DMC/solvent_xtb_train_200.xyz
|
| 128 |
+
size: 672K
|
| 129 |
+
checksum: metadata/sha256_manifest.txt
|
| 130 |
+
large_file: false
|
| 131 |
+
- id: dmc_test_extxyz
|
| 132 |
+
path: data/DMC/solvent_xtb_test.xyz
|
| 133 |
+
role: test_split
|
| 134 |
+
description_zh: DMC 溶剂 XTB 测试 extxyz 文件,包含 1000 帧,用于 MACE 示例训练后的测试评估。
|
| 135 |
+
required: true
|
| 136 |
+
required_for: [preflight, evaluate]
|
| 137 |
+
format: extxyz
|
| 138 |
+
source:
|
| 139 |
+
platform: modelscope
|
| 140 |
+
repo_id: OneScience/DMC
|
| 141 |
+
repo_type: dataset
|
| 142 |
+
path: data/DMC/solvent_xtb_test.xyz
|
| 143 |
+
revision: main
|
| 144 |
+
url: null
|
| 145 |
+
download_method: command_ref
|
| 146 |
+
command_ref: commands.download.download_dataset_package
|
| 147 |
+
mirrors: []
|
| 148 |
+
local_path: session_workdir/data/DMC/solvent_xtb_test.xyz
|
| 149 |
+
size: 3.4M
|
| 150 |
+
checksum: metadata/sha256_manifest.txt
|
| 151 |
+
large_file: false
|
| 152 |
+
config_files:
|
| 153 |
+
- id: schema
|
| 154 |
+
path: metadata/schema.yaml
|
| 155 |
+
role: schema
|
| 156 |
+
description_zh: DMC extxyz 数据结构、字段名、shape、单位、split 和 MACE 配置键说明。
|
| 157 |
+
required: true
|
| 158 |
+
required_for: [preflight, train, evaluate]
|
| 159 |
+
format: yaml
|
| 160 |
+
source:
|
| 161 |
+
platform: modelscope
|
| 162 |
+
repo_id: OneScience/DMC
|
| 163 |
+
repo_type: dataset
|
| 164 |
+
path: metadata/schema.yaml
|
| 165 |
+
revision: main
|
| 166 |
+
url: null
|
| 167 |
+
download_method: command_ref
|
| 168 |
+
command_ref: commands.download.download_dataset_package
|
| 169 |
+
mirrors: []
|
| 170 |
+
local_path: session_workdir/metadata/schema.yaml
|
| 171 |
+
size: null
|
| 172 |
+
checksum: null
|
| 173 |
+
large_file: false
|
| 174 |
+
- id: sha256_manifest
|
| 175 |
+
path: metadata/sha256_manifest.txt
|
| 176 |
+
role: checksum
|
| 177 |
+
description_zh: DMC 数据文件 SHA256 清单,用于校验整理后数据与原始数据一致。
|
| 178 |
+
required: true
|
| 179 |
+
required_for: [preflight]
|
| 180 |
+
format: txt
|
| 181 |
+
source:
|
| 182 |
+
platform: modelscope
|
| 183 |
+
repo_id: OneScience/DMC
|
| 184 |
+
repo_type: dataset
|
| 185 |
+
path: metadata/sha256_manifest.txt
|
| 186 |
+
revision: main
|
| 187 |
+
url: null
|
| 188 |
+
download_method: command_ref
|
| 189 |
+
command_ref: commands.download.download_dataset_package
|
| 190 |
+
mirrors: []
|
| 191 |
+
local_path: session_workdir/metadata/sha256_manifest.txt
|
| 192 |
+
size: null
|
| 193 |
+
checksum: null
|
| 194 |
+
large_file: false
|
| 195 |
+
sample_files:
|
| 196 |
+
- id: validate_script
|
| 197 |
+
path: scripts/validate_dmc.py
|
| 198 |
+
role: script
|
| 199 |
+
description_zh: DMC 数据读取验证脚本,检查 extxyz 字段、shape、帧数、元素集合和 SHA256。
|
| 200 |
+
required: true
|
| 201 |
+
required_for: [preflight]
|
| 202 |
+
format: py
|
| 203 |
+
source:
|
| 204 |
+
platform: modelscope
|
| 205 |
+
repo_id: OneScience/DMC
|
| 206 |
+
repo_type: dataset
|
| 207 |
+
path: scripts/validate_dmc.py
|
| 208 |
+
revision: main
|
| 209 |
+
url: null
|
| 210 |
+
download_method: command_ref
|
| 211 |
+
command_ref: commands.download.download_dataset_package
|
| 212 |
+
mirrors: []
|
| 213 |
+
local_path: session_workdir/scripts/validate_dmc.py
|
| 214 |
+
size: null
|
| 215 |
+
checksum: null
|
| 216 |
+
large_file: false
|
| 217 |
+
|
| 218 |
+
dataset:
|
| 219 |
+
format:
|
| 220 |
+
- extxyz
|
| 221 |
+
sample_unit: 单个分子构型,包含元素、坐标、energy_xtb 和 forces_xtb。
|
| 222 |
+
schema:
|
| 223 |
+
path: metadata/schema.yaml
|
| 224 |
+
splits:
|
| 225 |
+
train:
|
| 226 |
+
path: data/DMC/solvent_xtb_train_200.xyz
|
| 227 |
+
frames: 203
|
| 228 |
+
validation:
|
| 229 |
+
path: null
|
| 230 |
+
note_zh: "MACE DMC 示例通过 valid_fraction: 0.10 从训练文件划分验证集。"
|
| 231 |
+
test:
|
| 232 |
+
path: data/DMC/solvent_xtb_test.xyz
|
| 233 |
+
frames: 1000
|
| 234 |
+
|
| 235 |
+
relations:
|
| 236 |
+
required_datasets: []
|
| 237 |
+
optional_datasets: []
|
| 238 |
+
compatible_models:
|
| 239 |
+
- id: OneScience/MACE
|
| 240 |
+
role: train_data
|
| 241 |
+
required_for: [preflight, train, evaluate]
|
| 242 |
+
resource_ref:
|
| 243 |
+
platform: modelscope
|
| 244 |
+
repo_id: OneScience/MACE
|
| 245 |
+
repo_type: model
|
| 246 |
+
url: https://modelscope.cn/models/OneScience/MACE
|
| 247 |
+
revision: main
|
| 248 |
+
readme_path: README.md
|
| 249 |
+
manifest_path: manifest.yaml
|
| 250 |
+
expected_local_path: session_workdir/data/DMC
|
| 251 |
+
adapter: null
|
| 252 |
+
|
| 253 |
+
run_matrix:
|
| 254 |
+
scenarios:
|
| 255 |
+
- name: validate_dataset
|
| 256 |
+
default: true
|
| 257 |
+
capability: preflight
|
| 258 |
+
required_datasets:
|
| 259 |
+
- id: OneScience/DMC
|
| 260 |
+
role: train_data
|
| 261 |
+
local_path: data/DMC
|
| 262 |
+
required_model_files: []
|
| 263 |
+
required_data_files:
|
| 264 |
+
- data/DMC/solvent_xtb_train_200.xyz
|
| 265 |
+
- data/DMC/solvent_xtb_test.xyz
|
| 266 |
+
- metadata/sha256_manifest.txt
|
| 267 |
+
preconditions:
|
| 268 |
+
- 已下载数据集仓库 OneScience/DMC。
|
| 269 |
+
command_refs:
|
| 270 |
+
- commands.preflight.validate_dataset
|
| 271 |
+
outputs:
|
| 272 |
+
- path: stdout
|
| 273 |
+
description_zh: 数据字段、帧数、元素集合和 SHA256 检查结果。
|
| 274 |
+
|
| 275 |
+
capabilities:
|
| 276 |
+
inference: false
|
| 277 |
+
train: false
|
| 278 |
+
finetune: false
|
| 279 |
+
evaluate: false
|
| 280 |
+
visualize: false
|
| 281 |
+
deploy: false
|
| 282 |
+
|
| 283 |
+
commands:
|
| 284 |
+
download:
|
| 285 |
+
- name: download_dataset_package
|
| 286 |
+
target: dataset
|
| 287 |
+
repo_id: OneScience/DMC
|
| 288 |
+
source: .
|
| 289 |
+
local_path: session_workdir/
|
| 290 |
+
required: true
|
| 291 |
+
required_for: [preflight, train, evaluate]
|
| 292 |
+
cwd: .
|
| 293 |
+
command: modelscope download --dataset OneScience/DMC --local_dir session_workdir
|
| 294 |
+
expected_outputs:
|
| 295 |
+
- path: session_workdir/data/DMC/solvent_xtb_train_200.xyz
|
| 296 |
+
type: file
|
| 297 |
+
success_criteria:
|
| 298 |
+
- exit_code == 0
|
| 299 |
+
- output_path_exists
|
| 300 |
+
preflight:
|
| 301 |
+
- name: validate_dataset
|
| 302 |
+
description: 验证 DMC extxyz 文件结构、字段名、帧数和 SHA256。
|
| 303 |
+
cwd: .
|
| 304 |
+
command: python scripts/validate_dmc.py --dataset-root data/DMC --checksum-manifest metadata/sha256_manifest.txt
|
| 305 |
+
required_files:
|
| 306 |
+
- data/DMC/solvent_xtb_train_200.xyz
|
| 307 |
+
- data/DMC/solvent_xtb_test.xyz
|
| 308 |
+
- metadata/sha256_manifest.txt
|
| 309 |
+
- scripts/validate_dmc.py
|
| 310 |
+
required_env:
|
| 311 |
+
- python
|
| 312 |
+
expected_outputs:
|
| 313 |
+
- path: stdout
|
| 314 |
+
type: text
|
| 315 |
+
success_criteria:
|
| 316 |
+
- exit_code == 0
|
| 317 |
+
prepare: []
|
| 318 |
+
inference: []
|
| 319 |
+
train: []
|
| 320 |
+
finetune: []
|
| 321 |
+
evaluate: []
|
| 322 |
+
visualize: []
|
| 323 |
+
deploy: []
|
| 324 |
+
|
| 325 |
+
expected_outputs:
|
| 326 |
+
- path: stdout
|
| 327 |
+
type: text
|
| 328 |
+
description_zh: 验证脚本输出每个 split、字段和 SHA256 的 OK 结果。
|
| 329 |
+
|
| 330 |
+
diagnostics:
|
| 331 |
+
- error_pattern: "缺少文件"
|
| 332 |
+
likely_cause: 数据集下载不完整或运行 cwd 不在数据集仓库根目录。
|
| 333 |
+
action: 重新执行 modelscope download --dataset OneScience/DMC,并在下载后的数据集根目录运行验证命令。
|
| 334 |
+
- error_pattern: "SHA256 不一致"
|
| 335 |
+
likely_cause: 文件被截断、损坏或被替换。
|
| 336 |
+
action: 删除损坏文件后重新下载数据集。
|
| 337 |
+
- error_pattern: "energy_xtb"
|
| 338 |
+
likely_cause: extxyz comment 中缺少 MACE DMC 配置要求的能量字段。
|
| 339 |
+
action: 检查数据是否为本���库 DMC XTB 数据,或同步修改模型配置 energy_key。
|
| 340 |
+
- error_pattern: "forces_xtb"
|
| 341 |
+
likely_cause: extxyz Properties 中缺少 MACE DMC 配置要求的力字段。
|
| 342 |
+
action: 检查数据是否为本仓库 DMC XTB 数据,或同步修改模型配置 forces_key。
|
| 343 |
+
|
| 344 |
+
domain_extension:
|
| 345 |
+
matchem:
|
| 346 |
+
chemical_system:
|
| 347 |
+
elements:
|
| 348 |
+
- H
|
| 349 |
+
- C
|
| 350 |
+
- O
|
| 351 |
+
properties:
|
| 352 |
+
- energy
|
| 353 |
+
- forces
|
| 354 |
+
units:
|
| 355 |
+
energy: eV
|
| 356 |
+
forces: eV/Angstrom
|
| 357 |
+
structure_format:
|
| 358 |
+
- extxyz
|
| 359 |
+
|
| 360 |
+
large_resource:
|
| 361 |
+
enabled: false
|
| 362 |
+
total_size: 4.1M
|
| 363 |
+
file_count: 2
|
| 364 |
+
download_policy: full
|
| 365 |
+
default_download: full
|
| 366 |
+
minimal_files:
|
| 367 |
+
- data/DMC/solvent_xtb_train_200.xyz
|
| 368 |
+
- data/DMC/solvent_xtb_test.xyz
|
| 369 |
+
|
| 370 |
+
reproducibility:
|
| 371 |
+
level: minimal
|
| 372 |
+
goal: 完成一次 DMC extxyz 数据读取和 SHA256 校验。
|
| 373 |
+
command_ref: commands.preflight.validate_dataset
|
| 374 |
+
expected_runtime: less than 1 minute
|
| 375 |
+
expected_outputs:
|
| 376 |
+
- stdout
|
scripts/validate_dmc.py
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Validate the standardized DMC extxyz dataset package."""
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import argparse
|
| 7 |
+
import hashlib
|
| 8 |
+
import re
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
EXPECTED_FILES = {
|
| 13 |
+
"solvent_xtb_train_200.xyz": 203,
|
| 14 |
+
"solvent_xtb_test.xyz": 1000,
|
| 15 |
+
}
|
| 16 |
+
EXPECTED_ELEMENTS = {"H", "C", "O"}
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def sha256_file(path: Path) -> str:
|
| 20 |
+
h = hashlib.sha256()
|
| 21 |
+
with path.open("rb") as f:
|
| 22 |
+
for chunk in iter(lambda: f.read(1024 * 1024), b""):
|
| 23 |
+
h.update(chunk)
|
| 24 |
+
return h.hexdigest()
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def validate_checksum_manifest(dataset_root: Path, manifest_path: Path) -> None:
|
| 28 |
+
checked = 0
|
| 29 |
+
with manifest_path.open("r", encoding="utf-8") as f:
|
| 30 |
+
for line in f:
|
| 31 |
+
line = line.strip()
|
| 32 |
+
if not line or line.startswith("#"):
|
| 33 |
+
continue
|
| 34 |
+
digest, rel = line.split(maxsplit=1)
|
| 35 |
+
path = dataset_root / rel
|
| 36 |
+
if not path.exists():
|
| 37 |
+
raise SystemExit(f"[FAIL] 清单文件不存在: {path}")
|
| 38 |
+
actual = sha256_file(path)
|
| 39 |
+
if actual != digest:
|
| 40 |
+
raise SystemExit(f"[FAIL] SHA256 不一致: {rel}")
|
| 41 |
+
checked += 1
|
| 42 |
+
if checked != len(EXPECTED_FILES):
|
| 43 |
+
raise SystemExit(f"[FAIL] SHA256 清单文件数异常: {checked}")
|
| 44 |
+
print(f"[OK] SHA256 清单验证通过: {checked} 个文件")
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
def parse_properties(comment: str) -> list[tuple[str, str, int]]:
|
| 48 |
+
match = re.search(r'Properties=("[^"]+"|\S+)', comment)
|
| 49 |
+
if not match:
|
| 50 |
+
raise SystemExit("[FAIL] extxyz comment 缺少 Properties")
|
| 51 |
+
raw = match.group(1).strip('"')
|
| 52 |
+
parts = raw.split(":")
|
| 53 |
+
if len(parts) % 3:
|
| 54 |
+
raise SystemExit(f"[FAIL] Properties 格式异常: {raw}")
|
| 55 |
+
parsed = []
|
| 56 |
+
for i in range(0, len(parts), 3):
|
| 57 |
+
name, kind, width = parts[i], parts[i + 1], int(parts[i + 2])
|
| 58 |
+
parsed.append((name, kind, width))
|
| 59 |
+
return parsed
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
def validate_xyz(path: Path, expected_frames: int) -> None:
|
| 63 |
+
frames = 0
|
| 64 |
+
elements: set[str] = set()
|
| 65 |
+
min_atoms: int | None = None
|
| 66 |
+
max_atoms = 0
|
| 67 |
+
saw_molid = False
|
| 68 |
+
|
| 69 |
+
with path.open("r", encoding="utf-8") as f:
|
| 70 |
+
while True:
|
| 71 |
+
first = f.readline()
|
| 72 |
+
if not first:
|
| 73 |
+
break
|
| 74 |
+
if not first.strip():
|
| 75 |
+
continue
|
| 76 |
+
try:
|
| 77 |
+
atom_count = int(first.strip())
|
| 78 |
+
except ValueError as exc:
|
| 79 |
+
raise SystemExit(f"[FAIL] 原子数行不是整数: {path}:{frames + 1}") from exc
|
| 80 |
+
comment = f.readline().rstrip("\n")
|
| 81 |
+
if "energy_xtb=" not in comment:
|
| 82 |
+
raise SystemExit(f"[FAIL] comment 缺少 energy_xtb: {path} frame {frames}")
|
| 83 |
+
if "pbc=" not in comment:
|
| 84 |
+
raise SystemExit(f"[FAIL] comment 缺少 pbc: {path} frame {frames}")
|
| 85 |
+
props = parse_properties(comment)
|
| 86 |
+
prop_names = [p[0] for p in props]
|
| 87 |
+
if prop_names[0:2] != ["species", "pos"]:
|
| 88 |
+
raise SystemExit(f"[FAIL] Properties 前两项必须是 species,pos: {path} frame {frames}")
|
| 89 |
+
if "forces_xtb" not in prop_names:
|
| 90 |
+
raise SystemExit(f"[FAIL] Properties 缺少 forces_xtb: {path} frame {frames}")
|
| 91 |
+
saw_molid = saw_molid or ("molID" in prop_names)
|
| 92 |
+
expected_cols = sum(width for _, _, width in props)
|
| 93 |
+
|
| 94 |
+
for atom_index in range(atom_count):
|
| 95 |
+
atom_line = f.readline()
|
| 96 |
+
if not atom_line:
|
| 97 |
+
raise SystemExit(f"[FAIL] 文件提前结束: {path} frame {frames}")
|
| 98 |
+
cols = atom_line.split()
|
| 99 |
+
if len(cols) != expected_cols:
|
| 100 |
+
raise SystemExit(
|
| 101 |
+
f"[FAIL] 原子列数异常: {path} frame {frames} atom {atom_index}: "
|
| 102 |
+
f"{len(cols)} != {expected_cols}"
|
| 103 |
+
)
|
| 104 |
+
elements.add(cols[0])
|
| 105 |
+
numeric = cols[1:]
|
| 106 |
+
for value in numeric:
|
| 107 |
+
float(value)
|
| 108 |
+
frames += 1
|
| 109 |
+
min_atoms = atom_count if min_atoms is None else min(min_atoms, atom_count)
|
| 110 |
+
max_atoms = max(max_atoms, atom_count)
|
| 111 |
+
|
| 112 |
+
if frames != expected_frames:
|
| 113 |
+
raise SystemExit(f"[FAIL] 帧数异常: {path.name}: {frames} != {expected_frames}")
|
| 114 |
+
if not elements.issubset(EXPECTED_ELEMENTS):
|
| 115 |
+
raise SystemExit(f"[FAIL] 元素集合异常: {sorted(elements)}")
|
| 116 |
+
if path.name.endswith("test.xyz") and not saw_molid:
|
| 117 |
+
raise SystemExit(f"[FAIL] 测试集未检测到 molID 字段: {path}")
|
| 118 |
+
print(
|
| 119 |
+
f"[OK] {path.name}: frames={frames}, atoms={min_atoms}-{max_atoms}, "
|
| 120 |
+
f"elements={sorted(elements)}"
|
| 121 |
+
)
|
| 122 |
+
|
| 123 |
+
|
| 124 |
+
def main() -> int:
|
| 125 |
+
parser = argparse.ArgumentParser()
|
| 126 |
+
parser.add_argument("--dataset-root", default="data/DMC")
|
| 127 |
+
parser.add_argument("--checksum-manifest", default="metadata/sha256_manifest.txt")
|
| 128 |
+
args = parser.parse_args()
|
| 129 |
+
|
| 130 |
+
repo_root = Path.cwd()
|
| 131 |
+
dataset_root = Path(args.dataset_root)
|
| 132 |
+
if not dataset_root.is_absolute():
|
| 133 |
+
dataset_root = repo_root / dataset_root
|
| 134 |
+
checksum_manifest = Path(args.checksum_manifest)
|
| 135 |
+
if not checksum_manifest.is_absolute():
|
| 136 |
+
checksum_manifest = repo_root / checksum_manifest
|
| 137 |
+
|
| 138 |
+
if not dataset_root.exists():
|
| 139 |
+
raise SystemExit(f"[FAIL] 数据目录不存在: {dataset_root}")
|
| 140 |
+
for name, expected_frames in EXPECTED_FILES.items():
|
| 141 |
+
path = dataset_root / name
|
| 142 |
+
if not path.exists():
|
| 143 |
+
raise SystemExit(f"[FAIL] 缺少文件: {path}")
|
| 144 |
+
if path.stat().st_size <= 0:
|
| 145 |
+
raise SystemExit(f"[FAIL] 文件为空: {path}")
|
| 146 |
+
validate_xyz(path, expected_frames)
|
| 147 |
+
validate_checksum_manifest(dataset_root, checksum_manifest)
|
| 148 |
+
print("[OK] DMC 数据集读取验证通过")
|
| 149 |
+
return 0
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
if __name__ == "__main__":
|
| 153 |
+
raise SystemExit(main())
|