wiseodd-generative-models
Routes the legacy Generative Models script collection for GAN, VAE, RBM, and Helmholtz Machine MNIST workflows, catalog lookup, and compatibility troubleshooting.
- License 许可
- Unlicense
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- wiseodd-generative-models
- license
- Unlicense
- metadata
- { "disco-role": "operating" }
- description
- Routes the legacy Generative Models script collection for GAN, VAE, RBM, and Helmholtz Machine MNIST workflows, catalog lookup, and compatibility troubleshooting.
- disable-model-invocation
- true
02 资源文件 8
- 参考文档references/compatibility.md3.2 KB
- 参考文档references/model-catalog.json14.0 KB
- 参考文档references/model-catalog.md6.0 KB
- 参考文档references/repo-provenance.md1.6 KB
- 参考文档references/repo-routing-metadata.json342 B
- 参考文档references/troubleshooting.md3.2 KB
- 脚本scripts/check_legacy_stack.py6.8 KB
- 脚本scripts/model_catalog.py4.1 KB
03 SKILL.md 正文
Generative Models
Use this repo skill for the legacy Generative Models script collection: GAN, VAE, RBM, and Helmholtz Machine examples implemented as standalone MNIST training scripts in TensorFlow, PyTorch, and NumPy.
This repository is not an installable Python package and does not expose a CLI. Treat it as a catalog of legacy research scripts plus compatibility guidance for future checkouts of the same repo.
Quick routing
| User asks for... | Route to |
|---|---|
| GAN variants, adversarial losses, WGAN/WGAN-GP, InfoGAN, DiscoGAN, DualGAN, ALI/BiGAN, GibbsNet | sub-skills/gan/SKILL.md |
| VAE, CVAE, denoising VAE, adversarial autoencoder, adversarial variational Bayes | sub-skills/vae/SKILL.md |
| Binary Restricted Boltzmann Machines, CD vs PCD, Bernoulli visible/hidden units | sub-skills/rbm/SKILL.md |
| Binary Helmholtz Machine, wake-sleep algorithm, recognition/generative weights | sub-skills/helmholtz-machine/SKILL.md |
| Exact family-to-script catalog, source artifact labels, framework coverage | references/model-catalog.md |
| Legacy dependency stack and modern incompatibilities | references/compatibility.md |
| Cross-family failures and recovery order | references/troubleshooting.md |
Minimal compatibility check
Run the bundled diagnostic helper before telling a user that an unmodified legacy script will run:
python scripts/check_legacy_stack.py
Use --strict when a workflow requires an unchanged script run and warnings should become a failing check. Use --repo-root <checkout> only when the user is actively working in a checkout and wants the helper to inspect whether MNIST_data/ and the expected family directories exist.
For catalog lookup without reopening the source tree, run:
python scripts/model_catalog.py --family gan
python scripts/model_catalog.py --model wgan-gp
Operating assumptions
- The historical dependency file targets a very old stack: Python 3.5.1-era NumPy/SciPy/scikit-learn/matplotlib plus Keras 1.1.1, while TensorFlow and PyTorch were installed separately.
- Most scripts load MNIST through
tensorflow.examples.tutorials.mnist.input_data, which is absent from modern TensorFlow 2.x installs. - Several PyTorch scripts use old scalar logging patterns such as
loss.data[0], which fail on modern PyTorch. - RBM, Helmholtz, and some GAN/VAE scripts use removed NumPy aliases such as
np.floatornp.int. - Generated sample images are expected under an
out/directory relative to the script's working directory in a source checkout.
When not to use this skill
- Do not use this skill for modern diffusion, Stable Diffusion, Diffusers, LoRA training, or image-generation services unless the task explicitly compares them with these classic MNIST scripts.
- Do not use it for generic PyTorch/TensorFlow installation help unrelated to this repository's legacy script patterns.
- Do not claim this repository provides packaged import APIs, console entry points, reusable datasets, tests, or production training pipelines.
Provenance and refresh
Read references/repo-provenance.md before deciding whether this skill is current for a new checkout. Refresh the skill if the commit, script inventory, dependency notes, or family layout differs from the provenance snapshot.
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).