Zhongning commited on
Commit
b6b3c51
·
verified ·
1 Parent(s): f58aee7

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -1,60 +1,92 @@
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
- *.zst filter=lfs diff=lfs merge=lfs -text
38
- *tfevents* filter=lfs diff=lfs merge=lfs -text
39
- # Audio files - uncompressed
40
- *.pcm filter=lfs diff=lfs merge=lfs -text
41
- *.sam filter=lfs diff=lfs merge=lfs -text
42
- *.raw filter=lfs diff=lfs merge=lfs -text
43
- # Audio files - compressed
44
- *.aac filter=lfs diff=lfs merge=lfs -text
45
- *.flac filter=lfs diff=lfs merge=lfs -text
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
- # Video files - compressed
 
 
 
 
 
 
 
 
 
 
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
- *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+
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/nanotube/nanotube_large.xyz filter=lfs diff=lfs merge=lfs -text
92
+ data/nanotube/nanotube_test.xyz filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ # User-Defined Tags
4
+ tags:
5
+ - nanotube
6
+ - MACE
7
+ - carbon nanotube
8
+ - extxyz
9
+ - machine learning potential
10
+ language:
11
+ - en
12
+ - zh
13
+ ---
14
+ <p align="center">
15
+ <strong>
16
+ <span style="font-size: 30px;">nanotube</span>
17
+ </strong>
18
+ </p>
19
+
20
+ ## Dataset Description
21
+ The nanotube dataset is an extxyz dataset for carbon nanotube training and evaluation examples. It contains atomic coordinates, energies, and force data for carbon nanotube systems in different configurations and is a standard benchmark dataset for developing and validating machine-learned interatomic potential methods.
22
+
23
+ The training file `nanotube_large.xyz` contains 4,000 frames, while the test file `nanotube_test.xyz` contains 1,032 frames. Each frame contains 370 atoms, and the set of elements is C and H.
24
+
25
+ The current data package contains approximately 3 files.
26
+
27
+ ## Supported Tasks
28
+ This standardized data repository organizes the complete data package for the MACE nanotube example, including training and test sets, to support:
29
+ - Training and validation of potential energy surface models for carbon nanotube systems
30
+ - Potential energy surface fitting for molecular dynamics simulations
31
+ - Functional testing and benchmark evaluation of the MACE framework
32
+
33
+ ## Dataset Format and Structure
34
+
35
+ The data files are located in the `data/nanotube/` directory:
36
+
37
+ | File Path | Format | Shape / Content | Description |
38
+ |---|---|---|---|
39
+ | `nanotube/nanotube_large.xyz` | extxyz | `[4000, 370]` | Training set, 4,000 frames with 370 atoms per frame |
40
+ | `nanotube/nanotube_test.xyz` | extxyz | `[1032, 370]` | Test set, 1,032 frames with 370 atoms per frame |
41
+ | `metadata/sha256_manifest.txt` | SHA256 | Checksum manifest | File integrity verification |
42
+
43
+ ### extxyz Data Format
44
+
45
+ Each configuration consists of an atom-count line, a comment line, and atom lines. The comment line contains `Properties`, `Energy`, and `pbc`. Each atom line contains the element, coordinates, and `forces`.
46
+
47
+ | Field | Type | Shape | Description |
48
+ |---|---|---|---|
49
+ | `species` | str | `[N_atoms]` | Element symbols; the current set of elements is C and H |
50
+ | `pos` | float | `[N_atoms, 3]` | Atomic coordinates in Å |
51
+ | `forces` | float | `[N_atoms, 3]` | Atomic forces in eV/Å |
52
+ | `Energy` | float | `[1]` | Total configuration energy in eV |
53
+ | `pbc` | bool | `[3]` | Periodic boundary conditions |
54
+
55
+ ## How to Use the Dataset
56
+ This dataset is suitable for multiple molecular dynamics models in the `OneScience-Sugon` repository.
57
+
58
+ Download the dataset:
59
+
60
+ ```bash
61
+ hf download --dataset OneScience-Sugon/nanotube --local-dir ./data
62
+ ```
63
+
64
+ ## Official OneScience Information
65
+
66
+ | Platform | OneScience Main Repository | Skills Repository |
67
+ |---|---|---|
68
+ | Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
69
+ | GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
70
+
71
+ ## Limitations and License
72
+
73
+ This dataset contains nanotube example data; no new samples were generated, and the original data content was not altered. The original data comes from the double-walled nanotube system in the MD22 Benchmark Dataset (sGDML), computed at the DFT-PBE+MBD level (FHI-aims + i-PI).
74
+
75
+ - **Original source**: http://www.sgdml.org/#datasets
76
+ - **Direct download link**: http://www.quantum-machine.org/gdml/repo/datasets/md22_double-walled_nanotube.npz
77
+ - **License**: Refer to the original nanotube data source and the information provided by the OneScience repository and ModelScope page
78
+
79
+ When using the original nanotube dataset, cite:
80
+
81
+ - Chmiela, S.; Vassilev-Galindo, V.; Unke, O. T.; Kabylda, A.; Sauceda, H. E.; Tkatchenko, A.; Müller, K.-R. Accurate Global Machine Learning Force Fields for Molecules with Hundreds of Atoms. *Science Advances* **2023**, *9*(2), eadf0873.
README_zh.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: Apache License 2.0
3
+ # 用户自定义标签
4
+ tags:
5
+ - nanotube
6
+ - MACE
7
+ - carbon nanotube
8
+ - extxyz
9
+ - machine learning potential
10
+ language:
11
+ - en
12
+ - zh
13
+ ---
14
+ <p align="center">
15
+ <strong>
16
+ <span style="font-size: 30px;">nanotube</span>
17
+ </strong>
18
+ </p>
19
+
20
+ ## 数据集描述
21
+ nanotube 数据集是碳纳米管训练和评测示例的 extxyz 数据集。数据包含碳纳米管体系在不同构型下的原子坐标、能量和受力数据是学习和验证机器学习原子间势方法的标准基准数据集。
22
+
23
+ 训练文件 `nanotube_large.xyz` 包含 4000 帧,测试文件 `nanotube_test.xyz` 包含 1032 帧,每帧 370 个原子。元素集合为 C、H。
24
+
25
+ 当前数据包包含约 3 个文件。
26
+
27
+ ## 数据集支持的任务
28
+ 本标准化数据仓库整理了 MACE nanotube 示例的完整数据包,包含训练集和测试集,可用于:
29
+ - 碳纳米管体系势能面模型的训练与验证
30
+ - 分子动力学模拟的势能面拟合
31
+ - MACE 框架的功能测试与基准评测
32
+
33
+ ## 数据集的格式和结构
34
+
35
+ 数据文件位于 `data/nanotube/` 目录下:
36
+
37
+ | 文件路径 | 格式 | shape / 内容 | 说明 |
38
+ |---|---|---|---|
39
+ | `nanotube/nanotube_large.xyz` | extxyz | `[4000, 370]` | 训练集,4000 帧,每帧 370 个原子 |
40
+ | `nanotube/nanotube_test.xyz` | extxyz | `[1032, 370]` | 测试集,1032 帧,每帧 370 个原子 |
41
+ | `metadata/sha256_manifest.txt` | SHA256 | 校验清单 | 文件完整性校验 |
42
+
43
+ ### extxyz 数据格式
44
+
45
+ 每个构型由原子数行、comment 行和原子行组成。comment 行包含 `Properties`、`Energy` 和 `pbc`。原子行包含元素、坐标和 `forces`。
46
+
47
+ | 字段 | 类型 | shape | 说明 |
48
+ |---|---|---|---|
49
+ | `species` | str | `[N_atoms]` | 元素符号,当前元素集合为 C、H |
50
+ | `pos` | float | `[N_atoms, 3]` | 原子坐标,单位 Å |
51
+ | `forces` | float | `[N_atoms, 3]` | 原子受力,单位 eV/Å |
52
+ | `Energy` | float | `[1]` | 构型总能量,单位 eV |
53
+ | `pbc` | bool | `[3]` | 周期边界条件 |
54
+
55
+ ## 数据集使用方式
56
+ 本数据集适用于`OneScience-Sugon`仓库内多个分子动力学模型。
57
+
58
+ 下载数据集:
59
+
60
+ ```bash
61
+ hf download --dataset OneScience-Sugon/nanotube --local-dir ./data
62
+ ```
63
+
64
+ ## OneScience 官方信息
65
+
66
+ | 平台 | OneScience 主仓库 | Skills 仓库 |
67
+ |---|---|---|
68
+ | Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
69
+ | GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
70
+
71
+ ## 限制与许可证
72
+
73
+ 本数据集为 nanotube 示例数据,未生成新样本或改变原始数据内容。原始数据来自 MD22 Benchmark Dataset (sGDML) 中的 double-walled nanotube 系统,计算级别为 DFT-PBE+MBD (FHI-aims + i-PI)。
74
+
75
+ - **原始来源**:http://www.sgdml.org/#datasets
76
+ - **直接下载链接**:http://www.quantum-machine.org/gdml/repo/datasets/md22_double-walled_nanotube.npz
77
+ - **许可证**:以原始 nanotube 数据来源、OneScience 仓库和 ModelScope 页面说明为准
78
+
79
+ 使用原始 nanotube 数据集时请引用:
80
+
81
+ - Chmiela, S.; Vassilev-Galindo, V.; Unke, O. T.; Kabylda, A.; Sauceda, H. E.; Tkatchenko, A.; Müller, K.-R. Accurate Global Machine Learning Force Fields for Molecules with Hundreds of Atoms. *Science Advances* **2023**, *9*(2), eadf0873.
data/nanotube/nanotube_large.xyz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e31550a289fbda9971d7d6ecfdbed34e46802ac43c5db3762cd402433b2bd779
3
+ size 155719595
data/nanotube/nanotube_test.xyz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf795de18aef94082f258e59a84ea9d7106e8f38b1f36e2fe7956b91a1ada274
3
+ size 40175663
manifest.yaml ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ onescience_manifest_version: "0.1"
2
+ resource_type: dataset
3
+ resource:
4
+ id: OneScience/nanotube
5
+ name: nanotube
6
+ domain: matchem
7
+ domain_tags:
8
+ - matchem
9
+ - carbon_nanotube
10
+ - atomistic_dataset
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 碳纳米管训练和评测示例的 extxyz 数据集。
23
+
24
+ platform_resource:
25
+ primary:
26
+ platform: modelscope
27
+ repo_id: OneScience/nanotube
28
+ repo_type: dataset
29
+ url: https://modelscope.cn/datasets/OneScience/nanotube
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/nanotube
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/nanotube
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_nanotube.py
96
+ - metadata/schema.yaml
97
+ - metadata/sha256_manifest.txt
98
+ entrypoints:
99
+ preflight: scripts/validate_nanotube.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: nanotube_train_extxyz
111
+ path: data/nanotube/nanotube_large.xyz
112
+ role: train_split
113
+ description_zh: nanotube 训练 extxyz 文件,包含 4000 帧,每帧 370 个原子,字段为 Energy 和 forces。
114
+ required: true
115
+ required_for: [preflight, train]
116
+ format: extxyz
117
+ source:
118
+ platform: modelscope
119
+ repo_id: OneScience/nanotube
120
+ repo_type: dataset
121
+ path: data/nanotube/nanotube_large.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/nanotube/nanotube_large.xyz
128
+ size: 149M
129
+ checksum: metadata/sha256_manifest.txt
130
+ large_file: false
131
+ - id: nanotube_test_extxyz
132
+ path: data/nanotube/nanotube_test.xyz
133
+ role: test_split
134
+ description_zh: nanotube 测试 extxyz 文件,包含 1032 帧,每帧 370 个原子,字段为 Energy 和 forces。
135
+ required: true
136
+ required_for: [preflight, evaluate]
137
+ format: extxyz
138
+ source:
139
+ platform: modelscope
140
+ repo_id: OneScience/nanotube
141
+ repo_type: dataset
142
+ path: data/nanotube/nanotube_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/nanotube/nanotube_test.xyz
149
+ size: 39M
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: nanotube 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/nanotube
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: nanotube 数据文件 SHA256 清单,用于校验整理后数据与原始数据一致。
178
+ required: true
179
+ required_for: [preflight]
180
+ format: txt
181
+ source:
182
+ platform: modelscope
183
+ repo_id: OneScience/nanotube
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_nanotube.py
198
+ role: script
199
+ description_zh: nanotube 数据读取验证脚本,检查 extxyz 字段、shape、帧数、元素集合和 SHA256。
200
+ required: true
201
+ required_for: [preflight]
202
+ format: py
203
+ source:
204
+ platform: modelscope
205
+ repo_id: OneScience/nanotube
206
+ repo_type: dataset
207
+ path: scripts/validate_nanotube.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_nanotube.py
214
+ size: null
215
+ checksum: null
216
+ large_file: false
217
+
218
+ dataset:
219
+ format:
220
+ - extxyz
221
+ sample_unit: 单个碳纳米管构型,包含元素、坐标、Energy 和 forces。
222
+ schema:
223
+ path: metadata/schema.yaml
224
+ splits:
225
+ train:
226
+ path: data/nanotube/nanotube_large.xyz
227
+ frames: 4000
228
+ atoms_per_frame: 370
229
+ validation:
230
+ path: null
231
+ note_zh: "MACE nanotube 示例通过 valid_fraction: 0.05 从训练文件划分验证集。"
232
+ test:
233
+ path: data/nanotube/nanotube_test.xyz
234
+ frames: 1032
235
+ atoms_per_frame: 370
236
+
237
+ relations:
238
+ required_datasets: []
239
+ optional_datasets: []
240
+ compatible_models:
241
+ - id: OneScience/MACE
242
+ role: train_data
243
+ required_for: [preflight, train, evaluate]
244
+ resource_ref:
245
+ platform: modelscope
246
+ repo_id: OneScience/MACE
247
+ repo_type: model
248
+ url: https://modelscope.cn/models/OneScience/MACE
249
+ revision: main
250
+ readme_path: README.md
251
+ manifest_path: manifest.yaml
252
+ expected_local_path: session_workdir/data/nanotube
253
+ adapter: null
254
+
255
+ run_matrix:
256
+ scenarios:
257
+ - name: validate_dataset
258
+ default: true
259
+ capability: preflight
260
+ required_datasets:
261
+ - id: OneScience/nanotube
262
+ role: train_data
263
+ local_path: data/nanotube
264
+ required_model_files: []
265
+ required_data_files:
266
+ - data/nanotube/nanotube_large.xyz
267
+ - data/nanotube/nanotube_test.xyz
268
+ - metadata/sha256_manifest.txt
269
+ preconditions:
270
+ - 已下载数据集仓库 OneScience/nanotube。
271
+ command_refs:
272
+ - commands.preflight.validate_dataset
273
+ outputs:
274
+ - path: stdout
275
+ description_zh: 数据字段、帧数、元素集合和 SHA256 检查结果。
276
+
277
+ capabilities:
278
+ inference: false
279
+ train: false
280
+ finetune: false
281
+ evaluate: false
282
+ visualize: false
283
+ deploy: false
284
+
285
+ commands:
286
+ download:
287
+ - name: download_dataset_package
288
+ target: dataset
289
+ repo_id: OneScience/nanotube
290
+ source: .
291
+ local_path: session_workdir/
292
+ required: true
293
+ required_for: [preflight, train, evaluate]
294
+ cwd: .
295
+ command: modelscope download --dataset OneScience/nanotube --local_dir session_workdir
296
+ expected_outputs:
297
+ - path: session_workdir/data/nanotube/nanotube_large.xyz
298
+ type: file
299
+ success_criteria:
300
+ - exit_code == 0
301
+ - output_path_exists
302
+ preflight:
303
+ - name: validate_dataset
304
+ description: 验证 nanotube extxyz 文件结构、字段名、帧数和 SHA256。
305
+ cwd: .
306
+ command: python scripts/validate_nanotube.py --dataset-root data/nanotube --checksum-manifest metadata/sha256_manifest.txt
307
+ required_files:
308
+ - data/nanotube/nanotube_large.xyz
309
+ - data/nanotube/nanotube_test.xyz
310
+ - metadata/sha256_manifest.txt
311
+ - scripts/validate_nanotube.py
312
+ required_env:
313
+ - python
314
+ expected_outputs:
315
+ - path: stdout
316
+ type: text
317
+ success_criteria:
318
+ - exit_code == 0
319
+ prepare: []
320
+ inference: []
321
+ train: []
322
+ finetune: []
323
+ evaluate: []
324
+ visualize: []
325
+ deploy: []
326
+
327
+ expected_outputs:
328
+ - path: stdout
329
+ type: text
330
+ description_zh: 验证脚本输出每个 split、字段和 SHA256 的 OK 结果。
331
+
332
+ diagnostics:
333
+ - error_pattern: "缺少文件"
334
+ likely_cause: 数据集下载不完整或运行 cwd 不在数据集仓库根目录。
335
+ action: 重新执行 modelscope download --dataset OneScience/nanotube,并在下载后的数据集根目录运行验证命令。
336
+ - error_pattern: "SHA256 不一致"
337
+ likely_cause: 文件被截断、损坏或被替换。
338
+ action: 删除损坏文件后重新下载数据集。
339
+ - error_pattern: "Energy"
340
+ likely_cause: extxyz comment 中缺少 MACE nanotube 配置要求的能量字段。
341
+ action: 检查数据是否为本仓库 nanotube 数据,或同步修改模型配置 energy_key。
342
+ - error_pattern: "forces"
343
+ likely_cause: extxyz Properties 中缺少 MACE nanotube 配置要求的力字段。
344
+ action: 检查数据是否为本仓库 nanotube 数据,或同步修改模型配置 forces_key。
345
+
346
+ domain_extension:
347
+ matchem:
348
+ chemical_system:
349
+ elements:
350
+ - C
351
+ - H
352
+ properties:
353
+ - energy
354
+ - forces
355
+ units:
356
+ energy: eV
357
+ forces: eV/Angstrom
358
+ structure_format:
359
+ - extxyz
360
+
361
+ large_resource:
362
+ enabled: false
363
+ total_size: 187M
364
+ file_count: 2
365
+ download_policy: full
366
+ default_download: full
367
+ minimal_files:
368
+ - data/nanotube/nanotube_large.xyz
369
+ - data/nanotube/nanotube_test.xyz
370
+
371
+ reproducibility:
372
+ level: minimal
373
+ goal: 完成一次 nanotube extxyz 数据读取和 SHA256 校验。
374
+ command_ref: commands.preflight.validate_dataset
375
+ expected_runtime: 1-3 minutes
376
+ expected_outputs:
377
+ - stdout
metadata/schema.yaml ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ dataset: nanotube
2
+ standardized_repo_id: OneScience/nanotube
3
+ domain: matchem
4
+ format:
5
+ - extxyz
6
+ splits:
7
+ train:
8
+ path: data/nanotube/nanotube_large.xyz
9
+ frames: 4000
10
+ atoms_per_frame: 370
11
+ test:
12
+ path: data/nanotube/nanotube_test.xyz
13
+ frames: 1032
14
+ atoms_per_frame: 370
15
+ sample_schema:
16
+ extxyz_comment_fields:
17
+ - Properties
18
+ - Energy
19
+ - pbc
20
+ properties:
21
+ species:
22
+ dtype: string
23
+ shape: [num_atoms]
24
+ description_zh: 元素符号。
25
+ pos:
26
+ dtype: float
27
+ shape: [num_atoms, 3]
28
+ unit: Angstrom
29
+ description_zh: 原子坐标。
30
+ forces:
31
+ dtype: float
32
+ shape: [num_atoms, 3]
33
+ unit: eV/Angstrom
34
+ description_zh: 原子受力。
35
+ config_fields:
36
+ Energy:
37
+ dtype: float
38
+ unit: eV
39
+ description_zh: 构型总能量。
40
+ model_expected_keys:
41
+ energy_key: Energy
42
+ forces_key: forces
43
+ train_file: data/nanotube/nanotube_large.xyz
44
+ test_file: data/nanotube/nanotube_test.xyz
45
+ elements:
46
+ - C
47
+ - H
metadata/sha256_manifest.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ e31550a289fbda9971d7d6ecfdbed34e46802ac43c5db3762cd402433b2bd779 nanotube_large.xyz
2
+ bf795de18aef94082f258e59a84ea9d7106e8f38b1f36e2fe7956b91a1ada274 nanotube_test.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/nanotube
19
+ adapter: null
onescience_run_manifest.yaml ADDED
@@ -0,0 +1,377 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ onescience_manifest_version: "0.1"
2
+ resource_type: dataset
3
+ resource:
4
+ id: OneScience/nanotube
5
+ name: nanotube
6
+ domain: matchem
7
+ domain_tags:
8
+ - matchem
9
+ - carbon_nanotube
10
+ - atomistic_dataset
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 碳纳米管训练和评测示例的 extxyz 数据集。
23
+
24
+ platform_resource:
25
+ primary:
26
+ platform: modelscope
27
+ repo_id: OneScience/nanotube
28
+ repo_type: dataset
29
+ url: https://modelscope.cn/datasets/OneScience/nanotube
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/nanotube
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/nanotube
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_nanotube.py
96
+ - metadata/schema.yaml
97
+ - metadata/sha256_manifest.txt
98
+ entrypoints:
99
+ preflight: scripts/validate_nanotube.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: nanotube_train_extxyz
111
+ path: data/nanotube/nanotube_large.xyz
112
+ role: train_split
113
+ description_zh: nanotube 训练 extxyz 文件,包含 4000 帧,每帧 370 个原子,字段为 Energy 和 forces。
114
+ required: true
115
+ required_for: [preflight, train]
116
+ format: extxyz
117
+ source:
118
+ platform: modelscope
119
+ repo_id: OneScience/nanotube
120
+ repo_type: dataset
121
+ path: data/nanotube/nanotube_large.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/nanotube/nanotube_large.xyz
128
+ size: 149M
129
+ checksum: metadata/sha256_manifest.txt
130
+ large_file: false
131
+ - id: nanotube_test_extxyz
132
+ path: data/nanotube/nanotube_test.xyz
133
+ role: test_split
134
+ description_zh: nanotube 测试 extxyz 文件,包含 1032 帧,每帧 370 个原子,字段为 Energy 和 forces。
135
+ required: true
136
+ required_for: [preflight, evaluate]
137
+ format: extxyz
138
+ source:
139
+ platform: modelscope
140
+ repo_id: OneScience/nanotube
141
+ repo_type: dataset
142
+ path: data/nanotube/nanotube_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/nanotube/nanotube_test.xyz
149
+ size: 39M
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: nanotube 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/nanotube
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: nanotube 数据文件 SHA256 清单,用于校验整理后数据与原始数据一致。
178
+ required: true
179
+ required_for: [preflight]
180
+ format: txt
181
+ source:
182
+ platform: modelscope
183
+ repo_id: OneScience/nanotube
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_nanotube.py
198
+ role: script
199
+ description_zh: nanotube 数据读取验证脚本,检查 extxyz 字段、shape、帧数、元素集合和 SHA256。
200
+ required: true
201
+ required_for: [preflight]
202
+ format: py
203
+ source:
204
+ platform: modelscope
205
+ repo_id: OneScience/nanotube
206
+ repo_type: dataset
207
+ path: scripts/validate_nanotube.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_nanotube.py
214
+ size: null
215
+ checksum: null
216
+ large_file: false
217
+
218
+ dataset:
219
+ format:
220
+ - extxyz
221
+ sample_unit: 单个碳纳米管构型,包含元素、坐标、Energy 和 forces。
222
+ schema:
223
+ path: metadata/schema.yaml
224
+ splits:
225
+ train:
226
+ path: data/nanotube/nanotube_large.xyz
227
+ frames: 4000
228
+ atoms_per_frame: 370
229
+ validation:
230
+ path: null
231
+ note_zh: "MACE nanotube 示例通过 valid_fraction: 0.05 从训练文件划分验证集。"
232
+ test:
233
+ path: data/nanotube/nanotube_test.xyz
234
+ frames: 1032
235
+ atoms_per_frame: 370
236
+
237
+ relations:
238
+ required_datasets: []
239
+ optional_datasets: []
240
+ compatible_models:
241
+ - id: OneScience/MACE
242
+ role: train_data
243
+ required_for: [preflight, train, evaluate]
244
+ resource_ref:
245
+ platform: modelscope
246
+ repo_id: OneScience/MACE
247
+ repo_type: model
248
+ url: https://modelscope.cn/models/OneScience/MACE
249
+ revision: main
250
+ readme_path: README.md
251
+ manifest_path: manifest.yaml
252
+ expected_local_path: session_workdir/data/nanotube
253
+ adapter: null
254
+
255
+ run_matrix:
256
+ scenarios:
257
+ - name: validate_dataset
258
+ default: true
259
+ capability: preflight
260
+ required_datasets:
261
+ - id: OneScience/nanotube
262
+ role: train_data
263
+ local_path: data/nanotube
264
+ required_model_files: []
265
+ required_data_files:
266
+ - data/nanotube/nanotube_large.xyz
267
+ - data/nanotube/nanotube_test.xyz
268
+ - metadata/sha256_manifest.txt
269
+ preconditions:
270
+ - 已下载数据集仓库 OneScience/nanotube。
271
+ command_refs:
272
+ - commands.preflight.validate_dataset
273
+ outputs:
274
+ - path: stdout
275
+ description_zh: 数据字段、帧数、元素集合和 SHA256 检查结果。
276
+
277
+ capabilities:
278
+ inference: false
279
+ train: false
280
+ finetune: false
281
+ evaluate: false
282
+ visualize: false
283
+ deploy: false
284
+
285
+ commands:
286
+ download:
287
+ - name: download_dataset_package
288
+ target: dataset
289
+ repo_id: OneScience/nanotube
290
+ source: .
291
+ local_path: session_workdir/
292
+ required: true
293
+ required_for: [preflight, train, evaluate]
294
+ cwd: .
295
+ command: modelscope download --dataset OneScience/nanotube --local_dir session_workdir
296
+ expected_outputs:
297
+ - path: session_workdir/data/nanotube/nanotube_large.xyz
298
+ type: file
299
+ success_criteria:
300
+ - exit_code == 0
301
+ - output_path_exists
302
+ preflight:
303
+ - name: validate_dataset
304
+ description: 验证 nanotube extxyz 文件结构、字段名、帧数和 SHA256。
305
+ cwd: .
306
+ command: python scripts/validate_nanotube.py --dataset-root data/nanotube --checksum-manifest metadata/sha256_manifest.txt
307
+ required_files:
308
+ - data/nanotube/nanotube_large.xyz
309
+ - data/nanotube/nanotube_test.xyz
310
+ - metadata/sha256_manifest.txt
311
+ - scripts/validate_nanotube.py
312
+ required_env:
313
+ - python
314
+ expected_outputs:
315
+ - path: stdout
316
+ type: text
317
+ success_criteria:
318
+ - exit_code == 0
319
+ prepare: []
320
+ inference: []
321
+ train: []
322
+ finetune: []
323
+ evaluate: []
324
+ visualize: []
325
+ deploy: []
326
+
327
+ expected_outputs:
328
+ - path: stdout
329
+ type: text
330
+ description_zh: 验证脚本输出每个 split、字段和 SHA256 的 OK 结果。
331
+
332
+ diagnostics:
333
+ - error_pattern: "缺少文件"
334
+ likely_cause: 数据集下载不完整或运行 cwd 不在数据集仓库根目录。
335
+ action: 重新执行 modelscope download --dataset OneScience/nanotube,并在下载后的数据集根目录运行验证命令。
336
+ - error_pattern: "SHA256 不一致"
337
+ likely_cause: 文件被截断、损坏或被替换。
338
+ action: 删除损坏文件后重新下载数据集。
339
+ - error_pattern: "Energy"
340
+ likely_cause: extxyz comment 中缺少 MACE nanotube 配置要求的能量字段。
341
+ action: 检查数据是否为本仓库 nanotube 数据,或同步修改模型配置 energy_key。
342
+ - error_pattern: "forces"
343
+ likely_cause: extxyz Properties 中缺少 MACE nanotube 配置要求的力字段。
344
+ action: 检查数据是否为本仓库 nanotube 数据,或同步修改模型配置 forces_key。
345
+
346
+ domain_extension:
347
+ matchem:
348
+ chemical_system:
349
+ elements:
350
+ - C
351
+ - H
352
+ properties:
353
+ - energy
354
+ - forces
355
+ units:
356
+ energy: eV
357
+ forces: eV/Angstrom
358
+ structure_format:
359
+ - extxyz
360
+
361
+ large_resource:
362
+ enabled: false
363
+ total_size: 187M
364
+ file_count: 2
365
+ download_policy: full
366
+ default_download: full
367
+ minimal_files:
368
+ - data/nanotube/nanotube_large.xyz
369
+ - data/nanotube/nanotube_test.xyz
370
+
371
+ reproducibility:
372
+ level: minimal
373
+ goal: 完成一次 nanotube extxyz 数据读取和 SHA256 校验。
374
+ command_ref: commands.preflight.validate_dataset
375
+ expected_runtime: 1-3 minutes
376
+ expected_outputs:
377
+ - stdout
scripts/validate_nanotube.py ADDED
@@ -0,0 +1,147 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python3
2
+ """Validate the standardized nanotube 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
+ "nanotube_large.xyz": 4000,
14
+ "nanotube_test.xyz": 1032,
15
+ }
16
+ EXPECTED_ATOMS_PER_FRAME = 370
17
+ EXPECTED_ELEMENTS = {"C", "H"}
18
+
19
+
20
+ def sha256_file(path: Path) -> str:
21
+ h = hashlib.sha256()
22
+ with path.open("rb") as f:
23
+ for chunk in iter(lambda: f.read(1024 * 1024), b""):
24
+ h.update(chunk)
25
+ return h.hexdigest()
26
+
27
+
28
+ def validate_checksum_manifest(dataset_root: Path, manifest_path: Path) -> None:
29
+ checked = 0
30
+ with manifest_path.open("r", encoding="utf-8") as f:
31
+ for line in f:
32
+ line = line.strip()
33
+ if not line or line.startswith("#"):
34
+ continue
35
+ digest, rel = line.split(maxsplit=1)
36
+ path = dataset_root / rel
37
+ if not path.exists():
38
+ raise SystemExit(f"[FAIL] 清单文件不存在: {path}")
39
+ actual = sha256_file(path)
40
+ if actual != digest:
41
+ raise SystemExit(f"[FAIL] SHA256 不一致: {rel}")
42
+ checked += 1
43
+ if checked != len(EXPECTED_FILES):
44
+ raise SystemExit(f"[FAIL] SHA256 清单文件数异常: {checked}")
45
+ print(f"[OK] SHA256 清单验证通过: {checked} 个文件")
46
+
47
+
48
+ def parse_properties(comment: str) -> list[tuple[str, str, int]]:
49
+ match = re.search(r'Properties=("[^"]+"|\S+)', comment)
50
+ if not match:
51
+ raise SystemExit("[FAIL] extxyz comment 缺少 Properties")
52
+ raw = match.group(1).strip('"')
53
+ parts = raw.split(":")
54
+ if len(parts) % 3:
55
+ raise SystemExit(f"[FAIL] Properties 格式异常: {raw}")
56
+ parsed = []
57
+ for i in range(0, len(parts), 3):
58
+ name, kind, width = parts[i], parts[i + 1], int(parts[i + 2])
59
+ parsed.append((name, kind, width))
60
+ return parsed
61
+
62
+
63
+ def validate_xyz(path: Path, expected_frames: int) -> None:
64
+ frames = 0
65
+ elements: set[str] = set()
66
+
67
+ with path.open("r", encoding="utf-8") as f:
68
+ while True:
69
+ first = f.readline()
70
+ if not first:
71
+ break
72
+ if not first.strip():
73
+ continue
74
+ try:
75
+ atom_count = int(first.strip())
76
+ except ValueError as exc:
77
+ raise SystemExit(f"[FAIL] 原子数行不是整数: {path}:{frames + 1}") from exc
78
+ if atom_count != EXPECTED_ATOMS_PER_FRAME:
79
+ raise SystemExit(
80
+ f"[FAIL] 原子数异常: {path.name} frame {frames}: "
81
+ f"{atom_count} != {EXPECTED_ATOMS_PER_FRAME}"
82
+ )
83
+ comment = f.readline().rstrip("\n")
84
+ if "Energy=" not in comment:
85
+ raise SystemExit(f"[FAIL] comment 缺少 Energy: {path} frame {frames}")
86
+ if "pbc=" not in comment:
87
+ raise SystemExit(f"[FAIL] comment 缺少 pbc: {path} frame {frames}")
88
+ props = parse_properties(comment)
89
+ prop_names = [p[0] for p in props]
90
+ if prop_names != ["species", "pos", "forces"]:
91
+ raise SystemExit(f"[FAIL] Properties 必须是 species,pos,forces: {path} frame {frames}")
92
+ expected_cols = sum(width for _, _, width in props)
93
+ if expected_cols != 7:
94
+ raise SystemExit(f"[FAIL] 原子列数 schema 异常: {path} frame {frames}")
95
+
96
+ for atom_index in range(atom_count):
97
+ atom_line = f.readline()
98
+ if not atom_line:
99
+ raise SystemExit(f"[FAIL] 文件提前结束: {path} frame {frames}")
100
+ cols = atom_line.split()
101
+ if len(cols) != expected_cols:
102
+ raise SystemExit(
103
+ f"[FAIL] 原子列数异常: {path} frame {frames} atom {atom_index}: "
104
+ f"{len(cols)} != {expected_cols}"
105
+ )
106
+ elements.add(cols[0])
107
+ for value in cols[1:]:
108
+ float(value)
109
+ frames += 1
110
+
111
+ if frames != expected_frames:
112
+ raise SystemExit(f"[FAIL] 帧数异常: {path.name}: {frames} != {expected_frames}")
113
+ if not elements.issubset(EXPECTED_ELEMENTS):
114
+ raise SystemExit(f"[FAIL] 元素集合异常: {sorted(elements)}")
115
+ print(f"[OK] {path.name}: frames={frames}, atoms_per_frame=370, elements={sorted(elements)}")
116
+
117
+
118
+ def main() -> int:
119
+ parser = argparse.ArgumentParser()
120
+ parser.add_argument("--dataset-root", default="data/nanotube")
121
+ parser.add_argument("--checksum-manifest", default="metadata/sha256_manifest.txt")
122
+ args = parser.parse_args()
123
+
124
+ repo_root = Path.cwd()
125
+ dataset_root = Path(args.dataset_root)
126
+ if not dataset_root.is_absolute():
127
+ dataset_root = repo_root / dataset_root
128
+ checksum_manifest = Path(args.checksum_manifest)
129
+ if not checksum_manifest.is_absolute():
130
+ checksum_manifest = repo_root / checksum_manifest
131
+
132
+ if not dataset_root.exists():
133
+ raise SystemExit(f"[FAIL] 数据目录不存在: {dataset_root}")
134
+ for name, expected_frames in EXPECTED_FILES.items():
135
+ path = dataset_root / name
136
+ if not path.exists():
137
+ raise SystemExit(f"[FAIL] 缺少文件: {path}")
138
+ if path.stat().st_size <= 0:
139
+ raise SystemExit(f"[FAIL] 文件为空: {path}")
140
+ validate_xyz(path, expected_frames)
141
+ validate_checksum_manifest(dataset_root, checksum_manifest)
142
+ print("[OK] nanotube 数据集读取验证通过")
143
+ return 0
144
+
145
+
146
+ if __name__ == "__main__":
147
+ raise SystemExit(main())