Files
hao-ai-lab-FastVideo/docs
William LinandClaude Opus 5.5 4f28086f0e [feat] PAN2: prompt and video guardrails, on by default
PAN 2's vLLM-Omni and Diffusers integrations check every prompt and every
generated video with the `pan2-guardrail` package's PAN2SafetyChecker, on by
default. FastVideo now does the same:

- `PAN2PromptGuardrailStage` checks the prompt right after input validation,
  before any compute. It also refuses `output_type="latent"`, which the video
  check cannot see.
- `PAN2VideoGuardrailStage` checks each decoded video after the decoding stage,
  as the uint8 `[T, H, W, 3]` frames the generator delivers.
- A blocked prompt or video raises `PAN2GuardrailViolationError`.
- `PAN2PipelineConfig.enable_guardrails` (default True) turns both checks off;
  `offload_guardrail_models` keeps the guard models on CPU between checks.
  Loading fails with install instructions when the package is missing and the
  guardrails are on.
- With sequence parallelism, only the first rank of the SP group loads the
  checker and runs the checks; it broadcasts the verdict, so every rank raises
  together and the guard models take memory on one GPU.

The parity test turns the guardrails off (random-weight checkpoint). Docs and
PORT_STATUS updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 20:31:55 +00:00
..

FastVideo documentation

Canonical guides live in this directory. The Blume application in docs-site builds and publishes them at haoailab.com/FastVideo.

See Documenting FastVideo for local setup, source ownership, page structure, validation, and deployment. The existing GitHub Pages workflow publishes Blume from main with the same domain and base path. MkDocs is no longer part of the build.

Cookbook sources

Recipe metadata, shared JavaScript, and tests remain under docs/. From the repository root:

npm ci --prefix docs
npm run build:catalog --prefix docs
npm run check:cookbook --prefix docs
npm run test:cookbook --prefix docs
python -m unittest discover -s docs/tests -p 'test_*.py'

The combined browser bundle, notices, index and catalogs are generated together under assets/cookbook-config/. Do not hand-edit or commit those outputs. The site preparation builds and copies them into Blume's public assets. See the recipe authoring guide and configuration API contract before changing the schema. The capacity estimation guide covers reusable hardware/component catalogs and optional recorded inference runs in existing model manifests.