ctransformers icon indicating copy to clipboard operation
ctransformers copied to clipboard

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

Open deveolper opened this issue 2 years ago • 3 comments

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."

deveolper avatar Dec 02 '23 11:12 deveolper

@deveolper struggling with the same.

jalajc avatar Dec 15 '23 19:12 jalajc

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

deveolper avatar Dec 15 '23 19:12 deveolper

@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.

jalajc avatar Dec 15 '23 19:12 jalajc