Tokenizer compatibility

—

Models checked—— distinct tokenizer files
Same in transformers.js 4—of models, on all 42 texts
Same, by downloads—share of monthly downloads
Differ on everyday text—models, in transformers.js 4

Matches Python, by runtime

Models whose ids and decoded text equal Python's on every text.

same everywherediffers on some textcannot load

Why they differ

Models affected by each cause. A model can have more than one.

Causetransformers.js 3transformers.js 4tokenizers.js

Which texts trip them up

Models that differ from Python on each text. The last column counts models where the two Python references disagree with each other on it; those are not counted as JavaScript differences.

TextKindtransformers.js 3transformers.js 4tokenizers.jsPython disagrees

Every model

Each difference

One row per tokenizer file, runtime and text, under the most-downloaded model that uses the file. Tokens are shown from the first difference on.

ModelRuntimeTextCausePythonJavaScript

How this was checked