microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.62k stars 2.92k forks source link

[Web] requested dist/*.mjs files for cdnjs #21785

Open jozefchutka opened 2 months ago

jozefchutka commented 2 months ago

Describe the issue

Not sure you are also maintaining cdnjs (and other cdns) but I have opened a PR https://github.com/cdnjs/packages/pull/1870

starting v 1.19.0 the /dist in npmjs and jsdelivr contains runtime important .mjs files, while these are not yet on cdnjs

Solving runtime errors:

GET https://cdnjs.cloudflare.com/ajax/libs/onnxruntime-web/1.19.0/ort-wasm-simd-threaded.jsep.mjs 404 (Not Found)

Please check if I am not missing anything important or close this issue.

To reproduce

  1. use onnruntime-web from cdnjs
  2. get 404 for https://cdnjs.cloudflare.com/ajax/libs/onnxruntime-web/1.19.0/ort-wasm-simd-threaded.jsep.mjs

Urgency

Critical as this throws critical runtime errors when using 1.19.0 from cdnjs

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.19.0

Execution Provider

'webgpu' (WebGPU)

fs-eire commented 2 months ago

thank you for reporting this issue. I am not aware of this problem because I assume the CDN should automatically work (and this is what jsdelivr does).

Since you already opened a PR there, is there anything that I can do from my side?

jozefchutka commented 2 months ago

That PR seem to need a reviewer, but I guess it shall be someone from cdnjs team? Other than that, just make sure other CDNs that host onnxruntime provide all the necessary files, else the recent versions are just unusable from CDN.