Skip to content
ai-supply.store
استكشافالفئاتلوحة المتصدرينالمجتمعAgent APIFAQ
تسجيل الدخولإنشاء حساب مجاني
catalog / Language & NLP / Hugging Face Tokenizers
◆SkillLanguage & NLPFree

Hugging Face Tokenizers

Ultra-fast tokenizer library (Rust core) — BPE, WordPiece, SentencePiece — tokenize GBs in seconds.

@ai-supply
التثبيتات580k
⟳ upstream v0.23.1 · updated 3mo ago
↗ مستودع المصدر
← More Language & NLPLanguage & NLP leaderboard →How we grade security →Source ↗
! Grade B · 75/100 · ReviewSecurity assessment
✓No compromise signals18capabilities surfaced1known CVE7of 20 OWASP controls clear
External endpoints declaredSuspicious network referencesExternal endpoints declaredExternal endpoints declared
scanned 18d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

Hugging Face Tokenizers

Tokenizers provides an extremely fast and versatile tokenization library. The core is written in Rust for maximum performance: it can tokenize a gigabyte of text in under 20 seconds on a single CPU. All modern tokenizer algorithms are supported, with full alignment tracking and pre/post-processing pipelines.

Key Features

  • Rust-powered speed: 1 GB/s+ tokenization throughput
  • All major algorithms: BPE (GPT-2), WordPiece (BERT), Unigram (SentencePiece), WordLevel
  • Alignment tracking: maps token positions back to original characters
  • Full pre/post-processing: normalizers, pre-tokenizers, post-processors, decoders
  • Train from scratch or load pretrained tokenizers from the Hub
  • Python, Node.js, and Rust APIs

Quick Start

from tokenizers import Tokenizer
from tokenizers.models import BPE
from tokenizers.trainers import BpeTrainer

# Train a new tokenizer
tokenizer = Tokenizer(BPE())
trainer = BpeTrainer(special_tokens=["[UNK]", "[CLS]", "[SEP]"])
tokenizer.train(["data.txt"], trainer)

# Or load a pretrained one
tokenizer = Tokenizer.from_pretrained("bert-base-uncased")
encoding = tokenizer.encode("Hello world!")
print(encoding.tokens)  # ['[CLS]', 'hello', 'world', '!', '[SEP]']

Install via ai-supply

npx ai-supply add huggingface-tokenizers-fast

Curated mirror of the open-source Hugging Face Tokenizers (Apache-2.0). Get it from the source.

Rating rank
#1
of 30 in Language & NLP
Install rank
#3
of 30 in Language & NLP
Security score
75/100 · B
review
Security rank
#19
of 30 in Language & NLP
Installs
580k
cat avg 145k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Language & NLP leaderboard →
! Security: Review · 7575/100 · grade Bscanned 18d ago
✓ no compromise signals19 risk-surface · 7/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

