快讯6 条
快讯3 条 · 可滚动
本站于 2026-10-19 补核;官方发布日期为 2026-10-17。

出处:DeepSeek 官方文档 · 更新日志官方

本站于 2026-10-19 补核;官方发布日期为 2026-10-14。

出处:xAI · API Release Notes官方

本站于 2026-10-19 补核;官方发布日期为 2026-10-13。

出处:Gemini API · Release notes官方

开源项目解析

musubi-tuner

视频模型的 LoRA 训练器。同一套代码训 Wan 2.1/2.2、HunyuanVideo、FramePack、Qwen-Image 等多条线。

视频模型的 LoRA 训练器一套代码覆盖多个底座12GB 也能训
无 LICENSE 文件 有条件商用★ 2.1k 98 星/月最后更新 2026-10-12 · 距核验日 0 个月仓库 ↗

许可证附加条件:仓库根目录没有 LICENSE 文件;README 声明大部分代码 Apache-2.0,hunyuan_model 等目录随上游许可

读懂层

2 张 · 架构图 / 流程图

架构图一套训练器覆盖了什么

Code Entity Space (pyproject.toml)

Natural Language Space

Musubi Tuner System

Training Environment

Memory Optimization

Gradio Interface

[project]

dependencies

[project.optional-dependencies]

accelerate==1.6.0

diffusers==0.32.1

transformers==4.57.6

bitsandbytes

av==14.0.1

gradio>=4.0.0, <6.0.0

DeepWiki 架构页 · 抓取 2026-08-16 · 核验 2026-08-16

流程图显存是怎么省下来的

Code Entities

Offloads to CPU

Removes D2H overhead

Pre-calculates

Reduces Activation Memory

Manages

Memory Optimization Logic

Block Swapping
(BlockSwapConfig)

H2D-only Mode
(--block_swap_h2d_only)

Latent Caching
(cache_latents.py)

Gradient Checkpointing
(gradient_checkpointing)

NetworkTrainer class

DiT Transformer Blocks

VAE / Autoencoder

DeepWiki 架构页 · 抓取 2026-08-16 · 核验 2026-08-16

每个底座一组脚本(`wan_*` / `hv_*` / `fpack_*` …),都汇到 `library/train_util.py` 与 `networks/lora.py`。省显存靠两招:把 DiT 的块在 CPU 与 GPU 之间轮换(BlockSwapConfig),以及先把 VAE 隐变量与文本编码结果缓存到磁盘(cache_latents.py)。

它管哪几个决定

角色跨镜头一致角色参考 · 多参考 · LoRA
7/10 家有官方说法
画面构图线稿 / 姿势 / 深度约束

自持能力

权重在不在本地可下载到本地
种子能不能填可填
换掉它要动几处几处

本地训练,产出是 LoRA 文件;底座换一个就换一组脚本

动手层

文档代码结构踩过的坑实测 未做

装它要过哪几关

  1. 1装 torch按显卡选 cu124 / cu128 / cu130 三条源之一
  2. 2`pip install -e .`另外还要 `pip install ascii-magic matplotlib tensorboard prompt-toolkit`
  3. 3配 accelerate问到「只用 CPU 吗」要答 NO —— 答错了训练会静悄悄跑在 CPU 上

改哪个文件能改什么

wan_train_network.py 等一个底座一个入口脚本。要训哪个模型就跑哪个
library/train_util.py训练主循环与通用参数。所有底座共用这一份
cache_latents.py隐变量预缓存。显存不够时这一步是必跑的

坑在哪一处

带 issue 编号的来自:github issues 按回复数排序 · 核验 2026-08-16

显存不够issue #46「Training on videos failed with OOM」回复 30 条(已关闭)—— 12GB 要同时压分辨率到 960×544、开 `--blocks_to_swap` 和 `--fp8_llm`,缺一样就爆
许可证根目录没有 LICENSE 文件。README 说其余代码 Apache-2.0,但 `hunyuan_model`、`hunyuan_video_1_5` 两个目录随上游腾讯许可 —— 而那份许可排除欧盟、英国、韩国
accelerate 配置配置向导问「是否只用 CPU」,答错不报错,只是慢到离谱
块交换的环形缓冲`--block_swap_ring_size` 默认 2,设成 1 最省显存,但要配合 `--gradient_checkpointing`

