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

Segmentation fault #11

Closed
kevin01881 opened this issue Dec 20, 2022 · 2 comments
Closed

Segmentation fault #11

kevin01881 opened this issue Dec 20, 2022 · 2 comments

Comments

@kevin01881
Copy link

Hello,

I tried to run GPT-2 and it worked fine. GPT-J however gives a Segmentation fault error (see attachment)

Could this be due to not having enough RAM? I only have 16 GB RAM and read that the model itself requires 16 GB RAM, so the 16 GB RAM would not enough (since only 60-70% is actually available for things other than the OS) but I figured the lacking GB's would be compensated with virtual RAM/swap/pagefile.

If it's due to insufficient RAM, I'll go and upgrade it to 32 GB later this month. But I'd like confirmation for that first before I spend the money! :)

Thanks!

segfault

@kevin01881
Copy link
Author

Edit: Just rented a Google cloud instance with 32 GB RAM and it's working fine. Turns out I just need to install some extra memory in my machine. I'll do that in a few weeks. Issue closed!

@espio999
Copy link

I know this topic is closed, though using swap would be solution for segmentation fault, especially for RAM is less than 8GB.
It is like this.
https://impsbl.hatenablog.jp/entry/GPTOnLinuxPCwith8GB-RAM_en

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

No branches or pull requests

2 participants