transformers
eb981ae8 - Update tiny model creation script (#45241)

Commit
193 days ago
Update tiny model creation script (#45241) * clean * cleanup 1 * Minor cleanups to create_dummy_models.py for readability - Remove leftover debug artifacts: commented-out `from transformers import *`, all `# breakpoint()` calls - Move inline imports to top-level: `importlib`, `re`, `TokenizersBackend`, `VibeVoiceAcousticTokenizerFeatureExtractor`, `FastSpeech2ConformerTokenizer` - Fix 3-space indent in `_to_tuple` - Remove no-op in `fill_result_with_error` - Add `CHECKPOINT_REVISIONS` and `CHECKPOINT_SUBFOLDERS` module-level dicts to replace repetitive if/elif chains in `build_processor` - Extract `_build_model_tester_and_get_config` helper to eliminate duplicated tester instantiation + config-retrieval logic in `get_tiny_config` Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * remove other bad blocks * remove comment * fix wrong _models * revert * fix * fix * update workflow (to be continued) --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Author
Parents
Loading