教程

官方文档、作者本人的视频,以及 ComfyUI 官方给的原生工作流示例。每条都验过还打得开。

项目自述

以下是仓库 README 的开头部分(原文引用,抓取 2026-08-17)。读全文 ↗

Musubi Tuner

English | 日本語

Table of Contents

Click to expand

- Musubi Tuner
  - Table of Contents
  - Introduction
    - Sponsors
    - Support the Project
    - Recent Updates
    - Releases
    - For Developers Using AI Coding Agents
  - Overview
    - Hardware Requirements
    - Features
    - Documentation
  - Installation
    - pip based installation
    - Windows on ARM64
    - uv based installation
    - Linux/MacOS
    - Windows
  - Model Download
  - Usage
    - Dataset Configuration
    - Pre-caching and Training
    - Configuration of Accelerate
    - Training and Inference
  - Miscellaneous
    - SageAttention Installation
    - PyTorch version
  - Disclaimer
  - Contributing
  - License

Introduction

This repository provides scripts for training LoRA (Low-Rank Adaptation) models with HunyuanVideo, Wan2.1/2.2, FramePack, FLUX.1 Kontext, FLUX.2 dev/klein, Qwen-Image, Z-Image, and MiniMax-H3 architectures.

This repository is unofficial and not affiliated with the official repositories of these architectures.

*This repository is under development.*

Sponsors

We are grateful to the following companies for their generous sponsorship:

Support the Project

If you find this project helpful, please consider supporting its development via GitHub Sponsors. Your support is greatly appreciated!

Recent Updates

GitHub Discussions Enabled: We've enabled GitHub Discussions for community Q&A, knowledge sharing, and technical information exchange. Please use Issues for bug reports and feature requests, and Discussions for questions and sharing experiences. Join the conversation →

- September 27, 2026
    - Updated the dependencies in pyproject.toml: transformers 4.57.6 -> 5.17.0, diffusers 0.32.1 -> 0.40.0, accelerate 1.6.0 -> 1.15.0, huggingface-hub 0.34.3 -> 1.32.0. PR #1139
        - This is mainly a security maintenance update (the 4.x line of transformers and diffusers < 0.38 no longer receive fixes). The previous versions of the libraries still work with this release, so you do not have to update them immediately, but it is recommended to run pip install -e . again in your environment at your earliest convenience.
        - diffusers 0.40 requires PyTorch 2.6 or later, so PyTorch 2.6.0 or later is now required.
        - transformers 5.6 changed the internal structure of CLIPTextModel, and in 5.x CLIPTokenizer no longer applies the ftfy text normalization of the original CLIP tokenizer (straightening curly quotes, converting full-width characters, etc.). Musubi Tuner handles both, so loading CLIP-L checkpoints and the text encoder outputs of HunyuanVideo, FramePack, FLUX.1 Kontext and Kandinsky 5 are unchanged from previous versions.
        - transformers 5.6 switched the attention implementation of T5 (T5-XXL of FLUX.1 Kontext, byT5 of HunyuanVideo 1.5) to SDPA, which is faster and uses less memory. The bf16/fp16 outputs of T5 differ very slightly from previous versions (the accuracy against fp32 is the same). This may change generated images or trained weights in minor details; cached text encoder outputs from previous versions are still usable. The outputs of the other text encoders are identical.
        - The text encoder out

……(后略,见原文)

判断

优势

  • 这一格里唯一在维护的(今天还有提交)—— sd-scripts 管图,它管视频
  • 一套代码覆盖 Wan、HunyuanVideo、FramePack、Qwen-Image 多个底座,不用每换一个模型换一套训练器
  • 12GB 也能训图像 LoRA,靠的是块交换与预缓存,不是砍质量
  • 作者就是 sd-scripts 的 kohya,参数命名与习惯一脉相承

