skills/skillxiv-v0.0.2-claude-opus-4.6/dc-video-gen-compression-adaptation/SKILL.md
Accelerate video generation by 14.8x through deep compression autoencoder (32x-64x spatial, 4x temporal compression) combined with lightweight adapter-based model adaptation. Use when deploying video diffusion models under compute or latency constraints.
npx skillsauth add ADu2021/skillXiv dc-video-gen-compression-adaptationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
DC-VideoGen introduces a post-training acceleration framework for video diffusion models combining a deep compression autoencoder with efficient adaptation mechanisms, enabling high-resolution video generation on resource-constrained systems.
Construct deep compression autoencoder with chunk-causal design:
# Build compression autoencoder with temporal chunking
from dc_videogen import DCAutoencoder, ChunkCausalEncoder
# Define compression strategy
ae = DCAutoencoder(
spatial_compression=32, # 32x spatial reduction
temporal_compression=4, # 4x temporal reduction
chunk_size=8, # temporal chunk for causal modeling
latent_dim=32
)
# Train on base video dataset
ae.train(
video_dataset=your_videos,
reconstruction_loss="l2",
perceptual_loss_weight=0.1,
epochs=50,
batch_size=4
)
Adapt pretrained diffusion model to compressed latent space:
# Two-stage adaptation: alignment + LoRA fine-tuning
from dc_videogen import AEAdaptV, LoRAAdapter
adapter = AEAdaptV(
base_model=pretrained_diffusion_model,
compression_ae=ae,
alignment_method="linear_projection"
)
# Stage 1: Embedding space alignment (10 H100 GPU days)
adapter.align_embeddings(
sample_videos=sample_set,
lr=1e-4,
epochs=5
)
# Stage 2: LoRA fine-tuning on full diffusion (trained weights)
lora_config = LoRAAdapter.Config(
r=8,
lora_alpha=16,
target_modules=["to_q", "to_v"],
lora_dropout=0.05
)
adapter.finetune_lora(
dataset=training_data,
config=lora_config,
epochs=10,
learning_rate=5e-5
)
When to use DC-VideoGen:
When NOT to use:
Hyperparameters:
Works with multiple base diffusion models:
Relates to efficient diffusion model inference and video compression literature.
testing
Uses flow maps as look-ahead operators to enable principled reward-guided diffusion by predicting trajectory endpoints at any denoising step. Deploy when applying rewards or preferences to diffusion trajectories with meaningful gradients throughout generation.
testing
Train language models where each expert learns independently on closed datasets, enabling flexible inference with selective data inclusion or exclusion. 41% performance improvement while allowing users to opt out of specific data sources without retraining.
data-ai
Understand how token generation flexibility in diffusion LMs paradoxically constrains reasoning, as models exploit ordering flexibility to avoid uncertain tokens, and apply simplified approaches that preserve parallel decoding benefits. Use when optimizing diffusion-based language models for reasoning tasks.
devops
Enable LLM agents to improve continuously during deployment by constructing structured experience libraries through self-reflection on successes and failures—achieving 23% improvement on reasoning without gradient-based parameter updates or external training.