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

ggml_new_tensor_impl: not enough space in the context's memory pool #322

Closed
daulet opened this issue Jun 29, 2023 · 1 comment
Closed

ggml_new_tensor_impl: not enough space in the context's memory pool #322

daulet opened this issue Jun 29, 2023 · 1 comment

Comments

@daulet
Copy link
Contributor

daulet commented Jun 29, 2023

Looks like some kind of overflow issue similar to this.

ggml_new_tensor_impl: not enough space in the context's memory pool (needed 268443840, available 268435456)

A concrete repro: #321

One has to push the size of a net to reproduce, e.g. in example above it's GPT-2 like net with embedding size 6144 and num of layers 58.

@daulet
Copy link
Contributor Author

daulet commented Jun 30, 2023

Never mind, turns out I was exceeding the buffer during memory per token estimation, it had hardcoded 256MB initial buffer which I was exceeding.

@daulet daulet closed this as completed Jun 30, 2023
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

1 participant