$ show NVIDIA/DreamDojo
DreamDojo is an application repository for training and deploying world foundation models, particularly focused on robotics applications. The system provides end-to-end capabilities for training Cosmos Predict2 models, generating text/video-to-video outputs, action-conditioned video generation for robot control, and model distillation for efficient inference. It features a modular architecture with Hydra-based configuration, distributed training support (FSDP, tensor parallelism, context parallelism), and interactive Gradio demonstrations. The codebase includes sophisticated safety filtering mechanisms and is designed for deployment via Docker containers.
The LLM identified 5 files worth highlighting for reuse:
Unified storage abstraction layer supporting local, S3, HTTP, and other backends through a clean handler-based interface. Demonstrates excellent plugin architecture design where each storage backend implements a standard interface, allowing new backends to be added without modifying core logic. Includes smart features like automatic authentication handling and connection pooling.
Sophisticated plugin architecture for attention mechanisms supporting multiple backends (FlashAttention v2/v3, cuDNN, NATTEN, SDPA) with a unified interface. Handles complex differences between attention implementations while providing consistent API, including capability checking, fallback mechanisms, and specialized handling for different backend requirements.
Robust checkpointing system handling Exponential Moving Average (EMA) models, tensor parallelism, and multiple checkpoint formats (standard PyTorch, DCP). Manages complexities of distributed training checkpoints while maintaining consistency across parallelism strategies, with clean separation between DDP, FSDP, and TP strategies.
Flexible callback system using template method pattern with EveryN base class that executes callbacks at specified intervals. Creates extensible training monitoring system that decouples training logic from monitoring concerns, allowing easy addition of new callback types without modifying core training loop.
Sophisticated lazy configuration system using LazyCall and LazyDict patterns with Hydra integration. Defers object instantiation until needed for complex configuration compositions and overrides, includes registry patterns for pluggable components, and supports sophisticated configuration hierarchies.