Skip to content

Flow-Factory v0.6.1

Latest

Choose a tag to compare

@Jayce-Ping Jayce-Ping released this 30 Nov 00:54
9714dbc

Flow-Factory v0.6.1

Flow-Factory v0.6.1 achieves zero-exception four-axis orthogonality across all 19 registered algorithms × 19 registered model adapters × {lora, full} fine-tuning × standard distributed backends (local, DDP, FSDP2, DeepSpeed ZeRO-1/2) × shared TP/SP/CP model parallelism, enforced by the repository agent harness and executable cross-registry contract tests.

Highlights

Four-Axis Cartesian-Product Closure & Harness Enforcement

  • Zero-exception cross-registry closure (#407, #408):
    • 19 algorithms × 19 models = 361/361 pairs admitted pre-load (0 model exceptions).
    • 19 algorithms × {lora, full} admitted pre-load (0 finetune exceptions).
    • 19/19 models declare shared TP/SP/CP (tensor_parallel=True), sharded FSDP2 materialization, differentiable decoding, and lossless offline output codecs.
    • 19/19 trainers declare explicit context_parallel_training_capability, route full-output loss backward through _backward_full_output_loss(), and avoid ad-hoc leaf-trainer backend gates.
  • Enforced in .agents/knowledge/constraints.md (#11a), risk escalation rules, skill routers, and tests/hparams/test_execution_contracts.py.

Training Algorithms & Generalization

  • iTDM (itdm) (#404, #407): Added Instantaneous Trajectory Distribution Matching with deterministic DPM++ 2M rollouts (dpmpp_2m) and generalized it across all 19 image, video, and joint audio-video adapters (lora & full, ODE & SDE, active_masks, noise-ward & data-ward velocities, and TP/SP/CP).
  • Model-Agnostic DRaFT-K (draft) & DRTune (drtune) (#407): Removed SD3.5-only, single-component "latent", DeepSpeed, and TP/CP restrictions. Rebuilt euler_reward.py with EulerSchedule, StructuredTrajectory + active_masks, decoupled denoiser-parameter gradient stepping, dynamic differentiable_decode_fields/differentiable_decode_modules, DDP/FSDP2/DeepSpeed ZeRO-2, and TP/SP/CP. Unified validate_euler_ode_schedulers across DRaFT-K, DRTune, ReFL, and DiffusionART to admit FlowMatchEulerDiscreteSDEScheduler, UniPCMultistepSDEScheduler, and MiniMaxH3SDEScheduler.
  • DiffusionOPD (diffusion-opd) Full-Weight, LoRA & Mixed Teachers (#408): Extended DiffusionOPD to all four student × teacher combinations (lora+lora, full+full, lora+full, full+lora) and mixed multi-teacher runs via sharded DTensor slice loading (full_parameter_loading.py), local-slice LoRA merging (W_local + scale * (B_slice @ A_slice)), scoped named-parameter snapshots (trainable/base/all), and lightweight SHA-256 fingerprint exact-state resume (ExternalSnapshotIdentityChild).
  • Offline SFT & DPO Conditioning (#397, #398, #399, #400, #402, #403): Added model-specific SFT conditioning dropout across image, video, audio-video, and packed (BAGEL/SenseNova) adapters, shared model-input collation, and on-demand offline DPO condition encoding.
  • Continuous Training time_shift (#395): Aligned continuous training time_shift with noise odds (larger values favor higher noise; see migration guidance).
  • CI & Validation Tooling (#268, #405, #406): Accepted bounded contributor PR validation evidence comments and maintainer-merged fork PRs in CI, stabilized Wan SFT FP32 attention and DGPO continuation checks, and sped up TDM coordinate validation.

Full Changelog

v0.6.0...v0.6.1