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

Unclear error: GGML_ASSERT: D:\a\ctransformers\ctransformers\models\ggml/llama.cpp:453: data #189

Open
deveolper opened this issue Dec 2, 2023 · 3 comments

Comments

@deveolper
Copy link

GGML_ASSERT: D:\a\ctransformers\ctransformers\models\ggml/llama.cpp:453: data

I get this error sometimes when loading a model. At first, I thought it was a corrupted model, and I redownloaded it which fixed the issue. However, later, the issue reappeard, and the metadata of the file showed that it hasn't changed since I redownloaded it. After a lot of digging into the code of ctransformers, I concluded that it is probably a problem with not having enough memory, so I increased the swapfile and it resolved the issue completely.

Please do something to make this error more clear. Maybe throw a Python "MemoryError". That at least sends me in the right direction to finding a solution.

PS. I do understand that this error might be triggered in multiple ways, not just by a MemoryError. So, I suggest adding a line to the error that says something like "this could be a memory-error. Please make sure you have enough memory available."

@jalajc
Copy link

jalajc commented Dec 15, 2023

@deveolper struggling with the same.

@deveolper
Copy link
Author

@jalajc, does increasing the size of the swapfile solve the issue for you too?

@jalajc
Copy link

jalajc commented Dec 15, 2023

@jalajc, does increasing the size of the swapfile solve the issue for you too?

Yes.

Apparently I was on wsl2 Ubuntu jammy and the default settings didn't allow much of Ram.
But your comment thankfully hinted me to check memory inside, otherwise I was assuming I had enough memory.

Atleast the error could be more specific.

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