Skip to content
Back to skills

Diffusion And Generative

ASecurity

"Use PhysicsNeMo diffusion APIs and generative-domain workflows

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
datapythonapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill diffusion-and-generative --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Diffusion And Generative?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Diffusion And Generative
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-diffusion-and-generative/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-diffusion-and-generative)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: diffusion-and-generative
description: "Use PhysicsNeMo diffusion APIs and generative-domain workflows
  without assuming bundled weights or data."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# PhysicsNeMo Diffusion and Generative Workflows

Use this sub-skill when the user asks about PhysicsNeMo diffusion models, denoisers, predictors, preconditioners, noise schedulers, samplers, guidance, multi-diffusion/patching, CorrDiff/StormCast-style weather diffusion, CFD flow reconstruction diffusion, full-waveform inversion diffusion, TopoDiff, SongUNet, DhariwalUNet, StormCastUNet, DiT, or diffusion-specific losses.

## First decide: API building block or full example workflow?

- **API building block**: the user needs imports, signatures, a minimal adapter, a custom scheduler/solver, a tiny sampler smoke, or a loss/preconditioner explanation. Read `references/api-reference.md` and run `scripts/diffusion_api_smoke.py` if an environment check is useful.
- **Full domain workflow**: the user needs to train/generate with weather, CFD, geophysics, or topology-optimization examples. Read `references/diffusion-workflows.md` first, then route data preparation to `../datapipes/SKILL.md`, model-family ambiguity to `../model-selection/SKILL.md`, and multi-GPU/domain-parallel scaling to `../distributed-and-domain-parallel/SKILL.md`.
- **Failure diagnosis**: if the issue includes missing checkpoints, data paths, shape/channel mismatches, sigma/scheduler settings, patch fusion, guidance gradients, CUDA/FP16, or domain-parallel behavior, read `references/troubleshooting.md` before changing code.

## Quick workflow

1. Clarify the task target: training loss, sampling/inference, conditioning/guidance, patching, or a domain recipe.
2. State explicitly whether the user has the required **trained weights/checkpoints**, **datasets/statistics**, and **example-specific optional dependencies**. PhysicsNeMo does not bundle pretrained domain weights or external datasets with this generated skill.
3. For core API work, assemble the pipeline in this order: `DiffusionModel`/adapter -> optional preconditioner -> noise scheduler -> loss for training, or predictor -> scheduler `get_denoiser` -> solver/sample for inference.
4. For domain workflows, separate safe API smokes from real training/generation. Real CorrDiff, StormCast, CFD, FWI, and TopoDiff runs require user-provided data, checkpoints or long training, and usually CUDA.
5. For large spatial domains, choose between patch-based multi-diffusion and domain parallelism. Use multi-diffusion for patching a 2D field inside the diffusion stack; route `ShardTensor` and launch details to `../distributed-and-domain-parallel/SKILL.md`.
6. Prefer tiny local validation before expensive work: run `python scripts/diffusion_api_smoke.py --tiny-sampling` from this sub-skill directory, then only run user-authorized full workflow commands after the required data, checkpoints, dependencies, and backend are confirmed.

## Do not do these by default

- Do not imply pretrained weights, CorrDiff/StormCast/TopoDiff datasets, NGC resources, Figshare files, Dropbox files, or FWI data are bundled.
- Do not run training, dataset downloads, external authentication, model checkpoint downloads, or multi-hour generation as a smoke test.
- Do not treat source repository examples or tests as runtime dependencies. This sub-skill distills their behavior into bundled references and a safe script.
- Do not use `torch.inference_mode()` around DPS-style guidance that needs gradients; use the troubleshooting reference for the safe autograd pattern.

Files in this skill

  • SKILL.md3.6 KB
  • references/api-reference.md1.4 KB
  • references/diffusion-workflows.md1.3 KB
  • references/troubleshooting.md1.5 KB
  • scripts/diffusion_api_smoke.py2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.