Flow Matching CIFAR-10 (lecture weights)
Lecture weights for an introductory Flow Matching notebook (Japanese). The notebook downloads weights.pt and checks its SHA-256 before use.
- Objective: Conditional Flow Matching with the straight (OT) conditional path of Lipman et al. (2023),
sigma_min = 1e-4. Noise and images are paired independently, with no minibatch OT. - Model: TorchCFM U-Net (
UNetModelWrapper, commit7c653857). 128 channels, 2 residual blocks, channel multipliers [1, 2, 2, 2], attention at 16×16 with 4 heads, dropout 0.1. 35.7M parameters. - Training:
- CIFAR-10 train split (50,000 images), unconditional; pixels scaled as
x / 128 - 1; horizontal flip. - Adam, learning rate 2e-4 with 5k warmup, batch size 128, gradient clipping 1.0.
- 100,000 updates in BF16 on one A100 (about 5 hours). Seed 20261025.
- CIFAR-10 train split (50,000 images), unconditional; pixels scaled as
- Weights: EMA weights with decay 0.9999.
- Sampling: the midpoint ODE solver with 50 steps (100 network evaluations) gives recognizable objects. FID has not been evaluated.
The file is a torch.save dict with the keys format (fm_cifar10_lecture_v1), step, config, model_state and provenance. Load it with torch.load(path, weights_only=True).
SHA-256: d92e908b2f1f3e6820fd00ce544806a301a03988a27947169edfa7ab4b69db60