本项目在 6 周(2026-06-06 至 2026-06-07)内完成了计划中的 17/18 个任务。以下按分类列出所有产出。
| 编号 | 页面 | 内容 | 状态 |
|---|---|---|---|
| - | index.html | 知识库首页导航 | 已完成 |
| 01 | 01_任务总览.html | 项目目标、路线选择、成果总览 | 已完成 |
| 02 | 02_老引擎审计.html | minivLLM 复用决策(T3) | 已完成 |
| 03 | 03_现代diffusion推理最小背景.html | 推理数据流入门(T5) | 已完成 |
| 04 | 04_rectified_flow和flow_matching.html | Rectified Flow 理论 + toy 实现(T8) | 已完成 |
| 05 | 05_diffusion_transformer架构.html | DiT 架构(T8) | 已完成 |
| 06 | 06_stable_diffusion_3_mmdit.html | SD3 MMDiT 详解(T8) | 已完成 |
| 07 | 07_flux和现代文生图推理.html | FLUX 推理系统(T8) | 已完成 |
| 08 | 08_sana高效高分辨率生成.html | Sana 高效架构(T8) | 已完成 |
| 09 | 09_sora_style视频生成架构.html | Sora-style 视频架构(T15) | 已完成 |
| 10 | 10_wan_hunyuan_cogvideox_ltx视频模型.html | 视频模型对比(T15) | 已完成 |
| 11 | 11_diffusion推理系统优化.html | 系统优化技术 + 与 LLM 差异(T18) | 已完成 |
| 12 | 12_diffusion_gemma.html | DiffusionGemma 架构与推理 | 已完成 |
| 13 | 13_最终成果说明.html | 本页,成果汇总(T18) | 已完成 |
learning/papers/01-10_*.md)learning/notes/01-10_*.md)diffusion_engine/core/:scheduler、rectified_flow、timestep_embedding、attention、transformer_block、dit、text_conditioning、pipeline、memory_manager、vae_stubdiffusion_engine/tests/:36 个 pytest 测试toy_rectified_flow/:toy 矢量场 + trajectory(含 PNG + JSON)toy_dit_inference/:最小 DiT denoising loopreference_image_inference/:3 个模型脚手架 + profiler + blocker 记录reference_video_inference/:3 个模型脚手架 + 3 个 blocker 占位文件diffusion_inference_optimization/:6 个系统优化实验(含 JSON + Markdown 结果)reports/engine_inventory.md:旧引擎 14 模块审计reports/week_1.md ~ week_6.md:6 周周报reports/final_report.md:最终报告# 2D 矢量场仿真,输出 trajectory PNG + JSON python experiments/toy_rectified_flow/infer_toy_flow.py --seed 0 --steps 8 --output_dir results
# 最小 DiT denoising loop,输出 64x64 图像 python experiments/toy_dit_inference/infer_tiny_dit.py --device cpu --steps 8
# Sana 0.6B(首选验证项,Apache 2.0,无需授权) python experiments/reference_image_inference/run_sana_if_possible.py \ --prompt "一只柴犬在樱花树下" # SD3 Medium(需 HF token + license accept) python experiments/reference_image_inference/run_sd3_medium_if_possible.py \ --prompt "一只柴犬在樱花树下" --no_t5 # FLUX.1-schnell(需 HF token + license accept,4 steps) python experiments/reference_image_inference/run_flux_schnell_if_possible.py \ --prompt "一只柴犬在樱花树下"
# CogVideoX-2B(首选验证项,Apache 2.0) python experiments/reference_video_inference/run_cogvideox_if_possible.py \ --prompt "一只猫在草地上奔跑" --num_frames 16 --width 256 --height 256 # LTX-Video 2B distilled(备选验证项,开放协议) python experiments/reference_video_inference/run_ltx_video_if_possible.py \ --prompt "一只猫在草地上奔跑" --num_frames 16 --width 256 --height 256
python experiments/diffusion_inference_optimization/run_all_benchmarks.py
python -m pytest diffusion_engine/tests -q
run_sana_if_possible.py(Sana 0.6B,无授权障碍,显存友好)run_cogvideox_if_possible.py(CogVideoX-2B,小规格 16f×256²)6 周内完成了 17/18 个任务,包括 13 页静态文档、20 篇学习资料、10 个模块(36 个测试)、5 组实验目录和 8 份报告。远程 GPU 环境尚未就绪,真实 reference inference 因此没有运行;执行脚本已经准备好。系统实验记录了 prompt embedding cache(52% hit)、latent buffer(91.8% allocation 节省)和 CFG batching(1.01-1.02× 加速)。attention memory 按 O(N²) 增长,显存受限时生成高分辨率图像需要 memory-efficient attention。
本页汇总全部产出并提供运行命令。扩散引擎的实现细节分布在 02-11 各页中:02(为什么新建)、03(数据流)、04-05(算法)、06-08(模型对比)、09-10(视频)、11(系统优化);README.md 提供快速运行命令。