onnxruntime-web
TypeScript icon, indicating that this package has built-in type declarations

1.20.1 • Public • Published

ONNX Runtime Web

ONNX Runtime Web is a Javascript library for running ONNX models on browsers and on Node.js.

ONNX Runtime Web has adopted WebAssembly and WebGL technologies for providing an optimized ONNX model inference runtime for both CPUs and GPUs.

Why ONNX models

The Open Neural Network Exchange (ONNX) is an open standard for representing machine learning models. The biggest advantage of ONNX is that it allows interoperability across different open source AI frameworks, which itself offers more flexibility for AI frameworks adoption.

Why ONNX Runtime Web

With ONNX Runtime Web, web developers can score models directly on browsers with various benefits including reducing server-client communication and protecting user privacy, as well as offering install-free and cross-platform in-browser ML experience.

ONNX Runtime Web can run on both CPU and GPU. On CPU side, WebAssembly is adopted to execute the model at near-native speed. ONNX Runtime Web compiles the native ONNX Runtime CPU engine into WebAssembly backend by using Emscripten, so it supports most functionalities native ONNX Runtime offers, including full ONNX operator coverage, multi-threading, ONNX Runtime Quantization as well as ONNX Runtime Mobile. For performance acceleration with GPUs, ONNX Runtime Web leverages WebGL, a popular standard for accessing GPU capabilities. We are keeping improving op coverage and optimizing performance in WebGL backend.

See Compatibility and Operators Supported for a list of platforms and operators ONNX Runtime Web currently supports.

Usage

Documents

Development

Refer to the following links for development information:

Compatibility

EPs/Browsers Chrome/Edge (Windows) Chrome/Edge (Android) Chrome/Edge (MacOS) Chrome/Edge (iOS) Safari (MacOS) Safari (iOS) Firefox (Windows) Node.js
WebAssembly (CPU) ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️[1]
WebGPU ✔️[2] ✔️[3] ✔️
WebGL ✔️[4] ✔️[4] ✔️[4] ✔️[4] ✔️[4] ✔️[4] ✔️[4]
WebNN ✔️[5]
  • [1]: Node.js only support single-threaded wasm EP.
  • [2]: WebGPU requires Chromium v113 or later on Windows. Float16 support requires Chrome v121 or later, and Edge v122 or later.
  • [3]: WebGPU requires Chromium v121 or later on Windows.
  • [4]: WebGL support is in maintenance mode. It is recommended to use WebGPU for better performance.
  • [5]: Requires to launch browser with commandline flag --enable-features=WebMachineLearningNeuralNetwork.

Operators

WebAssembly backend

ONNX Runtime Web currently support all operators in ai.onnx and ai.onnx.ml.

WebGL backend

ONNX Runtime Web currently supports a subset of operators in ai.onnx operator set. See webgl-operators.md for a complete, detailed list of which ONNX operators are supported by WebGL backend.

WebGPU backend

WebGPU backend is still an experimental feature. See webgpu-operators.md for a detailed list of which ONNX operators are supported by WebGPU backend.

WebNN backend

WebNN backend is still an experimental feature. See webnn-operators.md for a detailed list of which ONNX operators are supported by WebNN backend.

License

License information can be found here.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.20.19,589latest
1.9.0-extensions9extensions
1.19.0-esmtest.20240618-d229c1608esmtest
1.21.0-dev.20241202-e234023d110dev

Version History