What this capability can do · med confidence (static)
⚑ filesystem⚑ shell⚑ network⚑ secrets
egress → huggingface.co, bootstrap.pypa.io, registry.npmjs.org, rustup.rs, img.shields.io, pepy.tech, taplo.tamasfe.dev, chevrotain.io +13
30 scripts

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM03Supply Chaincritical
Vulnerable/compromised dependencies, models or archives in the artifact.
•Dependency manifest — 21 npm dependencies declared · huggingface-tokenizers-0574112/bindings/node/package.jsonrisk surface
•Dependency manifest — 5 npm dependencies declared · huggingface-tokenizers-0574112/tokenizers/examples/unstable_wasm/www/package.jsonrisk surface
•Non-registry dependency source — 1 dependency/ies pulled from git/URL/file · huggingface-tokenizers-0574112/tokenizers/examples/unstable_wasm/www/package.json (CWE-829)risk surface
•Vulnerable dependencies — 25 known vulnerabilities in: @babel/core@7.24.3, @babel/helpers@7.24.1, ajv@6.12.6, brace-expansion@2.0.1, braces@3.0.2, cross-spawn@7.0.3, glob@10.3.12, ip-address@9.0.5 (CWE-1395)known CVE · -25 pts
⚠LLM05Improper Output Handlinghigh
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — child_process exec · huggingface-tokenizers-0574112/bindings/node/index.js (CWE-78)risk surface
•Suspicious code patterns — pipe-to-shell install · huggingface-tokenizers-0574112/bindings/python/README.md (CWE-494)risk surface
•Suspicious code patterns — pickle deserialization · huggingface-tokenizers-0574112/bindings/python/tests/bindings/test_decoders.py (CWE-502)risk surface
⚠LLM02Sensitive Information Disclosurelow
Secrets, credentials or PII shipped inside the artifact.
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-tokenizers-0574112/bindings/node/.yarn/releases/yarn-3.5.1.cjs (CWE-798)risk surface
⚠LLM06Excessive Agencylow
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · huggingface-tokenizers-0574112/.github/conda/meta.yamlrisk surface
•External endpoints declared — 3 distinct host(s) · huggingface-tokenizers-0574112/CITATION.cffrisk surface
•External endpoints declared — 2 distinct host(s) · huggingface-tokenizers-0574112/CONTRIBUTING.mdrisk surface
•External endpoints declared — 4 distinct host(s) · huggingface-tokenizers-0574112/README.mdrisk surface
•External endpoints declared — 6 distinct host(s) · huggingface-tokenizers-0574112/bindings/node/.gitignorerisk surface
•External endpoints declared — 8 distinct host(s) · huggingface-tokenizers-0574112/docs/source/_static/js/custom.jsrisk surface
•External endpoints declared — 5 distinct host(s) · huggingface-tokenizers-0574112/docs/source/installation/python.incrisk surface
•External endpoints declared — 7 distinct host(s) · huggingface-tokenizers-0574112/tokenizers/examples/unstable_wasm/www/package-lock.jsonrisk surface
•Broad capability surface — 3 high-impact capability categories referenced — verify least-privilege · huggingface-tokenizers-0574112/tokenizers/src/tokenizer/mod.rs (CWE-272)risk surface
⚠LLM07System Prompt Leakagelow
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Low-confidence secret match — 1 possible: generic-api-key · huggingface-tokenizers-0574112/bindings/node/.yarn/releases/yarn-3.5.1.cjs (CWE-798)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
◷LLM10Unbounded ConsumptionRuntime-enforced
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
✓LLM01Prompt InjectionPassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML06AI Supply Chaincritical
Compromised PyPI/npm packages, typosquats, unsafe serialized models.
•Dependency manifest — 21 npm dependencies declared · huggingface-tokenizers-0574112/bindings/node/package.jsonrisk surface
•Dependency manifest — 5 npm dependencies declared · huggingface-tokenizers-0574112/tokenizers/examples/unstable_wasm/www/package.jsonrisk surface
•Non-registry dependency source — 1 dependency/ies pulled from git/URL/file · huggingface-tokenizers-0574112/tokenizers/examples/unstable_wasm/www/package.json (CWE-829)risk surface
•Vulnerable dependencies — 25 known vulnerabilities in: @babel/core@7.24.3, @babel/helpers@7.24.1, ajv@6.12.6, brace-expansion@2.0.1, braces@3.0.2, cross-spawn@7.0.3, glob@10.3.12, ip-address@9.0.5 (CWE-1395)known CVE · -25 pts
⚠ML09Output Integrityhigh
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — child_process exec · huggingface-tokenizers-0574112/bindings/node/index.js (CWE-78)risk surface
•Suspicious code patterns — pipe-to-shell install · huggingface-tokenizers-0574112/bindings/python/README.md (CWE-494)risk surface
•Suspicious code patterns — pickle deserialization · huggingface-tokenizers-0574112/bindings/python/tests/bindings/test_decoders.py (CWE-502)risk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (19) · hygiene / uncategorized
•Disallowed file type — '.bat' executables are not permitted · huggingface-tokenizers-0574112/.github/conda/bld.bat (CWE-434)risk surface
•Unrecognized file type — '.gitignore' is not on the allowlist · huggingface-tokenizers-0574112/.gitignorerisk surface
•Unrecognized file type — '.cff' is not on the allowlist · huggingface-tokenizers-0574112/CITATION.cffrisk surface
•Suspicious network references — URL shortener (4 URLs) · huggingface-tokenizers-0574112/CITATION.cffrisk surface
•Unrecognized file type — '.?' is not on the allowlist · huggingface-tokenizers-0574112/LICENSErisk surface
•Unrecognized file type — '.editorconfig' is not on the allowlist · huggingface-tokenizers-0574112/bindings/node/.editorconfigrisk surface
•Unrecognized file type — '.gitattributes' is not on the allowlist · huggingface-tokenizers-0574112/bindings/node/.gitattributesrisk surface
•Unrecognized file type — '.prettierignore' is not on the allowlist · huggingface-tokenizers-0574112/bindings/node/.prettierignorerisk surface
•Unrecognized file type — '.in' is not on the allowlist · huggingface-tokenizers-0574112/bindings/python/MANIFEST.inrisk surface
•Unrecognized file type — '.pyi' is not on the allowlist · huggingface-tokenizers-0574112/bindings/python/py_src/tokenizers/__init__.pyirisk surface
•Unrecognized file type — '.ini' is not on the allowlist · huggingface-tokenizers-0574112/bindings/python/pytest.inirisk surface
•Unrecognized file type — '.cfg' is not on the allowlist · huggingface-tokenizers-0574112/bindings/python/setup.cfgrisk surface
•Suspicious network references — suspicious TLD (1 URLs) · huggingface-tokenizers-0574112/bindings/python/tests/documentation/test_pipeline.pyrisk surface
•Unrecognized file type — '.mdx' is not on the allowlist · huggingface-tokenizers-0574112/docs/source-doc-builder/api/added-tokens.mdxrisk surface
•Suspicious network references — suspicious TLD (5 URLs) · huggingface-tokenizers-0574112/docs/source-doc-builder/quicktour.mdxrisk surface
•Possible obfuscation — very long lines paired with a decode/execute sink · huggingface-tokenizers-0574112/docs/source/_static/js/custom.js (CWE-506)risk surface
•Unrecognized file type — '.inc' is not on the allowlist · huggingface-tokenizers-0574112/docs/source/api/node.incrisk surface
•Suspicious network references — suspicious TLD (4 URLs) · huggingface-tokenizers-0574112/docs/source/quicktour.rstrisk surface
•Unrecognized file type — '.tpl' is not on the allowlist · huggingface-tokenizers-0574112/tokenizers/README.tplrisk surface
✔ verified source · pinned huggingface-tokenizers-0574112
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/huggingface-tokenizers-fast/check). Click a policy:

