Commit Graph

33 Commits

Author SHA1 Message Date
Nikolay Bogoychev
534ed37a3d
Remove wormhole references (#459)
* Remove warmhole references

* Remove more references to the WORMHOLE

* Update marian to wormhole removed marian

* Whoops

---------

Co-authored-by: Jelmer van der Linde <jelmer@ikhoefgeen.nl>
2023-08-14 15:22:54 +01:00
Kenneth Heafield
82c276a15c Fix path to example program 2023-03-01 18:30:38 +00:00
Abhishek Aggarwal
e34420647d
Upgrade emsdk to 3.1.8 (#414)
* Rework WASM compilation options

Necessary to work with newer versions of emscripten that are more picky about which option goes to the compiler, and which to the linker. Also took the opportunity to remove the need for the patching of the bergamot-translation-worker.js file, this can now easily be done through supported apis. Furthermore, I tried to downsize the generated javascript and wasm code a bit.

Initial estimates show that bergamot-translator compiled with emscripten 3.0.0 runs at about 3x the speed of 2.0.9 (when using embedded intgemm). Speed-up when using mozIntGemm is less dramatic.

* Updated marian-dev submodule
* Revert changes specific to patching external gemm modules for wasm
* Better Compilation and Link flags

 - Added "-O3" optimization flag for linking as well
 - "-g2" only for release and debug builds
 - "-g1" for release builds
 - Replaced deprecated "--bind" flag with "-lembind"
 - Removed redundant link flag

* Upgraded emsdk to 3.1.8
* Enclosed EXPORTED_FUNCTIONS values in a list
* Fixed the remaining 2.0.9 reference in circle ci build script
* Updated README

Co-authored-by: Jelmer van der Linde <jelmer@ikhoefgeen.nl>
2022-04-20 00:39:32 +01:00
Andre Natal
d6a14b1d6f
Fix badge to point to this repo instead mozilla's (#261) 2021-11-15 08:14:21 +00:00
Abhishek Aggarwal
c5167b3d8c
Import matrix-multiply from a separate wasm module (#232)
* Updated marian-dev submodule
* Import wasm gemm from a separate wasm module
 - The fallback implementation of gemm is currently being imported dynamically
   for wasm target
* Updated CI scripts and README to import GEMM from a separate wasm module
* Setting model config to int8shiftAlphaAll in wasm test page
2021-10-27 11:54:39 +02:00
Abhishek Aggarwal
f3e00ae657 Added build instructions to run on other browsers
- Disabled compiling with wormhole which is Firefox specific feature
2021-08-11 13:28:15 +02:00
Abhishek Aggarwal
3e46e3391c Consistent EMSDK version and parallel make jobs in README and github actions
- Set EMSDK version to 2.0.9 to make it consistent
   everywhere in repo
 - Set parallel make jobs to 2
2021-06-09 11:10:10 +02:00
Abhishek Aggarwal
b73714e222 Merge remote-tracking branch 'upstream/main' into main
- Sync with upstream (https://github.com/browsermt/bergamot-translator)
2021-05-18 08:48:41 +02:00
Abhishek Aggarwal
0189500160 Updated README to remove packaging steps for wasm compilation
- We don't need to package model, shortlist or vocab files into wasm
   binary at build time
2021-05-12 16:23:09 +02:00
Abhishek Aggarwal
d8f7e51792 Minor README change
- Changed "browsermt" to "mozilla"
2021-05-04 13:53:33 +02:00
Abhishek Aggarwal
ec3a785d17 Merge remote-tracking branch 'upstream/main' into main
- Sync with upstream (https://github.com/browsermt/bergamot-translator)
2021-05-04 12:09:26 +02:00
abhi-agg
8de368c166
Improved wasm scripts and README (#128) 2021-05-04 10:18:45 +01:00
Abhishek Aggarwal
1574a4586c Merge remote-tracking branch 'upstream/main' into upstream-sync 2021-04-14 14:36:17 +02:00
abhi-agg
12e9232066
Patch WASM artifacts to run optimized (wormhole enabled) inference (#68)
* A script to patch the wasm artifacts to use wormhole via
   APIs that instantiate WASM module
* Updated README
* Load just production ready models
* Shallow clone bergamot-models repo since it has such a large history
* Improved wasm test_page
 - test page can load all 5 language pairs
 - Use intgemm.alpha* models
* Refactor the code that patches wasm artifacts to enable wormhole

Co-authored-by: Andre Natal <anatal@gmail.com>
Co-authored-by: Motin <motin@motin.eu>
2021-03-24 17:10:42 +01:00
Motin
d1ecd007a6 Shallow clone bergamot-models repo since it has such a large history 2021-03-11 14:38:16 +01:00
Andre Natal
a2d6650097 Patch to load just production ready models 2021-03-11 14:38:16 +01:00
Abhishek Aggarwal
6e7b7c71ec Updates README for enabling simdwormhole in WASM APIs 2021-03-11 13:44:14 +01:00
abhi-agg
c64deb50a8
Imported CI scripts from mozilla/bergamot-translator-old (#1)
* CircleCI config, docs and badge

* Increase CircleCI RAM from 4gb to 16gb

Co-authored-by: Motin <motin@motin.eu>
2021-03-10 09:30:39 -08:00
Abhishek Aggarwal
18b4c7a016 Improved README
- Removed 'wasm-integration' branch from wasm build instructions
 - Improved native build instructions
2021-02-25 15:22:52 +01:00
Abhishek Aggarwal
b75e72e65d Added more explanation for FILES_TO_PACKAGE in README 2021-02-18 10:42:06 +01:00
Abhishek Aggarwal
b86f8a7dc2 Improved README
- Clears up the spaghetti of model packaging
 - Usage instructions
 - Formatting changes
2021-02-17 14:21:51 +01:00
Motin
b1e72ce75e Updated instructions on how to get all relevant models in place for the upcoming release 2021-02-16 15:46:15 +02:00
Motin
a33b3a3bb5 Add instructions on how to assemble and package the set of files expected by the test page 2021-02-15 11:21:36 +02:00
Andre Natal
1e413f71cd Including a more elaborated test page, a node webserver containing the proper cors headers and wasm mimetype 2021-02-13 18:23:25 -08:00
Andre Natal
47db65972c
Update README.md 2021-02-12 17:18:57 -08:00
Andre Natal
a97bf7b504
Update README.md 2021-02-12 17:00:12 -08:00
Andre Natal
3a53a68444
Update README.md
updating  `--recursive`  on wasm instructions too
2021-02-12 15:41:17 -08:00
Andre Natal
9108d9f0b3
Update README.md
Add  `--recursive` to `git clone` instructions
2021-02-12 15:25:40 -08:00
Abhishek Aggarwal
e12647076c Updated README with wasm build and use instructions 2021-02-11 23:36:42 +01:00
Jerin Philip
3b6b9cd2bf Updating README.md with instructions to run service-cli 2021-01-22 11:51:49 +00:00
Abhishek Aggarwal
cd505c9286 Updated README with 'Build' and 'Use' instructions 2020-11-16 13:09:42 +01:00
abhi-agg
ef2323c952
Unified api draft (#1)
* Changed README file

 - Added a short introduction of this repository
 - More updates to come later

* First draft of the unified API
2020-10-29 09:17:32 +01:00
abhi-agg
a2dddd818c
Initial commit 2020-10-19 13:49:38 +02:00