zhangrenchao commited on
Commit
6dce2fb
·
verified ·
1 Parent(s): 835fa51

Add English model card

Browse files
Files changed (1) hide show
  1. README.md +92 -0
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - OneScience
7
+ - Earth Science
8
+ - Land Surface
9
+ - CLM5
10
+ - Model Emulation
11
+ - Parameter Estimation
12
+ frameworks: PyTorch
13
+ ---
14
+
15
+ <p align="center"><strong><span style="font-size: 30px;">CLM5-Emulator</span></strong></p>
16
+
17
+ # Model Introduction
18
+
19
+ CLM5-Emulator uses machine learning to emulate global biophysical responses of Community Land Model version 5. Six parameters drive predictions of GPP and LHF EOF components and bounded parameter estimation.
20
+
21
+ Paper: A machine learning approach to emulation and biophysical parameter estimation with the Community Land Model, version 5
22
+ https://doi.org/10.5194/ascmo-6-223-2020
23
+
24
+ # Model Description
25
+
26
+ The model was proposed by researchers at NCAR and CERFACS. It was trained with GSWP3-driven CLM5 parameter perturbation ensembles and FLUXNET-MTE observational targets. Two independent feed-forward networks emulate GPP and LHF spatial components for surrogate modeling and biophysical parameter estimation.
27
+
28
+ # Use Cases
29
+
30
+ | Use Case | Description |
31
+ | :---: | :--- |
32
+ | CLM5 emulation | Predict GPP and LHF components from six parameters. |
33
+ | Parameter estimation | Search the bounded normalized parameter space. |
34
+ | Spatial reconstruction | Reconstruct global responses from EOF components. |
35
+ | ModelScope/OneCode execution | Validate structured data, training, inference, metrics, and visualization. |
36
+ | Multi-GPU training | Start multi-process training through `torchrun`. |
37
+
38
+ # Usage Instructions
39
+
40
+ ```bash
41
+ hf download OneScience-Group/CLM5-Emulator --local-dir ./CLM5-Emulator
42
+ cd CLM5-Emulator
43
+ ```
44
+
45
+ ### Environment Dependencies
46
+
47
+ **Hardware Requirements**
48
+
49
+ - A GPU or DCU is recommended.
50
+ - A CPU can be used for connectivity validation with the default small-sample configuration.
51
+ - DCU users should install DTK 25.04.2 or a compatible OneScience-recommended version first.
52
+
53
+ **DCU Environment**
54
+
55
+ ```bash
56
+ # Activate DTK and Conda first
57
+ conda create -n onescience311 python=3.11 -y
58
+ conda activate onescience311
59
+ pip install onescience[earth-dcu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
60
+ ```
61
+
62
+ **GPU Environment**
63
+
64
+ ```bash
65
+ # Activate Conda first
66
+ conda create -n onescience311 python=3.11 -y libstdcxx-ng=12 libgcc-ng=12 gcc_linux-64=12 gxx_linux-64=12
67
+ conda activate onescience311
68
+ pip install onescience[earth-gpu] -i http://mirrors.onescience.ai:3141/pypi/simple/ --trusted-host mirrors.onescience.ai
69
+ ```
70
+
71
+ ```bash
72
+ python scripts/fake_data.py
73
+ python scripts/train.py
74
+ torchrun --nproc_per_node=2 --nnodes=1 --master_addr="localhost" --master_port=29500 scripts/train.py
75
+ python scripts/inference.py
76
+ python scripts/result.py
77
+ ```
78
+
79
+ Synthetic data retain `[B,6]` inputs, independent GPP/LHF targets, three EOF modes, and the logical 4-by-5-degree grid. Both target networks participate in backpropagation, and single-process and two-process DDP training have been verified. Inference restores the checkpoint, produces components with shape `[8,2,3]` and fields with shape `[8,2,46,72]`, and verifies finite outputs. Training results are saved to `result/checkpoints/clm5_emulator.pt`; inference and evaluation results are saved under `result/output/` and `result/evaluation/`.
80
+
81
+ # Official OneScience Information
82
+
83
+ | Platform | OneScience Main Repository | Skills Repository |
84
+ |---|---|---|
85
+ | Gitee | https://gitee.com/onescience-ai/onescience | https://gitee.com/onescience-ai/oneskills |
86
+ | GitHub | https://github.com/onescience-ai/OneScience | https://github.com/onescience-ai/oneskills |
87
+
88
+ # Citation and License
89
+
90
+ This repository is an independent engineering reproduction of the public CLM5-Emulator specifications.
91
+
92
+ The original paper is licensed under CC BY 4.0; the paper, CLM5, GSWP3, and FLUXNET-MTE data remain subject to their respective licenses and terms.