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

Get qlora mistral-7b fine tuning working on a single 4090 #708

Merged
merged 1 commit into from
Oct 10, 2023

Conversation

lukemarsden
Copy link
Contributor

@lukemarsden lukemarsden commented Oct 9, 2023

Sets micro_batch_size from 4 to 2 in the mistral/qlora.yml example. With this change, qlora fine tuning of mistral-7b fits on a single 4090, per https://twitter.com/Teknium1/status/1709750388528939473.

I tried a few different values of micro_batch_size and gradient_accumulation_steps, as suggested by the readme, but I'm not an expert so please advise if there's a better way to do this.

image
image
Screenshot from 2023-10-09 17-15-49

Copy link
Collaborator

@NanoCode012 NanoCode012 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, this would be helpful for most home users.

@NanoCode012 NanoCode012 merged commit 295b266 into axolotl-ai-cloud:main Oct 10, 2023
mkeoliya pushed a commit to mkeoliya/axolotl that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants