antimatter15 / alpaca.cpp

Locally run an Instruction-Tuned Chat-Style LLM
MIT License
10.25k stars 910 forks source link

Avoid segfault from malloc failure #221

Open mnahinkhan opened 1 year ago

mnahinkhan commented 1 year ago

Most systems should be able to allocate 500MBs, but just in case, I think this check should be there.