局限

  • 仓库根目录没有 LICENSE 文件 —— 只有 README 里一段说明,且各目录随上游,商用前要逐目录看
  • 星数只有 1994,遇到问题能搜到的中文资料很少
  • 视频训练 24GB 起,消费级里只有 3090/4090 这一档够
  • OOM 是最常撞的墙(issue #46,回复 30 条)

不适用

只训图片 LoRA 的人 —— 那是 sd-scripts 的活,用这个是绕远路。

同管这些决定的其它项目

ComfyUI节点式工作流底座。图像 / 视频 / 音频 / 3D / 文本共用一个底座。…MiniMax H3全模态生成:文字、图片、视频、音频进同一个 Transformer,出带 32kHz…ControlNet给扩散模型加条件控制。九种结构信号:Canny 边缘、直线、HED 边界、涂鸦、人体…IP-Adapter用图片当提示词,锁住风格或人物。仅 22M 参数。…InstantID一张脸照做身份保持生成,零样本、免调优。…kohya sd-scripts训练脚本集:覆盖 SD1.x/2.x、SDXL、SD3/3.5、FLUX.1;202…DiffSynth-Studio魔搭扩散模型工程框架,覆盖图像、视频、音乐推理与训练;近期加入 FLUX.3、MOS…火宝短剧基于 AI 的一站式短剧生成平台,从剧本到成片全自动化。…ToonflowAI 创作平台:无限画布、AI Agent、可视化工作流,支持图像、视频、分镜和短剧…infinite-canvas面向 AI 创作的无限画布工作台:生图、参考图编辑、视频生成、Agent 助手、画布…open-ai-canvas面向 AI 影视创作的无限画布:多模态生成、分镜编排、素材管理、Agent 工作流。…VOZEB PRO把统一创作 Agent、画布、短剧生产线、素材库和商业运营后台放进同一套 Next.…OpenMontage让 Agent 编排视频生产:通过声明式流水线组织素材、生成、字幕、音频与合成。…Generative Media Skills给 Agent(Claude Code / Cursor / Gemini CLI)…motion-skills动效技能索引:55 个技能分成 18 个安装包,覆盖短视频、数据动画、网页动效、3D…ComfyUI-ManagerComfyUI 的节点管理器:装节点、装模型、修依赖、查注册表。ComfyUI 生态…ComfyUI-WanVideoWrapper把 Wan 系列模型接进 ComfyUI 的节点包。社区里跑 Wan 的事实标准封装…ComfyUI 官方工作流模板ComfyUI 内置的那批官方工作流模板与子图蓝图的真身仓库。…waoowaoo把一部小说灌进去,自动拆角色、拆场景、出分镜,再合成整集短剧。中英双界面。…JellyfishAI 短剧的端到端工作台:从剧本进,到分镜、角色一致性管理、出片、导出。…魔因漫创桌面端 AI 影视工具(Electron):剧本 → 角色 → 场景 → 导演 → …BigBanana AI Director一站式 AI 短剧 / 漫剧工作台,四阶段:剧本 → 视觉资产 → 分镜制作 → 导…ClipForge带货短视频专用的一站式工具:上传商品图,自动提炼卖点、写种草脚本、配音配字幕加背景乐…Open AI UGC生成 UGC 风格的口播广告:用多个视频模型出真人感的 AI 演员念你的脚本。定位是…LiveTalking实时交互流式数字人引擎,音视频同步对话。支持 ernerf、musetalk、wav…Drama Skills面向编剧与漫剧工作室的短剧创作流水线:十个技能把一个点子或一部长篇材料,一路做成分集…AI Shortfilm Prompts一个 Claude Code 技能:把任意一个想法变成电影语言的、模型直接能用的视频…Awesome Seedance 2 Prompts整理好的 Seedance 2.0 视频提示词库,README 自述逾六千条,覆盖电…歸藏的提示词库中文 AI 圈里流传最广的个人提示词仓库之一,存放作者为各家模型撰写的提示词。…MidJourney 风格与关键词参考一份带示例图的风格与关键词对照表:同一个提示词加不同风格词,画面变成什么样,逐个列出…AI Visual Prompt Cookbook171 套结构化提示词风格、342 张预览;JSON 模板支持 v2.1 / v2.…

github README + GitHub API + DeepWiki 架构页 · 核验 2026-10-19 | 判断栏可报错。