Skip to content
Back to skills

Class Conditional

ASecurity

"Router for LlamaGen class-conditional ImageNet generation,

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
tools

Works with

  • cli

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill class-conditional --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Class Conditional?

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

Security grade badge for Class Conditional
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-class-conditional/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-class-conditional)

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: class-conditional
description: "Router for LlamaGen class-conditional ImageNet generation,
  training, serving, packaging, and evaluation."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# class-conditional

Use this sub-skill for LlamaGen class-conditional ImageNet workflows that do **not** require tokenizer training or text conditioning. The bundled wrappers pin `--gpt-type c2i`; use the text-conditional sub-skill for `t2i`.

## In scope
- DDP class-conditional training and resume flows.
- FSDP class-conditional training and resume flows.
- Single-process and DDP sampling.
- vLLM serving for class-conditional checkpoints.
- Packaging sample folders into `.npz` batches for evaluation.
- c2i evaluation against ImageNet reference batches.
- Model-family and checkpoint-format guidance for c2i checkpoints.

## Route elsewhere
- Tokenizer training or reconstruction -> `tokenizers`
- Preprocessing requests, including discrete-code extraction or T5 extraction -> `data-preparation`
- Text-conditional workflows -> `text-conditional`
- Publish / upload scripts -> excluded

## Start here
- `references/workflows.md` for workflow selection and checkpoint shape notes.
- `references/cli-reference.md` for exact wrapper flags and env vars.
- `references/serving.md` for vLLM path, model-id, and memory notes.
- `references/evaluation.md` for `.npz` layout and packaging expectations.
- `references/troubleshooting.md` for DDP, FSDP, vLLM, and evaluator failures.

## Bundled scripts
- `scripts/train_c2i.sh`
- `scripts/train_c2i_fsdp.sh`
- `scripts/sample_c2i.sh`
- `scripts/sample_c2i_ddp.sh`
- `scripts/sample_c2i_ddp_pack_npz.py`
- `scripts/serve_c2i_vllm.sh`
- `scripts/evaluate_c2i.sh`

## Checkpoint and model notes
- DDP training saves checkpoints with `model`, `optimizer`, `steps`, `args`, and optional `ema`.
- FSDP resume expects a directory with `consolidated.pth`, `optimizer.*.pth`, and `resume_step.txt`.
- Sampling and serving can read `model`, `module`, or `state_dict` checkpoints; raw FSDP weights need `--from-fsdp`.
- The vLLM path is wired for the class-conditional fake JSON configs only.

## Troubleshooting priorities
- Fix CUDA / NCCL / world-size mismatches first.
- Check checkpoint key shape or FSDP world-size compatibility next.
- Then check vLLM model-id paths, GPU memory sizing, and evaluator `.npz` inputs.
- Treat `app.py` as reference-only because it loads checkpoints at import time.

Files in this skill

  • SKILL.md2.4 KB
  • references/cli-reference.md3 KB
  • references/evaluation.md1.5 KB
  • references/serving.md2 KB
  • references/troubleshooting.md2.4 KB
  • references/workflows.md3.5 KB
  • scripts/evaluate_c2i.sh303 B
  • scripts/sample_c2i.sh526 B
  • scripts/sample_c2i_ddp.sh593 B
  • scripts/sample_c2i_ddp_pack_npz.py3.3 KB
  • scripts/serve_c2i_vllm.sh558 B
  • scripts/train_c2i.sh994 B
  • scripts/train_c2i_fsdp.sh1 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.