Closed leeyiding closed 2 months ago
I would need to look further into this project specifically but we disable stack execution by default, https://github.com/nanovms/nanos/blob/master/SECURITY.md as it's a massive security issue
sorry - just coming back to this now..
if you change this line:
https://github.com/nanovms/nanos/blob/master/src/unix/exec.c#L74
to
ivmap(VMAP_FLAG_STACK | VMAP_FLAG_READABLE | VMAP_FLAG_WRITABLE | VMAP_FLAG_EXEC,
you can disable the stack exec protection; although this is not recommended from a security pov
then I was able to bump the memory and run it:
ops run build/web_demo -p 8080 -c config.json -m 4g
also on src/tokenizer.cpp in mnn-llm I had to throw in:
#include <climits>
Thank you very much for your answer, I will try it.
Hello, I am trying to run the project wangzhaode/mnn-llm in nanos, but some errors occurred. I cannot search for relevant solutions, so I would like to ask for some help.
According to the project's README, I did the following
After that, I try to create the nanos application
An error occurred after running:
According to the search engine results, it may be caused by
selinux
, but the Ubuntu I am using does not enableselinux
.