—
Models whose ids and decoded text equal Python's on every text.
Models affected by each cause. A model can have more than one.
| Cause | transformers.js 3 | transformers.js 4 | tokenizers.js |
|---|
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.
| Text | Kind | transformers.js 3 | transformers.js 4 | tokenizers.js | Python disagrees |
|---|
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.
| Model | Runtime | Text | Cause | Python | JavaScript |
|---|
tokenizer.json once (by its file hash). Models without one, and gated models, are left out.tokenizers library reading the file as written, and transformers' AutoTokenizer, which adds model-specific behaviour. A difference counts only when JavaScript differs from both, or from the only one that can load the model. Where the two disagree with each other, JavaScript always sided with one of them.python -m tokcpu compat from the tokcpu repository (daily, by a workflow, whenever a runtime has a new release), with —, on Node — (V8 —), against Python transformers — and tokenizers —, on —.