|
1 | 1 | # PyTorch Tutorial Submission Policy
|
2 | 2 |
|
3 |
| -This policy outlines the criteria and process for submitting new tutorials to the PyTorch community. |
4 |
| -Our goal is to ensure that all tutorials are of high quality, relevant, and up-to-date, supporting |
5 |
| -both the growth of our users and the evolution of the PyTorch framework itself. By following these |
6 |
| -guidelines, contributors can help us maintain a robust and informative educational environment. |
| 3 | +This policy outlines the criteria and process for submitting new |
| 4 | +tutorials to the PyTorch community. |
| 5 | +Our goal is to ensure that all tutorials are of high quality, |
| 6 | +relevant, and up-to-date, supporting both the growth of the PyTorch |
| 7 | +users and the evolution of the PyTorch framework itself. By following |
| 8 | +these guidelines, contributors can help us maintain a robust and |
| 9 | +informative educational environment. |
7 | 10 |
|
8 | 11 | ## Acceptance Criteria For New Tutorials
|
9 |
| -We are committed to enhancing the learning experience for PyTorch users by providing high-quality |
10 |
| -tutorials. We accept new tutorials that adhere to one of the following use cases: |
11 |
| - |
12 |
| -* **Support for New PyTorch Features:** Tutorials that support new features for upcoming PyTorch |
13 |
| -releases are typically authored by the engineers who are developing these features. These tutorials |
14 |
| -are crucial for showcasing the latest advancements in PyTorch. |
15 |
| - |
16 |
| -* **Tutorials from PyTorch Partners:** We welcome tutorials from our partners who are actively |
17 |
| - collaborating with us to grow the PyTorch ecosystem. |
18 |
| - |
19 |
| -* **Direct Requests from PyTorch Maintainers:** If a PyTorch maintainer has directly reached out |
20 |
| - to you to request a tutorial or otherwise, endorsed a tutorial, this indicates a specific need |
21 |
| - within the community or the project. |
22 |
| - |
23 |
| -* **Tutorials from the open-source community members:** We accept tutorials from the community |
24 |
| - members. However, as we can't accept all of them, we have identified the process below. |
25 |
| - Please read below before sending a PR. |
26 |
| - |
27 |
| -The first three use cases do not require following the submission process described below. |
28 |
| -If your tutorial falls under the fourth category, please read and follow the instructions in |
29 |
| -the **Submission Process For Community-Contributed Tutorials** section. |
| 12 | + |
| 13 | +We accept new tutorials that adhere to one of the following use cases: |
| 14 | + |
| 15 | +* **Support for New PyTorch Features:** Tutorials that support new features |
| 16 | + for upcoming PyTorch releases are typically authored by the engineers who |
| 17 | + are developing these features. These tutorials are crucial for showcasing |
| 18 | + the latest advancements in PyTorch. We typically don't require more than |
| 19 | + one tutorial per feature. |
| 20 | + |
| 21 | +* **Tutorials showcasing PyTorch usage with other tools and libraries:** We |
| 22 | + accept community-contributed tutorials that illustrate innovative uses of |
| 23 | + PyTorch alongside other open-source projects, models, and tools. Please |
| 24 | + ensure that your tutorial remains neutral and does not promote or endorse |
| 25 | + proprietary technologies over others. |
| 26 | + |
| 27 | +The first use case does not require going through the submission |
| 28 | +process outlined below. If your tutorial falls under the second category, |
| 29 | +please read and follow the instructions in the |
| 30 | +**Submission Process For Community-Contributed Tutorials** section. |
30 | 31 |
|
31 | 32 | ## Submission Process For Community-Contributed Tutorials
|
32 | 33 |
|
33 |
| -To maintain the quality and relevance of tutorials, community-contributed tutorials must undergo |
34 |
| -a review process. If you are interested in contributing a tutorial, please follow these steps: |
| 34 | +To maintain the quality and relevance of tutorials, we request that |
| 35 | +community-contributed tutorials undergo a review process. If you are |
| 36 | +interested in contributing a tutorial, please follow these steps: |
35 | 37 |
|
36 | 38 | 1. **Create an issue:**
|
37 |
| - * Open an issue in the pytorch/tutorials repository proposing the new tutorial. Clearly |
38 |
| - explain the importance of the tutorial and confirm that there is no existing tutorial |
39 |
| - covering the same or similar topic. A tutorial can't endorse one technology over another. |
| 39 | + * Open an issue in the pytorch/tutorials repository proposing the |
| 40 | + new tutorial. Clearly explain the importance of the tutorial and |
| 41 | + confirm that there is no existing tutorial covering the same or |
| 42 | + similar topic. A tutorial should not disproportionately endorse |
| 43 | + one technology over another. Please consult with Core Maintainers |
| 44 | + to ensure your content adheres to these guidelines. |
| 45 | + Use the provided `ISSUE_TEMPLATE` for the new tutorial request. |
| 46 | + |
| 47 | + * If there is a tutorial on the existing topic that you would like |
| 48 | + to significantly refactor, you can just submit a PR. In the |
| 49 | + description of the PR explain why the changes are needed and |
| 50 | + how they improve the tutorial. |
| 51 | + |
40 | 52 | * These issues will be triaged by PyTorch maintainers on a case-by-case basis.
|
41 |
| - * Link any supporting materials including discussions in other repositories". |
| 53 | + * Link any supporting materials including discussions in other repositories. |
42 | 54 |
|
43 | 55 | 1. **Await Approval:**
|
44 |
| - * Wait for a response from the PyTorch maintainers. They will review your proposal and |
45 |
| - determine whether a tutorial on the proposed topic is desirable. **Do not submit a PR with |
46 |
| - your tutorial** before you receive an approval. |
| 56 | + * Wait for a response from the PyTorch maintainers. A PyTorch |
| 57 | + tutorial maintainer will review your proposal and |
| 58 | + determine whether a tutorial on the proposed topic is desirable. |
| 59 | + A comment and an **approved** label will be added to your tutorial |
| 60 | + by a maintainer. Review process for new tutorial PRs submitted |
| 61 | + without the corresponding issue will take longer. |
47 | 62 |
|
48 | 63 | 1. **Adhere to writing and styling guidelines:**
|
49 | 64 | * Once approved, follow the guidelines outlined in [CONTRIBUTING.md](https://github.com/pytorch/tutorials/blob/main/CONTRIBUTING.md)
|
50 | 65 | and use the provided [template](https://github.com/pytorch/tutorials/blob/main/beginner_source/template_tutorial.py) for creating your tutorial.
|
51 |
| - * Link the issue where you received an approval for your tutorial in the PR. |
52 |
| - * We accept tutorials in both ``.rst`` (ReStructuredText) and ``.py`` (Python) |
53 |
| - formats. However, unless your tutorial involves using multiple GPU, parallel/distributed |
54 |
| - training, or requires extended execution time (25 minutes or more), we prefer submissions |
| 66 | + * Link the issue in which you received an approval for your tutorial |
| 67 | + in the PR. |
| 68 | + * We accept tutorials in both ``.rst`` (ReStructuredText) and ``.py`` |
| 69 | + (Python) formats. However, unless your tutorial involves using |
| 70 | + multiple GPU, parallel/distributed training, or requires extended |
| 71 | + execution time (25 minutes or more), we prefer submissions |
55 | 72 | in Python file format versus ``.rst``.
|
56 | 73 |
|
57 |
| -1. **Maintenance:** |
58 |
| - * By submitting a new tutorial, you agree to maintain it up-to-date with the latest PyTorch |
59 |
| - updates and new features, review issues and pull requests and bugs submitted against the |
60 |
| - tutorials and overall take proactive actions to ensure quality of the tutorial. |
61 |
| - * Each tutorial must be updated by its owners at least once a year. Tutorials that are |
62 |
| - abandoned by the owners will be eventually deprecated. |
63 |
| - |
64 |
| -We reserve the right to decline any new tutorial submissions that do not follow this policy. |
| 74 | +## Maintening Tutorials |
| 75 | + |
| 76 | +When you submit a new tutorial, we encourage you to keep it updated |
| 77 | +with the latest PyTorch updates and features. Additionally, we may |
| 78 | +contact you to review any PRs, issues, and other related matters to |
| 79 | +ensure the tutorial remains a valuable resource. |
| 80 | + |
| 81 | +Please note the following: |
| 82 | + |
| 83 | +* If a tutorial is broken against the main branch, the tutorial will |
| 84 | + be excluded from the build and an issue will be filed against it |
| 85 | + with the author/maintainer notified about the issue. If the issue |
| 86 | + is not resolved within 90 days, the tutorial might be deleted from |
| 87 | + the repository. |
| 88 | + |
| 89 | +* We recommend that each tutorial is reviewed at least once a year to |
| 90 | + ensure its relevance. |
| 91 | + |
| 92 | +## Deleting Stale Tutorials |
| 93 | + |
| 94 | +A tutorial might be considered stale when it has not been updated for |
| 95 | +a significant period (more than a year) and no longer aligns with the |
| 96 | +latest PyTorch updates, features, or best practices. Other indicators |
| 97 | +of a stale tutorial include: |
| 98 | + |
| 99 | +* The tutorial is no longer functional due to changes in PyTorch or |
| 100 | + its dependencies |
| 101 | +* The tutorial has been superseded by a newer, more comprehensive, or |
| 102 | + more accurate tutorial |
| 103 | +* The tutorial does not run successfully in the (CI), indicating |
| 104 | + potential compatibility or dependency issues. |
| 105 | + |
| 106 | +If a tutorial is deemed stale, we will attempt to contact the code owner |
| 107 | +or someone from the tutorial mainatainers might attempt to update it. |
| 108 | +However, if despite those attempts, we fail to fix it, the tutorial |
| 109 | +might be removed from the repository. |
0 commit comments