earth2studio
Guides Earth2Studio weather and climate inference workflows, data access, model and component selection, output/checkpoint handling, extension, and optional REST serving with backend-aware validation.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- earth2studio
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides Earth2Studio weather and climate inference workflows, data access, model and component selection, output/checkpoint handling, extension, and optional REST serving with backend-aware validation.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/repo-provenance.md1.9 KB
- 参考文档references/repo-routing-metadata.json518 B
- 参考文档references/scope-and-limitations.md2.9 KB
- 参考文档references/troubleshooting.md3.0 KB
- 脚本scripts/check_environment.py3.5 KB
03 SKILL.md 正文
Earth2Studio operating guide
Use this repo skill when a task names Earth2Studio or asks to build a
composable AI weather/climate workflow using its earth2studio Python APIs:
models, data sources, lexicons, workflows, IO, checkpoints, ensembles,
assimilation, statistics, custom components, or the optional serving client and
REST server.
This is a routing skill, not a model-weight or dataset bundle. It teaches the public contracts and safe decision sequence; a selected model extra, checkpoint, remote data source, credential, service, and accelerator may still be required. Read scope and limitations before attempting a large, networked, or production workflow.
First checks
Install the public package into the intended environment, then add only the
route-specific extra. For example, use python -m pip install earth2studio
(or uv pip install earth2studio) for the base package and
python -m pip install "earth2studio[serve]" only when the REST/client route
is selected. For a repository checkout, an editable install is a development
operation and should be performed in that checkout's own environment. Verify
with python -c "import earth2studio; print(earth2studio.__version__)" and,
for a GPU task, python scripts/check_environment.py --require-cuda.
- Establish the supported Python range (
>=3.11,<3.15) and the package revision in use. Read repository provenance when deciding whether this graph matches a checkout or whether it needs a refresh. - Decide whether the request is installation/discovery, data preparation, inference composition, ensembles, output/restart, model/assimilation, statistics/extension, or serving. Use one focused route below; combine routes explicitly for cross-cutting requests.
- Separate package import, component contract, backend runtime, remote asset/data access, and service readiness. Passing one does not prove the others.
- Install only the narrow base/optional extras needed for the selected route;
do not start with the
allextra. Use the route's troubleshooting reference when compiled model dependencies, GRIB/eccodes, credentials, or CUDA fail. - Before a real forecast, inspect model
input_coords()andoutput_coords(...), source lexicon support, requested variables/times, device, lead-time spacing, and IO coordinates. Use the offline helpers in the relevant route before downloads or long runs.
Route map
- Install, compare models/data, choose extras or backends: read installation-discovery.
- Fetch gridded, forecast, observation, tabular, satellite, or local data; map variables through lexicons: read data-sources.
- Build deterministic or prognostic-plus-diagnostic inference: read workflows, then data-sources and io-checkpointing for the concrete inputs and output.
- Run multiple members, perturb initial conditions, batch or interpolate: read ensembles, then IO/checkpointing for member-aware storage.
- Persist outputs, use Zarr/NetCDF/Xarray/KV, shard, or resume: read io-checkpointing.
- Choose/load a prognostic, diagnostic, downscaling, nowcasting, seasonal, or data-assimilation model: read models-and-assimilation.
- Compute metrics/statistics or implement custom components: read statistics-and-extension.
- Submit remote work, inspect schemas/status/results, or configure a REST service: read serving.
Core composition order
For most forecast tasks, use this order:
- Installation-discovery: select a model family, exact extra/backend, data source, variables, and license/access requirements.
- Models-and-assimilation: load or inspect the component and record its input coordinate system. Do not infer a grid or history window from the class name.
- Data-sources: verify that the source/lexicon can provide the exact variables, times, lead times, and units; fetch or interpolate only after validation.
- Workflows or ensembles: call the appropriate
earth2studio.runfunction with explicit device, step/member, output-coordinate, and checkpoint choices. - IO-checkpointing: initialize all output coordinates and variable names, choose storage/chunks/shards, and validate restart semantics.
- Statistics-and-extension or serving: score/aggregate results, extend a protocol, or expose a validated workflow remotely.
The main public orchestration functions are run.deterministic,
run.diagnostic, and run.ensemble; the data helpers are fetch_data and
fetch_dataframe. Exact signatures and coordinate rules belong in the focused
references rather than this router.
Validation and failure policy
Prefer a tiny, offline, deterministic fixture before a real model/data run. Keep network, credentials, model downloads, service processes, destructive writes, large ensembles, and long examples explicitly opt-in. When a failure occurs, identify the first boundary—Python/package, optional dependency, API/schema, coordinate/data, backend/device, storage/checkpoint, remote access, or service— and follow the nearest route's troubleshooting guide. Do not turn a CPU import into a CUDA/model success claim, or a client import into a healthy Redis/API service claim.
Cross-cutting symptoms and recovery are in troubleshooting. The source snapshot and refresh trigger are in repo provenance. The structured routing metadata is in repo-routing-metadata.json.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).