You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Improve modular transformers documentation
- Adds hints to general contribution guides
- Lists which utils scripts are available to generate single-files from modular files and check their content
* Show commands in copyable code cells
---------
Co-authored-by: Joel Koch <[email protected]>
Copy file name to clipboardexpand all lines: docs/source/en/modular_transformers.md
+15-2
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,9 @@ etc. Model contribution PRs rarely add less than 3-5k lines of code, with much o
22
22
This raises the bar for contributions, and with Modular Transformers, we're aiming to lower the bar to a much more
23
23
acceptable point.
24
24
25
+
If you plan to add a model to `transformers` make sure you read [How to add a model to 🤗 Transformers?](https://huggingface.co/docs/transformers/add_new_model).
26
+
For any kind of contributions, see [CONTRIBUTING.md](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md).
27
+
25
28
## What is it?
26
29
27
30
Modular Transformers introduces the concept of a "modular" file to a model folder. This modular file accepts code
@@ -43,6 +46,12 @@ be moved to the new Modular Transformers format in the coming months.
43
46
44
47
### Details
45
48
49
+
To generate a single file from the modular file, run the following command.
0 commit comments