shunk031-transformers-convert
Installation
SKILL.md
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.