Skip to content
WebAI

text / translation

Translation

Translates between language pairs in the browser, which keeps the source text on the device. Bilingual models stay small; the multilingual ones carry every pair in one file, so download size grows fast and some weights are licensed for non-commercial use only.

3 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

NLLB-200 Distilled

NLLB-200 distilled 600M translation model with a Transformers.js ONNX build. Weights are CC-BY-NC-4.0: non-commercial use only.

Tasks: Translation

ModelTransformers.js

q8: 853.2 MiB

q4f16: 1195.9 MiB

fp16: 1678.9 MiB

fp32: 3360.4 MiB

Code license: Apache-2.0

Weight license: CC-BY-NC-4.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/nllb-200-distilled-600M
Natural languages
200+ languages
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
CC-BY-NC-4.0

Deployment variants

q8
Download size: 853.2 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 261c31d1a5732c67cdd16d80e8d6088507c7ccea
Weight artifact ↗
q4f16
Download size: 1195.9 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 261c31d1a5732c67cdd16d80e8d6088507c7ccea
Weight artifact ↗
fp16
Download size: 1678.9 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 261c31d1a5732c67cdd16d80e8d6088507c7ccea
Weight artifact ↗
fp32
Download size: 3360.4 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 261c31d1a5732c67cdd16d80e8d6088507c7ccea
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Opus-MT (en↔zh)

MarianMT-based English ↔ Chinese translation pair.

Tasks: Translation

ModelTransformers.js

q8: 107.9 MiB

q4f16: 152.7 MiB

fp16: 213.1 MiB

fp32: 425.1 MiB

Code license: Apache-2.0

Weight license: Apache-2.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/opus-mt-en-zh
Natural languages
English, Chinese
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
Apache-2.0
Legacy license label (unverified)
Other

Deployment variants

q8
Download size: 107.9 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 046f55aec303cdee3e0318604406d4df20f1e8ea
Weight artifact ↗
q4f16
Download size: 152.7 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 046f55aec303cdee3e0318604406d4df20f1e8ea
Weight artifact ↗
fp16
Download size: 213.1 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 046f55aec303cdee3e0318604406d4df20f1e8ea
Weight artifact ↗
fp32
Download size: 425.1 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 046f55aec303cdee3e0318604406d4df20f1e8ea
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

M2M-100 (418M)

Many-to-many translation model; runs in the browser from the Transformers.js ONNX build.

Tasks: Translation

ModelTransformers.js

q8: 602.7 MiB

q4f16: 695.3 MiB

fp16: 1178.4 MiB

fp32: 2359.4 MiB

Code license: Apache-2.0

Weight license: MIT

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/m2m100_418M
Natural languages
100 languages
Programming languages
Not specified
Other reported capabilities
Not specified
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
MIT
Legacy license label (unverified)
MIT

Deployment variants

q8
Download size: 602.7 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 9c374f0b7aca709787cea97b047bfbbd1559d177
Weight artifact ↗
q4f16
Download size: 695.3 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 9c374f0b7aca709787cea97b047bfbbd1559d177
Weight artifact ↗
fp16
Download size: 1178.4 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 9c374f0b7aca709787cea97b047bfbbd1559d177
Weight artifact ↗
fp32
Download size: 2359.4 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 9c374f0b7aca709787cea97b047bfbbd1559d177
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Translation

Translation under Text holds 3 catalogue entries: 3 models.

3 of them carry browser evidence, all from upstream browser examples.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to Transformers.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
3 in total
Main runtime
Transformers.js
Smallest known weights
108 MiB
Browser evidence
3 of 3 verified

Translation: common questions

Can Translation run directly in a browser?
Yes. 3 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Translation?
We verified the weight file sizes of 3 entries in this task; the smallest tier is 108 MiB. Quantisation differs between entries, so the real download depends on the precision you pick. Files are reused from the HTTP cache or Cache Storage after the first download.
Which devices suit Translation?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Text models →