VersionDownloads (Last 7 Days)Published
1.21.0-dev.20241202-e234023d110
1.21.0-dev.20241128-1128882bfd67
1.21.0-dev.20241127-b930b4ab5b57
1.21.0-dev.20241125-09d2ee627479
1.21.0-dev.20241122-a2ba3cb54723
1.21.0-dev.20241122-b1ccbe2a8e16
1.20.19,589
1.21.0-dev.20241118-c4f3742bb414
1.21.0-dev.20241112-cdc8db998410
1.21.0-dev.20241109-d3ad76b2cf33
1.21.0-dev.20241107-6a295eb75b5
1.21.0-dev.20241106-742a0d30be5
1.21.0-dev.20241105-aa097a59925
1.20.01,458
1.21.0-dev.20241028-dd28f09ce25
1.21.0-dev.20241026-05fbb43b345
1.21.0-dev.20241025-c5b6be045f4
1.21.0-dev.20241024-d9ca84ef968,828
1.20.0-dev.20241022-2d00351d7b3
1.21.0-dev.20241023-0028d3f3324
1.21.0-dev.20241022-8a04ab421d3
1.21.0-dev.20241021-60da4a2ccd2
1.21.0-dev.20241019-abad69b3223
1.21.0-dev.20241018-b4cb9374403
1.20.0-dev.20241017-ac98bcae373
1.20.0-dev.20241016-2b8fc5529b8,571
1.20.0-dev.20241014-caa67439b53
1.20.0-dev.20241013-72cc72cc2111
1.20.0-dev.20241012-332173509d3
1.20.0-dev.20241011-23d48ea6473
1.20.0-dev.20241010-1bc546af613
1.20.0-dev.20241009-9ee963110e2
1.20.0-dev.20241008-efb8703a252
1.20.0-dev.20241007-407c1ab2e22
1.20.0-dev.20241006-280c013d674
1.20.0-dev.20241005-5036e63d582
1.20.0-dev.20240930-2cfe1f031d6
1.20.0-dev.20240928-1bda91fc57213
1.20.0-dev.20240927-b81e76b9a63
1.20.0-dev.20240925-a47254eaef9
1.20.0-dev.20240924-cfa45df6b529
1.20.0-dev.20240919-bd60add8ce3
1.20.0-dev.20240917-afd642a1942
1.20.0-dev.20240916-6d7235ba5a2
1.20.0-dev.20240914-c63dd0234b2
1.20.0-dev.20240913-904b850b442
1.20.0-dev.20240912-ae39c40e5b2
1.20.0-dev.20240910-20d94648bb2
1.20.0-dev.20240910-7489bfee532
1.20.0-dev.20240909-2cdc05f1892
1.20.0-dev.20240908-de7a02beef351
1.20.0-dev.20240907-ad9afbb0421
1.20.0-dev.20240906-605a84ffc91
1.20.0-dev.20240905-8b661f71571
1.19.24,414
1.20.0-dev.20240902-b1ae43cbcb1
1.20.0-dev.20240829-be76e1e1b81
1.20.0-dev.20240827-1d059b8702435
1.20.0-dev.20240827-5d54dc14621
1.20.0-dev.20240822-ff3e8b02c31
1.20.0-dev.20240821-009209e016264
1.20.0-dev.20240820-1fb2e71ddc1
1.20.0-dev.20240818-417aa004061
1.20.0-dev.20240818-c4ade796d61
1.20.0-dev.20240816-d79e3c57912
1.20.0-dev.20240816-b2d603abda1
1.20.0-dev.20240815-8a59b4dc4b2
1.19.01,239
1.20.0-dev.20240814-a0708a0d967
1.20.0-dev.20240811-154084efaa3
1.20.0-dev.20240810-6ae7e02d342
1.20.0-dev.20240809-f4ec85259a2
1.19.0-dev.20240804-ee2fe87e2d37
1.19.0-dev.20240801-4b8f6dcbb65
1.19.0-dev.20240730-530a2d7b413
1.19.0-dev.20240727-a4d3a1ce0c3
1.19.0-dev.20240727-1ce160883f3
1.19.0-dev.20240726-278f0f5cd23
1.19.0-dev.20240725-ca47f0fdd33
1.19.0-dev.20240724-b04adcc3813
1.19.0-dev.20240713-281ed8c12d4
1.19.0-dev.20240711-88336ffa923
1.19.0-dev.20240711-0a1178add94
1.19.0-dev.20240705-83e0c6b96e3
1.19.0-dev.20240704-07c429191e2
1.19.0-dev.20240703-f39ee14b462
1.19.0-dev.20240702-7be1d4aad32
1.19.0-dev.20240629-8c2689877f2
1.19.0-dev.20240629-56b36a58ba2
1.19.0-dev.20240627-587e92c2793
1.19.0-dev.20240621-69d522f4e93
1.19.0-dev.20240618-5e81fa8aec3
1.19.0-esmtest.20240618-d229c1608
1.19.0-esmtest.20240617-ac9f0520703
1.19.0-dev.20240612-94aa21c3dd3
1.19.0-dev.20240611-ae4a2e6b3f2
1.19.0-dev.20240608-bd61ae530b3
1.19.0-dev.20240604-3dd6fcc0893
1.19.0-dev.20240601-217b66fd852
1.19.0-dev.20240601-5ec7ac80c72
1.19.0-dev.20240531-35697d24212
1.19.0-dev.20240531-67bc9438d72
1.19.0-dev.20240521-068bb3d5ee2
1.18.09,717
1.19.0-dev.20240515-2a17958b343
1.19.0-esmtest.20240513-a16cd2bd212
1.19.0-dev.20240510-e124cf8e762
1.19.0-dev.20240509-69cfcba38a5
1.19.0-dev.20240505-a36692066d2
1.19.0-dev.20240504-38412b68c61
1.19.0-dev.20240502-030a9611c21
1.19.0-dev.20240502-0dda8b0c441
1.18.0-dev.20240430-204f1f59b92
1.19.0-dev.20240501-7a7344dcc21
1.19.0-dev.20240430-b2481e36021
1.18.0-dev.20240429-3e4db2c6862
1.19.0-esmtest.20240430-c7edbcc63d5
1.18.0-dev.20240427-736cbb39255
1.18.0-esmtest.20240428-624c681c833
1.18.0-dev.20240426-b842effa296
1.18.0-dev.20240425-21b3cbc3af3
1.18.0-dev.20240424-218b6b0a733
1.18.0-esmtest.20240411-1abb64e8943
1.17.31,091
1.18.0-dev.20240311-54791248345
1.18.0-dev.20240309-efad5bbc5a3
1.17.13,418
1.17.0848
1.18.0-dev.20240130-9f68a27c7a3
1.18.0-dev.20240126-fc44f96ad53
1.18.0-dev.20240124-d7aebf9ea83
1.17.0-dev.20240118-a63b71eadb5
1.18.0-dev.20240118-28a16c223c3
1.17.0-dev.20240116-80f274ca6f3
1.17.0-dev.20240111-d0bac8216d26
1.17.0-dev.20240110-5f3113ecd63
1.17.0-dev.20240109-ab897a4a403
1.17.0-dev.20240103-1c2dca95d82
1.17.0-dev.20231220-89318545282
1.17.0-dev.20231215-81ad1e6ac32
1.17.0-dev.20231214-b42d4b8ea62
1.17.0-dev.20231129-38b640c7975
1.17.0-dev.20231128-a6d872640764
1.17.0-dev.20231118-9364c0517063
1.16.33,726
1.16.2694
1.17.0-dev.20231103-1439da36fe18
1.17.0-dev.20231102-178f7caaeb12
1.17.0-dev.20231101-69f029797d6
1.17.0-dev.20231031-95f053c6526
1.17.0-dev.20231031-8a574b874c7
1.17.0-dev.20231014-ae211999dd5
1.16.11,390
1.17.0-dev.20231009-60f19ab0016
1.17.0-dev.20230929-561aca97cf6
1.17.0-dev.20230926-bcc62051615
1.17.0-dev.20230925-216214b7d35
1.17.0-dev.20230922-891fba3b9c0
1.17.0-dev.20230921-4f3f4366d55
1.17.0-dev.20230920-e6301eee6a5
1.16.02,372
1.16.0-dev.20230910-24f0893d3c5
1.16.0-dev.20230908-29a818caa05
1.16.0-dev.20230908-a9df3aea725
1.16.0-dev.20230907-0a3eb60b015
1.16.0-dev.20230905-8818a99c935
1.16.0-dev.20230820-cbaa0083914
1.16.0-dev.20230704-d540c7da0f4
1.15.15,439
1.16.0-dev.20230606-f0139658314
1.16.0-dev.20230521-0204594f904
1.15.0644
1.16.0-dev.20230508-045c62341576
1.15.0-dev.20230502-abdd4f518a3
1.15.0-dev.20230430-31e7d3d7d44
1.15.0-dev.20230412-e1e88522133
1.15.0-dev.20230411-0fbf7158246
1.15.0-dev.20230317-e42f7487df3
1.15.0-dev.20230212-12d91173c44
1.14.080,876
1.15.0-dev.20230206-b8fb9320ac2
1.15.0-dev.20230131-e2dd1315c72
1.14.0-dev.20230119-b51415b0ea5
1.14.0-dev.20221124-4ca62b9ee836
1.13.11,451
1.13.0-dev.20221007-f4b944e1a10
1.13.0-dev.20221001-0cf17b19210
1.13.0-dev.20220927-94e34ace19
1.13.0-dev.20220904-ac4f1bf9610
1.13.0-dev.20220812-95f2a3e7e9
1.13.0-dev.20220808-bdd6b00c99
1.12.1254
1.12.0149
1.12.0-dev.20220708-c6732c07911
1.12.0-dev.20220707-62226d03010
1.12.0-dev.20220614-f6d2b629a10
1.12.0-dev.20220607-40d2c98e44
1.12.0-dev.20220520-e3a2d5cca3
1.12.0-dev.20220517-4dd3cc40c3
1.12.0-dev.20220516-c556f5f222
1.12.0-dev.20220510-3437967e62
1.12.0-dev.20220505-084165c742
1.12.0-dev.20220429-49d7050b82
1.11.0733
1.11.0-dev.20220318-b713855a92
1.11.0-dev.20220228-eb116595d3
1.11.0-dev.20220220-4d3cd2f683
1.11.0-dev.20220217-8d06e5a9d3
1.11.0-dev.20220129-baa1767922
1.11.0-dev.20220124-3dfadf9034
1.11.0-dev.20211230-d5742f3a42
1.11.0-dev.20211224-f780f06243
1.11.0-dev.20211222-05d20343e2
1.11.0-dev.20211218-bd4fb4c5d2
1.11.0-dev.20211216-44c7011923
1.10.0-dev.20211211-d0b08af372
1.10.085
1.10.0-dev.20211124-a3ebc5e0846
1.10.0-dev.20211122-bcc6ab29f10
1.10.0-dev.20211118-1aa21df144
1.10.0-dev.20211114-6e09fc5154
1.10.0-dev.20211109.04
1.10.0-dev.20211105.05
1.10.0-dev.20211102.019
1.10.0-dev.20211029.04
1.10.0-dev.20211026.04
1.10.0-dev.20211022.03
1.10.0-dev.20211018.03
1.10.0-dev.20211015.03
1.10.0-dev.20211011.03
1.10.0-dev.20211008.03
1.10.0-dev.20210930.03
1.10.0-dev.20210928.03
1.10.0-dev.20210923.02
1.9.0112
1.9.0-extensions9
1.8.2-dev.20210831.0670
1.8.0-dev.20210708.052
1.8.0-dev.20210608.02
1.8.065
1.7.0-dev.6.22
1.7.0-dev.6.12
1.7.0-dev.62
1.7.0-dev.52
1.7.0-dev.4.22
1.7.0-dev.4.12
1.7.0-dev.42
1.7.0-dev.32
1.7.0-dev.13
1.7.0-dev.02

Package Sidebar

Install

npm i onnxruntime-web

Weekly Downloads

122,295

Version

1.20.1

License

MIT

Unpacked Size

96 MB

Total Files

375

Last publish

Collaborators

  • eire
  • onnxruntime
  • zuzhao