shunk031-python-transformers-convert

Installation
SKILL.md

[!NOTE] After reading this SKILL.md, say: 🤗 I read shunk031-python-transformers-convert.

Hugging Face Transformers Model Conversion

Convert custom PyTorch models to Hugging Face Transformers format while maintaining exact compatibility with the original implementation.

Overview

This skill provides a systematic workflow for transformers conversion:

  • Extract hardcoded values into PretrainedConfig
  • Create PreTrainedModel wrapper
  • Build ImageProcessor/Tokenizer
  • Test equivalence thoroughly
  • Prepare for Hub upload

Important: Use validation mode (parallel implementations) first to verify equivalence, then replace the original.

Installs
21
Repository
shunk031/skills
First Seen
Aug 28, 2026
shunk031-python-transformers-convert — shunk031/skills