Integrating Kalosm into a Next.js App #383
Unanswered
armelhbobdad
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Kalosm doesn't compile to wasm yet, so you need to create native bindings if you want to use it in Node. In the future, the new fusor runtime should enable WebGpu support for web apps. Kalosm will handle downloading the models at runtime if you point to huggingface or you can load a model you have already downloaded. I haven't done anything with node bindings before so I'm not sure how they effect performance or what the typing interface looks like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
👋 Hello @ealmloff and floneum maintainers,
I’m exploring how to embed the Kalosm Rust crate (the core of Floneum’s AI stack) directly into a Next.js application’s server-side code. I’ve identified two main paths:
Native Node Addon via NAPI-RS
.nodefilesWebAssembly Module via wasm-pack
I’d love to gather your thoughts on:
.d.tssupport for Kalosm bindings?Thank you for any guidance or examples you can share! 🙏
Beta Was this translation helpful? Give feedback.
All reactions