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

How to solve the 'RESOURCE_EXHAUSTED' error when loading 'gemma2_instruct_2b_en' (the script is from kaggle and runs on colab with TPU)? #72

Open
nicewang opened this issue Oct 13, 2024 · 3 comments
Assignees
Labels
type:support Support issues

Comments

@nicewang
Copy link

nicewang commented Oct 13, 2024

How to solve the 'RESOURCE_EXHAUSTED' error when loading 'gemma2_instruct_2b_en' (the script is from kaggle and runs on colab with TPU)? Errors shown following:
Image

The environment is the colab opened from kaggle notebook, and with TPU v2-8 accelerator, and:
RAM:6.02 GB/334.56 GB
Disk:22.13 GB/225.33 GB

Had changed the XLA_PYTHON_CLIENT_MEM_FRACTION from 0.1 to 1.00, but seems useless:
Image

@Gopi-Uppari Gopi-Uppari self-assigned this Oct 14, 2024
@Gopi-Uppari Gopi-Uppari added the type:support Support issues label Oct 15, 2024
@Gopi-Uppari
Copy link
Collaborator

Gopi-Uppari commented Oct 15, 2024

Hi @nicewang,

I encountered the same issue when running on Google Colab with the runtime set to TPU v2-8, but it worked fine on Kaggle with the TPU VM v3-8 runtime. Could you please refer to this Gist file

@pengchongjin Could you please take a look at the issue.

Thank you.

@nicewang
Copy link
Author

Thx @Gopi-Uppari ,

I had followed your shared colab file, and finally succeeded both on Kaggle with TPU VM v3-8 and colab with TPU v2-8.

Further, I am just curious about whether there is any dependencies conflicts issues? since I just changed my dependencies installation from:
Image
to:
Image

@Gopi-Uppari
Copy link
Collaborator

Hi @nicewang,

I'm glad it worked for you, that could possibly be the reason for the dependency conflicts.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:support Support issues
Projects
None yet
Development

No branches or pull requests

2 participants