huggingface-tokenizers
Fast tokenizers optimized for research and production.
Skill by Patkik
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/patkik-huggingface-tokenizers
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: ml, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
huggingface-tokenizers- Description
- Fast tokenizers optimized for research and production. Rust-based implementation tokenizes 1GB in <20 seconds. Supports BPE, WordPiece, and Unigram algorithms. Train custom vocabularies, track alignments, handle padding/truncation. Integrates seamlessly with transformers. Use when you need high-performance tokenization or custom tokenizer training.
- License
- MIT
- Instructions
- 508 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 508 lines (spec recommends under 500)
Files (5)
- SKILL.md
- algorithms.md · references/
- integration.md · references/
- pipeline.md · references/
- training.md · references/
SKILL.md (first lines)
# HuggingFace Tokenizers - Fast Tokenization for NLP
Fast, production-ready tokenizers with Rust performance and Python ease-of-use.
## When to use HuggingFace Tokenizers
**Use HuggingFace Tokenizers when:**
- Need extremely fast tokenization (<20s per GB of text)
- Training custom tokenizers from scratch
- Want alignment tracking (token → original text position)
- Building production NLP pipelines
- Need to tokenize large corpora efficiently
**Performance**:
- **Speed**: <20 seconds to tokenize 1GB on CPU
- **Implementation**: Rust core with Python/Node.js bindings
- **Efficiency**: 10-100× faster than pure Python implementations
**Use alternatives instead**:
- **SentencePiece**: Language-independent, used by T5/ALBERT
- **tiktoken**: OpenAI's BPE tokenizer for GPT models
- **transformers AutoTokenizer**: Loading pretrained only (uses this library internally)
## Quick start
### Installation
```bash
# Install tokenizers
pip install tokenizers
# With transformers integration
pip install tokenizers transformers
```
### Load pretrained tokenizer
```python
from tokenizers import Tokenizer
# Load from HuggingFace Hub
tokenizer = Tokenizer.from_pretrained("bert-base-uncased")
# Encode text
output = tokenizer.encode("Hello, how are you?")
print(output.tokens) # ['hello', ',', 'how', 'are', 'you', '?']
print(output.ids) # [7592, 1010, 2129, 2024, 2017, 1029]
# Decode back
text = tokenizer.decode(output.ids)
print(text) # "hello, how are you?"
```
### Train custom BPE tokenizer
```python
from tokenizers import Tokenizer
from tokenizers.models import BPE
from tokenizers.trainers import BpeTrainer
from tokenizers.pre_tokenizers import Whitespace
# Initialize tokenizer with BPE model
tokenizer = Tokenizer(BPE(unk_token="[UNK]"))
tokenizer.pre_tokenizer = Whitespace()
# Configure trainer
trainer = BpeTrainer(
vocab_size=30000,
special_tokens=["[UNK]", "[CLS]", "[SEP]", "[PAD]", "[MASK]"],
min_frequency=2
)
# Train on files
files = ["train.txt", "validation.txt"]
tokenizer.train(files, trainer)
# Save
tokenizer.save("my-tokenizer.json")
```
**Training time**: ~1-2 minutes for 100MB corpus, ~10-20 minutes for 1GB
### Batch encoding with padding
```python
# Enable padding
tokenizer.enable_padding(pad_id=3, pad_token="[PAD]")
# Encode batch
texts = ["Hello world", "This is a longer sentence"]
encodings = tokenizer.encode_batch(texts)
for encoding in encodings:
print(encoding.ids)
# [101, 7592, 2088, 102, 3, 3, 3]
# [101, 2023, 2003, 1037, 2936, 6251, 102]
```
## Tokenization algorithms
### BPE (Byte-Pair Encoding)
**How it works**:
1. Start with character-level vocabulary
2. Find most frequent character pair
3. Merge into new token, add to vocabulary
4. Repeat until vocabulary size reached
**Used by**: GPT-2, GPT-3, RoBERTa, BART, DeBERTa
```python
from tokenizers import Tokenizer
from tokenizers.models import BPE
from tokenizers.trainers import BpeTrainer
from tokenizers.pre_tokenizers import ByteLevel
tokenizer = Tokenizer(BPE(unk_token="<|endoftext|>"))
tokenizer.pre_tokenizer = ByteLevel()From Patkik/Barcelon_store, MIT.
More from Patkik/Barcelon_store
- 0.474score
anti-slop
Patkik
Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design.
SkillCFreshness: CClaude Code +9 - 0.474score
content-analysis
Patkik
Analyze text content using both traditional NLP and LLM-enhanced methods.
SkillCFreshness: CClaude Code +9 - 0.471score
discover-engineering
rand
Automatically discover software engineering practice skills when working with code review, documentation, pair programming, production debugging, performance…
SkillCFreshness: CClaude Code +9 - 0.471score
discover-frontend
rand
Automatically discover frontend development skills when working with React, Next.js, UI components, state management, data fetching, forms, accessibility…
SkillCFreshness: CClaude Code +9 - 0.471score
discover-research
rand
Automatically discover research methodology skills when working with research methodology, literature review, systematic review, evidence synthesis, academic…
SkillCFreshness: CClaude Code +9 - 0.467score
i-animate
Patkik
Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight.
SkillCFreshness: CClaude Code +9 - 0.467score
i-arrange
Patkik
Improve layout, spacing, and visual rhythm.
SkillCFreshness: CClaude Code +9 - 0.467score
i-audit
Patkik
Perform comprehensive audit of interface quality across accessibility, performance, theming, and responsive design.
SkillCFreshness: CClaude Code +9 - 0.462score
devops-iac-engineer
Patkik
DevOps and Infrastructure-as-Code skill for repeatable cloud provisioning, CI/CD pipelines, and safe environment promotion.
SkillCFreshness: CClaude Code +9 - 0.462score
continual-learning
Patkik
Continual learning skill for turning incidents and outcomes into durable process improvements, runbooks, and prevention rules.
SkillCFreshness: CClaude Code +9 - 0.461score
enterprise-realtime-cloud
Patkik
Enterprise-grade Socket.IO and Google Drive API integration patterns for high-concurrency, distributed systems.
SkillCFreshness: CClaude Code +9 - 0.459score
aif-loop
Patkik
Analyze-Implement-Feedback loop skill for iterative delivery with measurable checkpoints and evidence-based refinement.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Apr 28, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Patkik/Barcelon_store
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.676score
huggingface-tokenizers
Orchestra-Research
Fast tokenizers optimized for research and production.
SkillCFreshness: C★ 13.9KClaude Code +9 - 0.326score
huggingface-tokenizers
Colin4k1024
Fast tokenizers optimized for research and production.
SkillCFreshness: C★ 14Claude Code +9 - 0.313score
huggingface-tokenizers
Tommy-yw
Fast tokenizers optimized for research and production.
SkillCFreshness: C★ 510Claude Code +9 - 0.267score
huggingface-tokenizers
Clay-HHK
Fast tokenizers optimized for research and production.
SkillDFreshness: D★ 3Claude Code +9 - 0.243score
huggingface-tokenizers
future1314
Fast tokenizers optimized for research and production.
SkillDFreshness: DClaude Code +9 - 0.243score
huggingface-tokenizers
Nzettodess
Fast tokenizers optimized for research and production.
SkillDFreshness: DClaude Code +9
More from Patkik
- 0.474score
anti-slop
Patkik
Comprehensive toolkit for detecting and eliminating "AI slop" - generic, low-quality AI-generated patterns in natural language, code, and design.
SkillCFreshness: CClaude Code +9 - 0.474score
content-analysis
Patkik
Analyze text content using both traditional NLP and LLM-enhanced methods.
SkillCFreshness: CClaude Code +9 - 0.467score
i-audit
Patkik
Perform comprehensive audit of interface quality across accessibility, performance, theming, and responsive design.
SkillCFreshness: CClaude Code +9 - 0.467score
i-animate
Patkik
Review a feature and enhance it with purposeful animations, micro-interactions, and motion effects that improve usability and delight.
SkillCFreshness: CClaude Code +9 - 0.467score
i-arrange
Patkik
Improve layout, spacing, and visual rhythm.
SkillCFreshness: CClaude Code +9 - 0.462score
continual-learning
Patkik
Continual learning skill for turning incidents and outcomes into durable process improvements, runbooks, and prevention rules.
SkillCFreshness: CClaude Code +9
Cite this page
huggingface-tokenizers skill. Agent Mart. https://agentmart.dev/skills/patkik-huggingface-tokenizers (last updated 2026-10-24)