Closed nico-martin closed 5 months ago
Hi @tlopex, I have the impression that you are on a Windows machine; have you run into this issue before?
I digged deeper and tried to build 3rdparty/tvm-unity/web manually, which fails:
But the IDE can resolve it. So I renamed tvmjs_runtime_wasi.d.ts
to tvmjs_runtime_wasi.ts
. Which allowed me to build the lib. But running the .\scripts\prep_deps.sh
would still produce the same error.
So I published 3rdparty/tvm-unity/web
on npm (https://www.npmjs.com/package/@nico-martin/tvmjs ) to install it the "normal way". This way I was able to install @nico-martin/tvmjs
and I was finally able to build web-llm.
Wouldn't it make sense to publish 3rdparty/tvm-unity/web
on npm so everyone could use this version instead of building it themselfs?
@CharlieFRuan is there a reason you did not implemented it in a way like this? https://github.com/nico-martin/web-llm/tree/build-problem-windows
@CharlieFRuan Sorry for late reply. I haven't encountered this problem before. @nico-martin Have you tried to rebuild it again? Sometimes installing again can solve the issue.
Yes, I tried it multiple times, deleted everything, but no luck..
@tlopex Thanks for sharing!
@nico-martin I guess the main reason prep_deps.sh
fails is the make
under tvm-unity/web
fails, and I am still confused about why that fails on your device; failing make
is probably why you needed to rename tvmjs_runtime_wasi.d.ts
.
Glad you figured it out your own. And this is a good idea, we'll make tvmjs an npm package soon. Thanks for the suggestion!
Hi there, I am trying to build web-llm locally on my Windows machine. But it fails to build the dependencies.
First, does anyone have an idea how to fix this?
Second, is there a reason that we have to build those dependencies on each machine that wants to build
web-llm
? Wouldn't it be possible to ship the prebuilt3rdparty
Scripts within the git repo?