2 ms·
There's already ways to do translation locally in javascript with neural-nets running in WASM, this is just more convenient. https://huggingface.co/Xenova/nllb
by sfmz 1y ago
There's already ways to do translation locally in javascript with neural-nets running in WASM, this is just more convenient.
https://huggingface.co/Xenova/nllb-200-distilled-600M https://huggingface.co/Xenova/nllb-200-distilled-600M
- vitonsky 1y agoI tried to use this model in my package with translators kit https://github.com/translate-tools/core/pull/112 https://github.com/translate-tools/core/pull/112 It runs very slow. Test case that run translation for text in 3k chars multiple times, takes about 30 seconds for google translator, but more than 10 minutes for `nllb-200-distilled-600M`. Text sample: https://github.com/translate-tools/core/pull/112/files#diff-7c638b74f3de8befc3cacd428f0d0732c10547172eca5afc8a9a037737b3e843 https://github.com/translate-tools/core/pull/112/files#diff-... My tests runs on nodejs, it looks in browser it have no chance for real world use