Consume Hugging Face Tokenizers programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/huggingface-tokenizers-fast

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/huggingface-tokenizers-fast/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add huggingface-tokenizers-fast

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/huggingface-tokenizers-fast/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "huggingface-tokenizers-fast" })
OpenAPI spec →
vlatest
! Security: Review · 751mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

قدرات ذكاء اصطناعي مجانية ومفحوصة أمنيًا — مهارات وخوادم MCP وإضافات ووكلاء ومجموعات بيانات وغيرها، كلٌّ منها مُقيَّم ومُتابَع لحداثته، ومبنيّ للبشر والوكلاء على حدٍّ سواء.

api · v3.1status · all green
تواصل معنا
support@ai-supply.storesecurity@ai-supply.store
الكتالوج
  • استكشاف
  • الفئات
  • لوحة المتصدرين
  • المعايير
  • الأمان
  • Scan a repo
المجتمع
  • المجتمع
  • FAQ
للوكلاء
  • بدء سريع (60s)
  • تفويض وكيل
  • Agent API
  • مواصفات OpenAPI
للمطورين
  • نشر
  • لوحة التحكم
الحساب
  • إنشاء حساب
  • تسجيل الدخول
  • الإعدادات
قانوني
  • الشروط
  • اتفاقية الناشر
  • سياسة الاستخدام المقبول
  • الخصوصية