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

Update get_started.ipynb #342

Merged
merged 3 commits into from
Apr 2, 2024
Merged

Update get_started.ipynb #342

merged 3 commits into from
Apr 2, 2024

Conversation

windmaple
Copy link
Contributor

Description of the change

Pre-allocate 90% of TPU memory to minimize memory fragmentation and allocation overhead in Gemma getting started tutorial

Motivation

otherwise it OOMs when batching 2 prompts on Colab T4.

Type of change

Choose one: doc

Checklist

  • I have performed a self-review of my code.
  • I have added detailed comments to my code where applicable.
  • I have verified that my change does not break existing code.
  • My PR is based on the latest changes of the main branch (if unsure, please run git pull --rebase upstream main).
  • I am familiar with the Google Style Guide for the language I have coded in.
  • I have read through the Contributing Guide and signed the Contributor License Agreement.

Pre-allocate 90% of TPU memory to minimize memory fragmentation and allocation overhead in Gemma getting started tutorial; otherwise it OOMs when batching 2 prompts.
@windmaple windmaple requested a review from a team as a code owner April 2, 2024 03:27
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:documentation Update docs labels Apr 2, 2024
@windmaple
Copy link
Contributor Author

@pcoet for a quick review

@pcoet pcoet merged commit da44a67 into google:main Apr 2, 2024
4 checks passed
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants