Skip to content
Back to skills

Conditioning Guidance

ASecurity

"Use denoising-diffusion-pytorch conditioning and guidance APIs:

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
code-qualitydebugginggitapi

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 conditioning-guidance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Conditioning Guidance?

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

Security grade badge for Conditioning Guidance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-conditioning-guidance/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-conditioning-guidance)

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: conditioning-guidance
description: "Use denoising-diffusion-pytorch conditioning and guidance APIs:
  classifier-free guidance, classifier-gradient cond_fn guidance, and XMWrapper
  multi-candidate loss."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Conditioning Guidance

Use this sub-skill for conditioning and guidance surfaces in `denoising-diffusion-pytorch`: classifier-free guidance, class-label sampling controls, external classifier-gradient `cond_fn` guidance, and `XMWrapper` multi-candidate loss selection.

## Route here when

- The task mentions classifier-free guidance, class conditioning, `num_classes`, class labels, `classes`, `cond_drop_prob`, `cond_scale`, `rescaled_phi`, or CFG++ / `use_cfg_plus_plus`.
- The task asks for an external classifier `cond_fn`, `guidance_kwargs`, classifier-gradient sampling, label-conditioned classifier logits, or guidance shape/device debugging.
- The task asks about `XMWrapper`, explorative / multi-candidate loss, `candidates`, `max_batch_size`, `random_time_method`, or `random_time_kwarg`.

## Route elsewhere for base setup

- 2D image `Unet`, `GaussianDiffusion`, image folders, `Trainer`, FID, DDIM/DDPM basics, interpolation without classes, or RePaint setup: [../image-diffusion/SKILL.md](../image-diffusion/SKILL.md).
- 1D tensors, `Unet1D`, `GaussianDiffusion1D`, `Dataset1D`, `Trainer1D`, sequence layout, sequence sampling, or `channel_first`: [../sequence-diffusion/SKILL.md](../sequence-diffusion/SKILL.md).
- Karras models, continuous-time wrappers, learned variance, weighted objectives, simple diffusion, flash/SDPA attention, or other advanced variants: [../advanced-variants/SKILL.md](../advanced-variants/SKILL.md).

## Operating map

1. Read [references/api-reference.md](references/api-reference.md) for import paths, signatures, tensor contracts, and guidance-specific semantics.
2. Read [references/workflows.md](references/workflows.md) for safe recipes: CFG loss/sample, classifier-gradient `cond_fn`, `XMWrapper`, and candidate chunking.
3. Read [references/troubleshooting.md](references/troubleshooting.md) for label shape errors, CFG schedule assertions, guidance strength issues, `cond_fn` gradient failures, and `XMWrapper` failures.
4. Run [scripts/smoke_conditioning_guidance.py](scripts/smoke_conditioning_guidance.py) after installing the package to verify tiny CPU or CUDA guidance checks without training, downloads, or data files.

## Safe defaults

For quick local checks, keep models tiny: `dim=8`, `dim_mults=(1,)`, `channels=1`, `image_size=8` or `seq_length=8`, `timesteps=8`, `sampling_timesteps=4`, random tensors in `[0, 1]`, `candidates=2`, and `max_batch_size` no larger than `batch * candidates`.

Files in this skill

  • SKILL.md2.7 KB
  • references/api-reference.md4.3 KB
  • references/troubleshooting.md2.8 KB
  • references/workflows.md3.1 KB
  • scripts/smoke_conditioning_guidance.py4.7 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.