azohra
azohra4w ago

ONNX fails in Deno Deploy

Hey Deno community. We have been putting a lot of work into ONNX on Deno, a good friend put our an amazing article showing how to do it. However, we are facing trouble when trying to run it on Deno Deploy. https://blog.nima-dev.com/running-onnx-based-llm-router-in-deno-a-practical-guide-6fb7a05752fd?gi=6e297f3acd21&sk=e7199ef4cd71b1a1225a7d61a11fe9a5 In particular we see
Error: This API is not supported in this environment
at Object.Module._extensions..node (node:module:790:21)
at Module.load (node:module:655:32)
at Function.Module._load (node:module:523:13)
at Module.require (node:module:674:19)
at require (node:module:801:16)
at Object.<anonymous> (file:///node_modules/.deno/onnxruntime-node@1.20.1/node_modules/onnxruntime-node/dist/binding.js:9:1)
at Object.<anonymous> (file:///node_modules/.deno/onnxruntime-node@1.20.1/node_modules/onnxruntime-node/dist/binding.js:11:4)
at Module._compile (node:module:736:34)
at Object.Module._extensions..js (node:module:757:11)
at Module.load (node:module:655:32)
I’m not sure what the issue here is, but I hope this issue gets resolved in the future.
Error: This API is not supported in this environment
at Object.Module._extensions..node (node:module:790:21)
at Module.load (node:module:655:32)
at Function.Module._load (node:module:523:13)
at Module.require (node:module:674:19)
at require (node:module:801:16)
at Object.<anonymous> (file:///node_modules/.deno/onnxruntime-node@1.20.1/node_modules/onnxruntime-node/dist/binding.js:9:1)
at Object.<anonymous> (file:///node_modules/.deno/onnxruntime-node@1.20.1/node_modules/onnxruntime-node/dist/binding.js:11:4)
at Module._compile (node:module:736:34)
at Object.Module._extensions..js (node:module:757:11)
at Module.load (node:module:655:32)
I’m not sure what the issue here is, but I hope this issue gets resolved in the future.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?