Repository navigation
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 (
0model exceptions). - 19 algorithms ×
{lora, full}admitted pre-load (0finetune 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.
- 19 algorithms × 19 models = 361/361 pairs admitted pre-load (
- Enforced in
.agents/knowledge/constraints.md(#11a), risk escalation rules, skill routers, andtests/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, andTP/SP/CP). - Model-Agnostic DRaFT-K (
draft) & DRTune (drtune) (#407): Removed SD3.5-only, single-component"latent",DeepSpeed, andTP/CPrestrictions. Rebuilteuler_reward.pywithEulerSchedule,StructuredTrajectory+active_masks, decoupled denoiser-parameter gradient stepping, dynamicdifferentiable_decode_fields/differentiable_decode_modules,DDP/FSDP2/DeepSpeed ZeRO-2, andTP/SP/CP. Unifiedvalidate_euler_ode_schedulersacrossDRaFT-K,DRTune,ReFL, andDiffusionARTto admitFlowMatchEulerDiscreteSDEScheduler,UniPCMultistepSDEScheduler, andMiniMaxH3SDEScheduler. - DiffusionOPD (
diffusion-opd) Full-Weight, LoRA & Mixed Teachers (#408): Extended DiffusionOPD to all fourstudent × teachercombinations (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 trainingtime_shiftwith 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.