transformers-config-tokenizers-expert

Identify tokenizer and config drift across HuggingFace Transformers snapshots.

5|1|Updated Apr 19, 2026
One-click install
npx skills add https://github.com/air-gapped/skills --skill transformers-config-tokenizers-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: transformers-config-tokenizers-expert
Source: https://github.com/air-gapped/skills/tree/main/.claude/skills/transformers-config-tokenizers-expert
Command: npx skills add https://github.com/air-gapped/skills --skill transformers-config-tokenizers-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

The skill helps engineers identify and reason about tokenizer/config drift across HuggingFace Transformers snapshots, surfacing risks such as EOS token drift, added_tokens shapes, chat_template loading issues, and drift between tokenizer_config.json, tokenizer.json, and generation_config.json.

Core Features & Use Cases

  • Surface EOS/token drift across tokenizer_config.json, generation_config.json, and config.json.
  • Detect extra_special_tokens shape issues and chat_template drift between sidecar and inline templates.
  • Provide guidance for offline and air-gapped usage, including how to verify added_tokens and drift diagnostics.

Quick Start

Load a HF snapshot and run a drift audit across tokenizer_config.json, generation_config.json, config.json, tokenizer.json, and chat_template.jinja to surface drift.

Frequently Asked Questions about transformers-config-tokenizers-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is tokenizer config drift in HuggingFace Transformers?

Detect tokenizer config drift by loading a HuggingFace Transformers snapshot and running an audit across tokenizer_config.json, generation_config.json, config.json, tokenizer.json, and chat_template.jinja to surface EOS token drift, added_tokens shapes, and chat_template inconsistencies.

How do I check chat_template drift between sidecar and inline templates?

Check chat_template drift by validating the chat_template.jinja sidecar file against the inline chat_template defined in tokenizer_config.json. This surfaces loading behavior issues and template rendering inconsistencies across different model families like Qwen3, Gemma-4, and GLM-5.1.

Can I audit tokenizer config drift for offline or air-gapped environments?

Yes, you can audit tokenizer config drift offline. The process validates added_tokens and drift diagnostics directly against local snapshot files like tokenizer.json and generation_config.json without requiring external network access or downloading dependencies.

Why does my model generate incorrect outputs after loading a HuggingFace snapshot?

Incorrect generation often stems from EOS token drift or extra_special_tokens shape issues across tokenizer_config.json and generation_config.json. Diagnosing these configuration mismatches helps identify why the model terminates generation prematurely or produces malformed outputs.

What's the best way to validate added_tokens shapes across different model families?

The best way to validate added_tokens shapes is cross-referencing the added_tokens definitions in tokenizer.json against the extra_special_tokens in tokenizer_config.json. This surfaces shape inconsistencies across model families like Kimi-K2, Qwen3, and Gemma-4.