Skip to content

Commit eb8f1d4

Browse files
authored
Merge branch 'main' into tutorial_timestamps
2 parents e9da6fc + 2b0e464 commit eb8f1d4

35 files changed

+1665
-482
lines changed

.github/scripts/docathon-label-sync.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ def main():
2525
issue_number = int(re.findall(r'#(\d{1,5})', pull_request_body)[0])
2626
issue = repo.get_issue(issue_number)
2727
issue_labels = issue.labels
28-
docathon_label_present = any(label.name == 'docathon-h2-2023' for label in issue_labels)
28+
docathon_label_present = any(label.name == 'docathon-h1-2024' for label in issue_labels)
2929

3030
# if the issue has a docathon label, add all labels from the issue to the PR.
3131
if not docathon_label_present:
32-
print("The 'docathon-h2-2023' label is not present in the issue.")
32+
print("The 'docathon-h1-2024' label is not present in the issue.")
3333
return
3434
pull_request_labels = pull_request.get_labels()
3535
issue_label_names = [label.name for label in issue_labels]
3636
labels_to_add = [label for label in issue_label_names if label not in pull_request_labels]
3737
if not labels_to_add:
3838
print("The pull request already has the same labels.")
3939
return
40-
pull_request.set_labels(*labels_to_add)
40+
pull_request.add_to_labels(*labels_to_add)
4141
print("Labels added to the pull request!")
4242

4343

