[modular] CLI allows positional arguments, and more defaults names for the optional arg (#38979)

* More defaults

* Update modular_model_converter.py
This commit is contained in:
Cyril Vallez
2025-06-23 12:40:01 +02:00
committed by GitHub
parent 334bf913dc
commit 74f5e4a1fa
2 changed files with 21 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ A linter "unravels" the modular file into a `modeling.py` file to preserve the s
Run the command below to automatically generate a `modeling.py` file from a modular file.
```bash
python utils/modular_model_converter.py --files_to_parse src/transformers/models/<your_model>/modular_<your_model>.py
python utils/modular_model_converter.py --files-to-parse src/transformers/models/<your_model>/modular_<your_model>.py
```
For example: