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

core dumped #5

Closed
MarsMeng1994 opened this issue Feb 26, 2024 · 2 comments
Closed

core dumped #5

MarsMeng1994 opened this issue Feb 26, 2024 · 2 comments

Comments

@MarsMeng1994
Copy link

when i use cmd like:
./build/bin/main --model quantized.bin --prompt \"{}\"".format(prompt)

it going to core dumped like:
<AI> ggml_new_tensor_impl: not enough space in the scratch memory pool (needed 292106304, available 150994944) Segmentation fault (core dumped)

how to fix?

@foldl
Copy link
Owner

foldl commented Feb 26, 2024 via email

@foldl
Copy link
Owner

foldl commented Mar 3, 2024

@MarsMeng1994 You can enlarge this value, such as:

static constexpr size_t SCRATCH_SIZE = 344ull * 1024 * 1024;

See also Issue #6.

@foldl foldl closed this as completed Mar 3, 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