Motus icon indicating copy to clipboard operation
Motus copied to clipboard

Expected convergence loss range for Wan fine-tuning loss?

Open dazazh opened this issue 10 months ago • 5 comments

First of all, thank you for this amazing repository! It has been very helpful for my research.

I am currently working on fine-tuning the Wan 2.2 based on your codebase. I have adhered to the default configuration and kept the hyperparameters consistent with your original settings (including learning rate, scheduler, etc.).

After training for approximately 5,000 steps, I noticed that the training loss is fluctuating within the range of 0.3 to 0.5. It doesn't seem to be decreasing significantly further.

My Questions:

  • Is this loss range (0.3 - 0.5) considered normal or expected for this specific video generation task?
  • Based on your experience, what is the typical loss value when the model converges?

dazazh avatar Jan 21 '26 05:01 dazazh

Do you solve the problem? May be we can discuss.

hanyangyu1021 avatar Jan 30 '26 12:01 hanyangyu1021

@dazazh @hanyangyu1021

Has this issue been resolved? Could you please explain the cause of it? I have encountered a similar problem in other scenarios, and I would appreciate the opportunity to discuss it further.

strive789 avatar Feb 03 '26 10:02 strive789

@dazazh @hanyangyu1021

Has this issue been resolved? Could you please explain the cause of it? I have encountered a similar problem in other scenarios, and I would appreciate the opportunity to discuss it further.

I simply removed the logic in the WAN module that appends action, und, and video tokens for self-attention. Specifically, I reverted WanSelfAttention in Motus/bak/wan/modules/model.py back to the original version used in WAN.

dazazh avatar Feb 04 '26 04:02 dazazh

您好,您是说只用wan在RoboTwin上面做视频生成训练,不加入action和und expert,然后video loss在0.3-0.5不下降吗?

     原始邮件

发件人:Yuhao Zhang(张钰浩) @.> 发件时间:2026年2月4日 12:52 收件人:thu-ml/Motus @.> 抄送:strive789 @.>, Comment @.> 主题:Re: [thu-ml/Motus] Expected convergence loss range for Wanfine-tuning loss? (Issue #18)

dazazh left a comment (thu-ml/Motus#18)

@dazazh @hanyangyu1021

Has this issue been resolved? Could you please explain the cause of it? I have encountered a similar problem in other scenarios, and I would appreciate the opportunity to discuss it further.

I simply removed the logic in the WAN module that appends action, und, and video tokens for self-attention. Specifically, I reverted WanSelfAttention in Motus/bak/wan/modules/model.py back to the original version used in WAN.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

strive789 avatar Feb 04 '26 08:02 strive789

问题应该解决了,这个前向过程应该就是在wan的基础上把action und token拼起来作为qkv,只要把selfattention block改回原来wan的wanselfattention就能实现纯wan的video finetune(没有仔细看,这样改完应该和wan2.2是完全对齐的)。之前的问题应该是自己代码哪里没改对,前向和原始的wan前向过程没有对齐,重改以后2w step loss可以到0.07

On Wed, Feb 4, 2026 at 4:30 PM strive789 @.***> wrote:

strive789 left a comment (thu-ml/Motus#18) https://github.com/thu-ml/Motus/issues/18#issuecomment-3846055818 您好,您是说只用wan在RoboTwin上面做视频生成训练,不加入action和und expert,然后video loss在0.3-0.5不下降吗?

原始邮件

发件人:Yuhao Zhang(张钰浩) @.> 发件时间:2026年2月4日 12:52 收件人:thu-ml/Motus @.> 抄送:strive789 @.>, Comment @.> 主题:Re: [thu-ml/Motus] Expected convergence loss range for Wanfine-tuning loss? (Issue #18)

dazazh left a comment (thu-ml/Motus#18)

@dazazh @hanyangyu1021

Has this issue been resolved? Could you please explain the cause of it? I have encountered a similar problem in other scenarios, and I would appreciate the opportunity to discuss it further.

I simply removed the logic in the WAN module that appends action, und, and video tokens for self-attention. Specifically, I reverted WanSelfAttention in Motus/bak/wan/modules/model.py back to the original version used in WAN.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

— Reply to this email directly, view it on GitHub https://github.com/thu-ml/Motus/issues/18#issuecomment-3846055818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWIM7MMN6I6JQY2X6HP2IB34KGUZPAVCNFSM6AAAAACSLQ5KAWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTQNBWGA2TKOBRHA . You are receiving this because you were mentioned.Message ID: @.***>

dazazh avatar Feb 04 '26 15:02 dazazh