You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great work on shumai! I'm very new to bun specifically and javascript in general, but I love the idea.
I am trying to import shumai into an html page I'm building and am curious how all the pieces work together.
I have @shumai/shumai installed via bun and can import it using ES6 syntax into a .js file no problem.
I run bun bun which generates a node_modules.bun which can be copied into node_modules.js by running ./node_modules.bun > node_modules.js
I can then import a script module <script type="module" src="node_modules.js">...</script> which seems to work.
However, as is intended by bun, hashes are exported instead of the modules holding the same structure. So now importing and using sm doesn't expose the same API and randn or tensor for example aren't available.
In your time working with bun, have you figured out a supported way to do this? How would you suggest using shumai in a web page?
I appreciate your help
The text was updated successfully, but these errors were encountered:
Unfortunately, we don't have a browser backend yet. I'll leave this open as the web support tracking issue!
We'll probably want to use the kernels in TF.js and Paddle.js.
I'm curious to hear about your use case. Are you targeting portability (runs on phones etc) or would you be happy to use specific browsers (which comes with speed)?
Not mobile, I'm mostly interested in the "privacy" aspect of running everything client side. So speed and generality matter less than simply working. I like the tensor interface of Shumai. I'm happy to help out here if I can
Great work on shumai! I'm very new to bun specifically and javascript in general, but I love the idea.
I am trying to import shumai into an html page I'm building and am curious how all the pieces work together.
I have
@shumai/shumai
installed via bun and can import it using ES6 syntax into a.js
file no problem.I run
bun bun
which generates anode_modules.bun
which can be copied intonode_modules.js
by running./node_modules.bun > node_modules.js
I can then import a script module
<script type="module" src="node_modules.js">...</script>
which seems to work.However, as is intended by bun, hashes are exported instead of the modules holding the same structure. So now importing and using
sm
doesn't expose the same API andrandn
ortensor
for example aren't available.In your time working with bun, have you figured out a supported way to do this? How would you suggest using shumai in a web page?
I appreciate your help
The text was updated successfully, but these errors were encountered: