sd-scripts icon indicating copy to clipboard operation
sd-scripts copied to clipboard

Adam-mini

Open sdbds opened this issue 1 year ago • 7 comments

Tested batch size 1 can use about 16GB of VRAM.

sdbds avatar Aug 17 '24 22:08 sdbds

Thank you, that looks good!

Is the Adam_mini code from some repository? If so, please let me know so I can add the reference source and the license.

kohya-ss avatar Aug 18 '24 00:08 kohya-ss

Thank you, that looks good!

Is the Adam_mini code from some repository? If so, please let me know so I can add the reference source and the license.

code from here and i think we should test for different blocks. Officail says reduce 50% VRAM but i just found reduce 20%... I changed block checked for lora part. https://github.com/zyushun/Adam-mini

sdbds avatar Aug 18 '24 01:08 sdbds

Thank you, that looks good! Is the Adam_mini code from some repository? If so, please let me know so I can add the reference source and the license.

code from here and i think we should test for different blocks. Officail says reduce 50% VRAM but i just found reduce 20%... I changed block checked for lora part. https://github.com/zyushun/Adam-mini

this sounds amazing half VRAM of Adam for same performance

ah only 20% vram usage :/ did you got good results with it? par with Adam for real?

FurkanGozukara avatar Aug 18 '24 03:08 FurkanGozukara

Thank you, that looks good! Is the Adam_mini code from some repository? If so, please let me know so I can add the reference source and the license.

code from here and i think we should test for different blocks. Officail says reduce 50% VRAM but i just found reduce 20%... I changed block checked for lora part. https://github.com/zyushun/Adam-mini

this sounds amazing half VRAM of Adam for same performance

ah only 20% vram usage :/ did you got good results with it? par with Adam for real?

At least on the SDXL I tested it works about the same.

sdbds avatar Aug 18 '24 04:08 sdbds

@sdbds thanks a lot for answer

do you think adafactor or mini adam would save more vram have you compared?

FurkanGozukara avatar Aug 18 '24 23:08 FurkanGozukara

I'm curious about the difference in performance between CAME and adam-mini https://github.com/kohya-ss/sd-scripts/pull/1409

turbo-boo avatar Aug 21 '24 08:08 turbo-boo

Is this PR includes #1417, or is it better to merge #1417 first?

kohya-ss avatar Aug 24 '24 12:08 kohya-ss