Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shizheng-rlfresh/6d7286db1838ae4f89d8332a442b948b to your computer and use it in GitHub Desktop.
Save shizheng-rlfresh/6d7286db1838ae4f89d8332a442b948b to your computer and use it in GitHub Desktop.
Custom Pytorch Fine-tune Gemma 7B 4bit model through `Unsloth AI` FastLanguageModel
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shizheng-rlfresh
Copy link
Author

This notebook demos how to unbox and SFTtrainer class from HF implementation in trl library.
The current status reveals still 15% more memory consumption on T4.

Thanks @unslothai for providing a newly implemented FastLanguageModel and free notebook template to the community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment