diff --git a/wasm/README.md b/wasm/README.md index a9e4d9a57..f2fbcb7f1 100644 --- a/wasm/README.md +++ b/wasm/README.md @@ -94,9 +94,6 @@ If you used the script `package-benchmark.sh` mentioned above then open followin `http://localhost:8000/marian-decoder.html?arguments=-m /model.intgemm.alphas.bin -v /vocab.esen.spm /vocab.esen.spm -i /newstest2013.es.top300lines --beam-size 1 --mini-batch 32 --maxi-batch 100 --maxi-batch-sort src -w 128 --skip-cost --shortlist /lex.s2t 50 50 --cpu-threads 1 --int8shiftAlphaAll` -Note that intgemm options are only available in Firefox Nightly verified by visiting [this link](https://axis-of-eval.org/sandbox/wormhole-test.html). - - ### Compiling wasm marian-decoder on Docker Alternatively, wasm marian-decoder can also be compiled on docker. diff --git a/wasm/package-benchmark.sh b/wasm/package-benchmark.sh index ab3a22854..cdb05494a 100644 --- a/wasm/package-benchmark.sh +++ b/wasm/package-benchmark.sh @@ -22,12 +22,6 @@ fi echo "Packaging files for wasm binary" $EMSDK_PYTHON $EMSDK/upstream/emscripten/tools/file_packager.py model-files.data --preload ../models/@ --js-output=model-files.js -echo "Enabling wormhole via APIs that compile and instantiate wasm module" -sed -i.bak 's/var result = WebAssembly.instantiateStreaming(response, info);/var result = WebAssembly.instantiateStreaming(response, info, {simdWormhole:true});/g' marian-decoder.js -sed -i.bak 's/return WebAssembly.instantiate(binary, info);/return WebAssembly.instantiate(binary, info, {simdWormhole:true});/g' marian-decoder.js -sed -i.bak 's/var module = new WebAssembly.Module(bytes);/var module = new WebAssembly.Module(bytes, {simdWormhole:true});/g' marian-decoder.js -echo "SUCCESS" - echo "Importing integer (8-bit) gemm implementation" SCRIPT_ABSOLUTE_PATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" sed -i.bak 's/"env"[[:space:]]*:[[:space:]]*asmLibraryArg,/"env": asmLibraryArg,\