model-zoo-pretraining
Select, instantiate, inspect, and troubleshoot DGL-LifeSci model-zoo architectures, pretrained models, readouts, molecule embeddings, and link prediction heads.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- model-zoo-pretraining
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Select, instantiate, inspect, and troubleshoot DGL-LifeSci model-zoo architectures, pretrained models, readouts, molecule embeddings, and link prediction heads.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/constructor-recipes.md7.1 KB
- 参考文档references/model-catalog.md12.7 KB
- 参考文档references/troubleshooting.md9.0 KB
03 SKILL.md 正文
Model Zoo and Pretraining
Use this sub-skill when an agent needs to choose or instantiate dgllife.model architectures, inspect constructor compatibility, load pretrained models, produce molecule embeddings from pretrained GIN encoders, or wire link-prediction heads.
Use This For
- Selecting among
dgllife.model.gnn,dgllife.model.readout,dgllife.model.model_zoo, anddgllife.model.load_pretrainedentry points. - Matching graph feature tensors such as
g.ndata['h'],g.ndata['hv'],g.edata['e'], or pretrained categorical lists to constructor parameters. - Diagnosing constructor signatures, missing root exports, zero-in-degree errors, and pretrained checkpoint download failures.
- Adapting molecule embedding or link-prediction patterns without running large dataset downloads.
Route Elsewhere
- For SMILES parsing, featurizers, graph construction, label masks, splitters, and dataset field names, use
../molecule-data-prep/SKILL.md. - For property prediction training loops, metrics, masking, and model evaluation workflows, use
../property-prediction/SKILL.mdafter choosing the model here. - For WLN reaction-center/ranking workflows and reaction-specific featurization, use
../reaction-prediction/SKILL.md; this sub-skill only covers shared constructors and pretrained names.
References
- Start with references/model-catalog.md for constructor families, feature dimensions, output expectations, pretrained names, molecule embedding, and link prediction usage.
- Use references/constructor-recipes.md for tiny CPU instantiation snippets and shape reasoning without data downloads.
- Use references/troubleshooting.md for import/install, optional dependency, data/config, CLI/API misuse, pretrained download, zero-in-degree, and version/export caveats.
- Run scripts/inspect_model_constructors.py to print installed constructor signatures and optionally instantiate tiny CPU-safe constructors.
Fast Workflow
- Identify whether the user needs a GNN encoder, graph-level predictor, readout, pretrained model, molecule embedding encoder, or link-prediction head.
- Check feature ownership: node and edge feature construction belongs to
molecule-data-prep; this sub-skill only maps those tensor widths and field names into constructors. - Read
references/model-catalog.mdfor the closest constructor family and any pretrained feature contract. - Validate the installed API with
python scripts/inspect_model_constructors.py --constructors GCNPredictor,GATPredictor,MPNNPredictorbefore writing code that must run across DGL-LifeSci versions. - If pretrained checkpoints are needed, provide a no-network fallback plan because
load_pretrained()downloads checkpoint files on first use.
Version Caveats
The verified installed package was dgllife 0.3.1 with DGL 1.1.3 and CPU Torch. The source includes GATv2Predictor, but one installed inspection found no GATv2Predictor attribute at dgllife.model; prefer GATv2 as the stable encoder and inspect submodule fallback availability before promising root-level GATv2Predictor imports.
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.