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

Segfault on large inputs? #37

Open
corani opened this issue Sep 22, 2023 · 2 comments
Open

Segfault on large inputs? #37

corani opened this issue Sep 22, 2023 · 2 comments

Comments

@corani
Copy link

corani commented Sep 22, 2023

When I run the the build/bin/main example with a larger input I get a segfault:

ggml_new_tensor_impl: not enough space in the context's memory pool (needed 271388624, available 260703040)
Segmentation fault

I can work around this by doing an N *= 2; near the bottom of bert_load_from_file, but obviously that isn't the right solution. It seems somewhere a calculation is off (probably with mem_per_token).

@ztkg257
Copy link

ztkg257 commented Mar 6, 2024

@corani is this issue solved by N *= 2, can you please let me know at what file and line need to change this. Thank you in advance.

@corani
Copy link
Author

corani commented Mar 6, 2024

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