add-model-08-trace

Detect layer-level numerical divergence between FastVideo and reference models.

3.9k|398|Updated Oct 24, 2024
One-click install
npx skills add https://github.com/hao-ai-lab/FastVideo --skill add-model-08-trace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-model-08-trace
Source: https://github.com/hao-ai-lab/FastVideo/tree/main/.agents/skills/add-model-08-trace
Command: npx skills add https://github.com/hao-ai-lab/FastVideo --skill add-model-08-trace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify the precise layer where numerical divergence occurs between FastVideo and the official reference implementation, facilitating targeted debugging.

Core Features & Use Cases

  • Layer Divergence Detection: Instruments both models with hooks to detect the exact tensor boundary causing discrepancies.
  • Root Cause Analysis: Assists engineers in pinpointing source code differences or implementation errors at the layer level.
  • Use Case: When component parity tests fail and initial debugging methods are inconclusive, use this Skill to visualize layer-wise residuals and isolate the divergence.

Quick Start

Load this Skill during a parity failure and run the debug script with appropriate model loaders and inputs for detailed layer analysis.

Frequently Asked Questions about add-model-08-trace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect the exact layer causing numerical divergence between two PyTorch models?

Layer divergence detection instruments both models with hooks to pinpoint the exact tensor boundary causing numerical discrepancies. This approach visualizes layer-wise residuals to isolate where differences originate in the architecture.

What's the best way to debug video generation pipeline consistency failures?

The best way to debug video generation pipeline consistency failures is layer-by-layer divergence analysis between implementations. When component parity tests fail, visualizing layer-wise residuals isolates the exact malfunction location for targeted source code correction.

Do I need specific model loaders to run a layer divergence analysis?

Yes, you need appropriate model loaders and inputs to run layer divergence analysis. Load the debug script with the correct model loaders for both FastVideo and reference implementations to execute detailed layer-by-layer comparison and isolate discrepancies.

Can I perform layer-by-layer divergence analysis without modifying my production code?

Yes, you can perform layer-by-layer divergence analysis without modifying production code. The instrumentation operates within existing model port structures and requires minimal modification, allowing precise malfunction localization without disrupting the FastVideo pipeline.

Why does my FastVideo implementation produce different outputs than the reference model?

Your FastVideo implementation produces different outputs due to source code differences or implementation errors at the layer level. Layer-by-layer divergence analysis instruments both models with hooks to detect the exact tensor boundary causing these numerical discrepancies.