summaryrefslogtreecommitdiffstats
path: root/toolkit/components/ml/vendor/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/ml/vendor/README.md')
-rw-r--r--toolkit/components/ml/vendor/README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolkit/components/ml/vendor/README.md b/toolkit/components/ml/vendor/README.md
new file mode 100644
index 0000000000..6a57fae8b1
--- /dev/null
+++ b/toolkit/components/ml/vendor/README.md
@@ -0,0 +1,12 @@
+# vendored dependencies
+
+- onnxruntime-web 1.14.0 (UMD modules)
+- Transformers.js 2.16.1 (patched for gecko)
+
+To build the vendored dependencies, run `./build.sh`.
+
+The Transformers.js patch is required for building Transformers.js
+without including the `onnxruntime-web` NPM bundle. It uses
+webpack's `externals` feature to include the onnxruntime-web UMD
+module and changes the import statement in `backends/onnx.js` to
+point to it.