Yulong Wang

Results 218 comments of Yulong Wang

Since it's Next.js, make sure not using SSR (because importing 'onnxruntime-web/webgpu' from Node.js is explicitly disabled)

> I'm having the same issue. I made sure to load `onnxruntime-web/webgpu` dynamically to filter out SSR errors, but the error seems to be triggered at build time. > >...

> > I made a reproduction here: [illbexyz/nextjs-onnxruntime](https://github.com/illbexyz/nextjs-onnxruntime). > > It's missing `onnxruntime-web` in the dependencies, and both `next dev` and `next build` work for me after adding it. Yes,...

the original idea of adding `"node": null,` is to avoid misuse in Node.js. It seems by removing them indeed helps to use onnxruntime-web in Next.js... if not using web worker....

@illbexyz I verified the solution mentioned in https://github.com/vercel/next.js/issues/70296#issuecomment-2365441435 works. Fix: https://github.com/fs-eire/nextjs-onnxruntime/commit/b7adf6f0367c81532e5173206f44e0f06da30bbe - use `'use client';` at the top of the CSR component - use dynamic import and use `if (typeof...

Yes I am OK to remove it.

I am currently working on a native WebGPU solution that exactly targeting your requirement. Since it needs to rewrite the JavaScript kernels using C++, it may take a while. -...

The WebGPU EP is now in the main branch. currently it has limited operator implementation coverage, but we are working on it. Simply build onnxruntime with `--use_webgpu` and use `AppendExecutionProvider("WebGPU",...

The `Reshape` does not actually modify the data so this should not be a problem. do you have any problem with it?

It should have already worked with some models on Android. However there are some restrictions on mobile (ie. max buffer size limit) blocking most SLM from our tests. We will...