pytorch / tutorials

PyTorch tutorials.
https://pytorch.org/tutorials/
BSD 3-Clause "New" or "Revised" License
8.22k stars 4.07k forks source link

~PyTorch Docathon H1 2023~ #2350

Closed svekars closed 1 year ago

svekars commented 1 year ago

πŸŽ‰ It's a wrap! πŸŽ‰

See our leaderboard and blog post. Thank you to everyone who contributed and congrats to the winners!

We have a large backlog of issues that we want to address and it's a great opportunity for you to start contributing to PyTorch. We have limited this docathon to the pytorch/tutorials and pytorch/examples repositories, so please work on the issues from these two repositories.

Date and location

WHEN: The docathon starts on May 31st 10 AM PST. Please do not work on tasks until then. We will continue accepting new submissions until 5 PM PST on June 11th. WHERE: Virtual WHAT: Issues with the docathon-h1-2023 label - will be posted on May 31.

Watch our intro video to learn more details about the event.

Watch the docathon intro

Can everyone participate?

We encourage everyone to consider participating in the docathon but there are a few things we expect from the participants:

Before you start contributing make sure to read Linux Foundation Code of Conduct.

What contributions are we looking for?

All issues for this docathon are tagged with the docathon-h1-2023 label. Please note that contributions that address other issues won't be counted. We are primarily looking for the following contributions:

NOTE: Please avoid working on issues with intel, amd, and nvidia labels which are reserved for our partners.

NOTE: Due to the large number of RSVPs, the tasks are provided on a first come first serve basis β€” please don't hoard the tasks!

Difficulty Levels

The issues have three levels of difficulty: easy, medium, and advanced. If this is your first time contributing to PyTorch, we recommend that you start with an issue that is tagged as easy.

How to contribute to tutorials?

  1. Read pytorch/tutorials/CONTRIBUTING.md for general guidelines on how the submission process works and overall style and voice.
  2. Pick an issue that is labeled as docathon-h1-2023.
  3. In the issue, add a comment with the text /assigntome. If the issue is already assigned, please find another issue to work on. We ask that you assign one issue at a time - we want to give everyone a fair chance to participate. When you are done with one issue and get it approved, you can assign another one to yourself and start working on it.
  4. If you are submitting a new tutorial, use this template.
  5. Fork or clone the PyTorch repository to your computer. For simple fixes, like incorrect URLs, you could use the GitHub UI as well.
  6. Create a branch and work on the fix.
  7. Test your fix by running the single tutorial locally. Don't run the whole build as it takes hours and requires a GPU. You can run one tutorial as a script python3 or GALLERY_PATTERN="neural_style_transfer_tutorial.py" make html
  8. After you fix all the issues, you are ready to submit your PR.

Submit Your PR

  1. Submit your PR referencing the issue you've picked. For example:
s_pytorch_pr_example
  1. If you have not yet, sign the Contributor License Agreement (CLA) - prompted as a check in the PR. We can't accept any PRs without a signed CLA.

  2. Watch for any CI errors and fix as needed - all checks must pass successfully.

  3. There are two ways to check the resulting HTML. For simple fixes and .rst files, you can check the HTML output in Netlify that is posted as Netlify bot comment in the PR. For new tutorials and significant rewrites, you need to make sure that the output is generated correct. You can check the generated output for python tutorials in the ARTIFACTS tab in CricleCI:

    1. In the list of checks, click Details on the ci/circleci: pytorch_tutorial_pr_build_manager check

      s_PR_manager
    2. In the CircleCI UI, select the ARTIFACTS tab, open tutorials/index.html, and locate you tutorial in this preview:

      s_PR_artifacts
  4. The reviewers might provide feedback that we expect you to address.

  5. When all feedback is addressed and your PR is approved - one of the reviewers will merge your PR.

How to contribute to examples?

