Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile to wasm #343

Closed
lhk opened this issue Sep 23, 2020 · 1 comment
Closed

compile to wasm #343

lhk opened this issue Sep 23, 2020 · 1 comment

Comments

@lhk
Copy link

lhk commented Sep 23, 2020

Feature description

I would like to embed machine translation in my webapp. There is tensorflow.js but so far I've been unable to find suitable pretrained translation models.

Opus-MT hosts a large repository of pretrained models for many language pairs. It uses marian for the neural machine translation.

The pre- and postprocessing is cheap. I would be able to host the tokenizer on a server. But marian-decoder is too costly to host myself.
It would be great if it was possible to compile the code to webassembly and run it client-side.

I have written small projects in C/C++ and in principle would be happy to dig deeper. But guidance from someone with more experience would be really helpful.

Is this feasible at all?

@kpu
Copy link
Member

kpu commented Sep 23, 2020

Your request is well timed since Mozilla is working on this through my project https://browser.mt/. Let's take this over to https://github.com/browsermt/marian-dev and talk with @mlopatka and @abhi-agg.

Closing only because we'll discuss it in browsermt/marian-dev#5

@kpu kpu closed this as completed Sep 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants