Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an 8-bit version with bitsandbytes #17

Open
lucidrains opened this issue Mar 8, 2023 · 5 comments
Open

add an 8-bit version with bitsandbytes #17

lucidrains opened this issue Mar 8, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@lucidrains
Copy link
Owner

https://github.com/TimDettmers/bitsandbytes/blob/main/compile_from_source.md

@lucidrains lucidrains added the enhancement New feature or request label Mar 8, 2023
@lucidrains lucidrains self-assigned this Mar 8, 2023
@lucidrains
Copy link
Owner Author

recent results have tipped me over to recommending this optimizer under the condition of high batch sizes (and mainstream architectures). will put some more work into it

@lucidrains
Copy link
Owner Author

@lucidrains
Copy link
Owner Author

if there are any CUDA / 8-bit optimizer experts in the crowd, would welcome a code review over at the bitsandbytes repository

@Qubitium
Copy link

@lucidrains Is there a reason behind the 64 per_device_train_batch_size threshold recommendation? With consumer 24gb gpus, it is almost impossible to train or finetune any meaningful model with that high batch size to take advantage of lion. It would be nice if lion is applicable to smaller batches? Thanks

@wukevin
Copy link

wukevin commented Jun 18, 2023

The original authors note that Lion likely doesn't show significant gains over AdamW under the small batch (<64) regime. See https://arxiv.org/pdf/2302.06675.pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants