AGENT SKILL

generative-models

Routes Papers-in-100-Lines GAN, VAE, flow, diffusion, DreamBooth, Stable Diffusion, and image-translation implementation tasks.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
generative-models
license
MIT
metadata
{ "disco-role": "operating" }
description
Routes Papers-in-100-Lines GAN, VAE, flow, diffusion, DreamBooth, Stable Diffusion, and image-translation implementation tasks.
disable-model-invocation
true

02 资源文件 3

03 SKILL.md 正文

Generative Models

Use this sub-skill when the user asks about generative implementations in Papers-in-100-Lines: GAN variants, VAEs, normalizing flows, diffusion samplers, DreamBooth, Stable Diffusion, image translation, SNL/AALR, or related toy density/image generation examples.

Read these bundled files

  • Model family guide maps the bundled catalog entries to model families, key classes/functions, data assumptions, and safe adaptation recipes.
  • Troubleshooting covers dataset downloads, old dependency pins, CUDA hardcodes, missing Stable Diffusion weights, output-image side effects, and shape/loss failures.
  • Implementation index lists all entries; use it when the user gives only a paper title or acronym.
  • Dependency and backend guide explains why each paper should normally get its own environment.
  • summarize_generative_entries.py summarizes this family's catalog entries without importing torch, Keras, or Diffusers.

Trigger routes

  • GAN or image translation: original GAN, CGAN, DCGAN, LSGAN, WGAN, WGAN-GP, Improved GAN, ALI/AFL, pix2pix, CycleGAN.
  • VAE, flow, or density estimation: Auto-Encoding Variational Bayes, NICE, Real NVP, MAF, planar flows, SNL, AALR-MCMC, Gromov-Wasserstein.
  • Diffusion and text-to-image: nonequilibrium thermodynamics, DDPM, DDIM, PNDM, DPM-Solver, rectified flow, Stable Diffusion v1-5, DreamBooth.
  • Safety triage: detect when the requested action would download MNIST, tokenizers, model weights, or run a long GPU training loop.

Workflow for a future agent

  1. If the paper is not explicit, query the catalog first:

    python ../../scripts/query_implementation_index.py --group generative-models --query "diffusion"
    
  2. Read Model family guide for the selected family and identify the reusable pattern: generator/discriminator, encoder and latent distribution, invertible transform, score/noise predictor, or sampler schedule.

  3. Decide whether the user needs full reproduction or a small adaptation. For small adaptation, create a new tiny script with explicit device, data, and output arguments rather than importing a file that may download data at import time.

  4. Use per-entry requirements from the catalog. Do not merge all generative requirements into one environment.

  5. Validate with a bounded shape or loss check before training: generator output shape, flow log-prob shape, diffusion sample tensor shape, or text-to-image weight/tokenizer presence.

Boundaries

Route NeRF, implicit representation, splatting, camera/ray, and 3D reconstruction tasks to neural-rendering-3d. Route optimizers, activations, meta-learning, hypergradients, Deep Image Prior, and Atari RL tasks to optimization-meta-rl. Use paper-catalog-and-execution for lookup and first-run safety planning.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351