Skip to content

Commit 03afbb2

Browse files
committed
Update
1 parent cba3604 commit 03afbb2

File tree

8 files changed

+365
-396
lines changed

8 files changed

+365
-396
lines changed

.ci/docker/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pytorch-lightning
3030
torchx
3131
torchrl==0.6.0
3232
tensordict==0.6.0
33-
ax-platform>=0.4.0
34-
nbformat>=5.9.2
33+
#ax-platform==0.4.0
34+
nbformat==5.9.2
3535
datasets
3636
transformers
3737
torchmultimodal-nightly # needs to be updated to stable as soon as it's avaialable

.jenkins/insert_last_verified.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
from bs4 import BeautifulSoup
88

9-
109
json_file_path = "tutorials-review-data.json"
1110

1211
# paths to skip from the post-processing script
@@ -31,6 +30,7 @@
3130
"": "", # root dir for index.rst
3231
}
3332

33+
3434
def get_git_log_date(file_path, git_log_args):
3535
try:
3636
result = subprocess.run(
@@ -46,13 +46,17 @@ def get_git_log_date(file_path, git_log_args):
4646
pass
4747
raise ValueError(f"Could not find date for {file_path}")
4848

49+
4950
def get_creation_date(file_path):
50-
return get_git_log_date(file_path, ["--diff-filter=A", "--format=%aD"]).strftime("%b %d, %Y")
51+
return get_git_log_date(file_path, ["--diff-filter=A", "--format=%aD"]).strftime(
52+
"%b %d, %Y"
53+
)
5154

5255

5356
def get_last_updated_date(file_path):
5457
return get_git_log_date(file_path, ["-1", "--format=%aD"]).strftime("%b %d, %Y")
5558

59+
5660
# Try to find the source file with the given base path and the extensions .rst and .py
5761
def find_source_file(base_path):
5862
for ext in [".rst", ".py"]:
@@ -63,7 +67,7 @@ def find_source_file(base_path):
6367

6468

6569
# Function to process a JSON file and insert the "Last Verified" information into the HTML files
66-
def process_json_file(build_dir , json_file_path):
70+
def process_json_file(build_dir, json_file_path):
6771
with open(json_file_path, "r", encoding="utf-8") as json_file:
6872
json_data = json.load(json_file)
6973

@@ -148,13 +152,14 @@ def main():
148152
exit(1)
149153
build_dir = sys.argv[1]
150154
print(f"Build directory: {build_dir}")
151-
process_json_file(build_dir , json_file_path)
155+
process_json_file(build_dir, json_file_path)
152156
print(
153157
"Finished processing JSON file. Please check the output for any warnings. "
154158
"Pages like `nlp/index.html` are generated only during the full `make docs` "
155159
"or `make html` build. Warnings about these files when you run `make html-noplot` "
156160
"can be ignored."
157161
)
158162

163+
159164
if __name__ == "__main__":
160165
main()

_static/js/custom.js

-52
This file was deleted.

beginner_source/index.rst

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
:orphan:
2+
3+
Intro
4+
=====
5+
6+
This is a collection of beginner-friendly resources to help you get
7+
started with PyTorch. These tutorials cover fundamental concepts,
8+
basic operations, and essential workflows to build a solid foundation
9+
for your deep learning journey. Perfect for newcomers looking to
10+
understand PyTorch's core functionality through step-by-step guidance.
11+
12+
.. toctree::
13+
:maxdepth: 1
14+
:hidden:
15+
:includehidden:
16+
:caption: Learn the Basics
17+
18+
beginner/basics/intro
19+
20+
21+
.. toctree::
22+
:maxdepth: 1
23+
:hidden:
24+
:includehidden:
25+
:caption: Introduction to PyTorch - YouTube Series
26+
27+
beginner/introyt/introyt_index
28+
29+
.. toctree::
30+
:maxdepth: 1
31+
:hidden:
32+
:includehidden:
33+
:caption: Learning PyTorch
34+
35+
beginner/deep_learning_60min_blitz
36+
beginner/pytorch_with_examples
37+
beginner/nn_tutorial
38+
intermediate/nlp_from_scratch_index
39+
intermediate/tensorboard_tutorial
40+
intermediate/pinmem_nonblock

0 commit comments

Comments
 (0)