.github/workflows/docathon-assign.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
assign:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
1113
steps:
1214
- name: Check for "/assigntome" in comment
1315
uses: actions/github-script@v6
@@ -26,14 +28,14 @@ jobs:
2628
repo: context.repo.repo,
2729
issue_number: issueNumber
2830
});
29-
const hasLabel = issue.labels.some(label => label.name === 'docathon-h2-2023');
31+
const hasLabel = issue.labels.some(label => label.name === 'docathon-h1-2024');
3032
if (hasLabel) {
3133
if (issue.assignee !== null) {
3234
await github.rest.issues.createComment({
3335
owner: context.repo.owner,
3436
repo: context.repo.repo,
3537
issue_number: issueNumber,
36-
body: "The issue is already assigned. Please pick an opened and unnasigned issue with the [docathon-h2-2023 label](https://github.com/pytorch/pytorch/issues?q=is%3Aopen+is%3Aissue+label%3Adocathon-h2-2023)."
38+
body: "The issue is already assigned. Please pick an opened and unnasigned issue with the [docathon-h1-2024 label](https://github.com/pytorch/pytorch/issues?q=is%3Aopen+is%3Aissue+label%3Adocathon-h1-2024)."
3739
});
3840
} else {
3941
await github.rest.issues.addAssignees({
@@ -44,7 +46,7 @@ jobs:
4446
});
4547
}
4648
} else {
47-
const commmentMessage = "This issue does not have the correct label. Please pick an opened and unnasigned issue with the [docathon-h2-2023 label](https://github.com/pytorch/pytorch/issues?q=is%3Aopen+is%3Aissue+label%3Adocathon-h2-2023)."
49+
const commmentMessage = "This issue does not have the correct label. Please pick an opened and unnasigned issue with the [docathon-h1-2024 label](https://github.com/pytorch/pytorch/issues?q=is%3Aopen+is%3Aissue+label%3Adocathon-h1-2024)."
4850
await github.rest.issues.createComment({
4951
owner: context.repo.owner,
5052
repo: context.repo.repo,

.github/workflows/docathon-label-sync.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ on:
77
jobs:
88
check-labels:
99
runs-on: ubuntu-latest
10-
10+
permissions:
11+
issues: write
12+
pull-requests: write
1113
steps:
1214
- name: Check if PR mentions an issue and get labels
1315
uses: actions/checkout@v2
1416
with:
15-
fetch-depth: 0
17+
fetch-depth: 1
1618
- name: Set up Python
1719
uses: actions/setup-python@v2
1820
with:

.jenkins/metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
"intermediate_source/model_parallel_tutorial.py": {
2929
"needs": "linux.16xlarge.nvidia.gpu"
3030
},
31+
"advanced_source/pendulum.py": {
32+
"needs": "linux.g5.4xlarge.nvidia.gpu",
33+
"_comment": "need to be here for the compiling_optimizer_lr_scheduler.py to run."
34+
},
3135
"intermediate_source/torchvision_tutorial.py": {
3236
"needs": "linux.g5.4xlarge.nvidia.gpu",
3337
"_comment": "does not require a5g but needs to run before gpu_quantization_torchao_tutorial.py."
@@ -36,6 +40,9 @@
3640
"needs": "linux.g5.4xlarge.nvidia.gpu",
3741
"_comment": "does not require a5g but needs to run before gpu_quantization_torchao_tutorial.py."
3842
},
43+
"recipes_source/compiling_optimizer_lr_scheduler.py": {
44+
"needs": "linux.g5.4xlarge.nvidia.gpu"
45+
},
3946
"intermediate_source/torch_compile_tutorial.py": {
4047
"needs": "linux.g5.4xlarge.nvidia.gpu"
4148
},

.jenkins/validate_tutorials_built.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@
2626
"beginner_source/text_sentiment_ngrams_tutorial", # not building with 2.3 RC, might be able to turn on with GA
2727
"beginner_source/t5_tutorial", # re-enable after this is fixed: https://github.com/pytorch/text/issues/1756
2828
"intermediate_source/mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
29-
"intermediate_source/torchvision_tutorial", # disable due to RuntimeError: DataLoader worker (pid(s) 20092) exited unexpectedly
3029
"intermediate_source/fx_conv_bn_fuser",
3130
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
3231
"advanced_source/super_resolution_with_onnxruntime",
32+
"advanced_source/python_custom_ops", # https://github.com/pytorch/pytorch/issues/127443
3333
"advanced_source/ddp_pipeline", # requires 4 gpus
3434
"advanced_source/usb_semisup_learn", # fails with CUDA OOM error, should try on a different worker
3535
"prototype_source/fx_graph_mode_ptq_dynamic",
@@ -38,7 +38,6 @@
3838
"prototype_source/nestedtensor",
3939
"recipes_source/recipes/saving_and_loading_models_for_inference",
4040
"recipes_source/recipes/saving_multiple_models_in_one_file",
41-
"recipes_source/recipes/loading_data_recipe",
4241
"recipes_source/recipes/tensorboard_with_pytorch",
4342
"recipes_source/recipes/what_is_state_dict",
4443
"recipes_source/recipes/profiler_recipe",
@@ -55,7 +54,10 @@
5554
"recipes_source/recipes/Captum_Recipe",
5655
"intermediate_source/flask_rest_api_tutorial",
5756
"intermediate_source/text_to_speech_with_torchaudio",
58-
"intermediate_source/tensorboard_profiler_tutorial" # reenable after 2.0 release.
57+
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
58+
"intermediate_source/inductor_debug_cpu", # reenable after 2942
59+
"beginner_source/onnx/onnx_registry_tutorial", # reenable after 2941 is fixed.
60+
"intermediate_source/torch_export_tutorial" # reenable after 2940 is fixed.
5961
]
6062

6163
def tutorial_source_dirs() -> List[Path]:

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ example](https://github.com/pytorch/tutorials/blob/main/_static/img/thumbnails/c
326326

327327
The following command builds an HTML version of the tutorial website.
328328

329-
```
330-
make html-noplot
331-
```
329+
```
330+
make html-noplot
331+
```
332332

333333
This command does not run your tutorial code. To build the tutorial in a
334334
way that executes the code, use `make docs`. However, unless you have a

_static/img/cat_resized.jpg

39.2 KB
Loading

0 commit comments

Comments
 (0)