Add a template for examples and apply it for mlm and plm examples (#8153)
* Add a template for example scripts and apply it to mlm * Formatting * Fix test * Add plm script * Add a template for example scripts and apply it to mlm * Formatting * Fix test * Add plm script * Add a template for example scripts and apply it to mlm * Formatting * Fix test * Add plm script * Styling
This commit is contained in:
8
templates/adding_a_new_example_script/cookiecutter.json
Normal file
8
templates/adding_a_new_example_script/cookiecutter.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"example_name": "text classification",
|
||||
"directory_name": "{{cookiecutter.example_name|lower|replace(' ', '-')}}",
|
||||
"example_shortcut": "{{cookiecutter.directory_name}}",
|
||||
"model_class": "AutoModel",
|
||||
"authors": "The HuggingFace Team",
|
||||
"can_train_from_scratch": ["True", "False"]
|
||||
}
|
||||
Reference in New Issue
Block a user