In the examples repo, we are looking to create a few new examples that demonstrate how to create models from scratch. Pre-trained models will not be accepted. Note, that all contributions to the examples repo are advanced and if you are not as familiar with PyTorch, you might want to pick an issue in the pytorch/tutorials repo instead. There is only one issue in the pytorch/examples repo:

  1. Read the examples/CONTRIBUTING.md for general guidelines on the submission.
  2. Review the list of new examples we want to create in this issue and pick a model you want to write an example about.
  3. Before starting to write your code, check the comments in the issue to verify that no one is actively working on the example you picked. If in doubt, ping @msaroufim.
  4. Your submission must be a new folder named after the example, in which you'll have: your Python file implementing a PyTorch model from scratch with no dependencies, requirements.txt, a 1 line test, a README.md and optionally a short update to the pytorch.org/examples page. See this example for reference and the issue for more detailed instructions.
  5. Tag your PR with the docathon-h1-2023 label to ensure your contribution is counted as a docathon submission. In the description of the PR, link to the issue #1131 like this: Re: #1131.
  6. Address feedback in your PR and make sure the test passes.
  7. After your PR is merged, delete your branch and mark the model you've described in the checklist in the issue.

Can I partner with someone to work on an issue?

Unless you are working on a completely new tutorial from scratch, most of the issues should be possible to address on your own. If you decide to partner with someone, you can find someone to work with on our Slack channel by posting a free-form request to collaborate. One individual from the group can submit a PR referring others as co-authors by specifying their GitHub usernames in the commit message like this:

Co-authored-by: NAME <NAME@EXAMPLE.COM>
Co-authored-by: ANOTHER-NAME <ANOTHER-NAME@EXAMPLE.COM>

Depending on the complexity of the issue, we reserve the right to decline contributions from multiple co-authors for trivial issues like fixing formatting, broken links, or very small code changes. For all issues that are not new tutorials or examples, please, limit the number of co-authors to two.

Top contributors recognition

For all contributions addressing the issues with the docathon-h1-2023 label merged to the main branch in pytorch/tutorials or pytorch/examples repos during the period from May 31 to June 15, you will get a special PyTorch GitHub badge. The issues will be released on the first day of the docathon. The top contributors will receive additional recognition and will be featured in a PyTorch social media announcement.

Questions?

You can post your questions in the docathon Slack channel.

kiszk commented 1 year ago

I cannot find the invitation to the slack channel. Could you please send an invitation again? Thanks in advance.

svekars commented 1 year ago

@kiszk I just sent an invite. Can you please take a look?

kiszk commented 1 year ago

Thanks, got it.

sunzhongkai588 commented 1 year ago

the invitation is invalid. Could you please send an invitation again? Thx

Viditagarwal7479 commented 1 year ago

Hey, when I am trying to register for the Docathon, LF page is showing that the event is full with a participant count of 242. It's hardly 12hrs since launch. Could anything be done regarding this? Thanks. Screenshot_20230601-100406

iswarup commented 1 year ago

@kiszk I just sent an invite. Can you please take a look?

Hi @svekars Where do we get these invitations? I searched my Gmail inbox but couldn't find it. Please help

bjhargrave commented 1 year ago

You may want to fix the main comment where it says

In the issue, add a comment with the text \assigntome

to

In the issue, add a comment with the text /assigntome

I have seen several issues where the contributor used the backslash variation which was not understood by the bot.

github-actions[bot] commented 1 year ago

The issue is already assigned. Please pick an opened and unnasigned issue with the docathon-h1-2023 label.

carljparker commented 1 year ago

@kiszk I just sent an invite. Can you please take a look?

Hi @svekars Where do we get these invitations? I searched my Gmail inbox but couldn't find it. Please help

@iswarup I'm afraid that you are not on our list of people who registered for this docathon, so you did not receive the invite . . . :-( . . . But we plan to have other docathons in the future. Appreciate your interest.

Ilinapradhan commented 1 year ago

I cannot find the invitation to the slack channel. Could you please send an invitation again? Thanks in advance.

Ilinapradhan commented 1 year ago

My email id -ilina04khushi@gmail.com

svekars commented 1 year ago

you are already in the channel @Ilinapradhan

NeoKish commented 1 year ago

@svekars Yeah even I couldn't find the slack channel in the emails from LFHQ

svekars commented 1 year ago

@NeoKish just sent you an invite