Skip to content

Commit fda1f62

Browse files
authored
Merge branch 'main' into add-last-reviewed
2 parents bdc6f6f + 3ba3a46 commit fda1f62

14 files changed

+1068
-40
lines changed

.jenkins/metadata.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"recipes_source/torch_export_aoti_python.py": {
3535
"needs": "linux.g5.4xlarge.nvidia.gpu"
36-
},
36+
},
3737
"advanced_source/pendulum.py": {
3838
"needs": "linux.g5.4xlarge.nvidia.gpu",
3939
"_comment": "need to be here for the compiling_optimizer_lr_scheduler.py to run."
@@ -58,6 +58,9 @@
5858
"intermediate_source/scaled_dot_product_attention_tutorial.py": {
5959
"needs": "linux.g5.4xlarge.nvidia.gpu"
6060
},
61+
"intermediate_source/transformer_building_blocks.py": {
62+
"needs": "linux.g5.4xlarge.nvidia.gpu"
63+
},
6164
"recipes_source/torch_compile_user_defined_triton_kernel_tutorial.py": {
6265
"needs": "linux.g5.4xlarge.nvidia.gpu"
6366
},

.jenkins/validate_tutorials_built.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"intermediate_source/mnist_train_nas", # used by ax_multiobjective_nas_tutorial.py
2626
"intermediate_source/fx_conv_bn_fuser",
2727
"intermediate_source/_torch_export_nightly_tutorial", # does not work on release
28+
"intermediate_source/transformer_building_blocks", # does not work on release
2829
"advanced_source/super_resolution_with_onnxruntime",
2930
"advanced_source/usb_semisup_learn", # fails with CUDA OOM error, should try on a different worker
3031
"prototype_source/fx_graph_mode_ptq_dynamic",

.lycheeignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ file:\/\/\/.*
99

1010
# Ignore colab link in the setting of conf.py
1111
https://pytorch.org/tutorials/beginner/colab/n
12+
13+
# Ignore local host link from intermediate_source/tensorboard_tutorial.rst
14+
http://localhost:6006

_static/css/custom.css

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,5 @@
9393
}
9494

9595
.pytorch-left-menu-search input[type=text] {
96-
background-image: none;
97-
}
98-
99-
.gsc-control-cse {
100-
padding-left: 0px !important;
101-
padding-bottom: 0px !important;
102-
}
103-
104-
.gsc-search-button .gsc-search-button-v2:focus {
105-
border: transparent !important;
106-
outline: none;
107-
box-shadow: none;
108-
}
109-
.gsc-search-button-v2:active {
110-
border: none !important;
111-
}
112-
.gsc-search-button-v2 {
113-
border: none !important;
96+
background-image: url("../images/search-icon.svg");
11497
}

_static/css/custom2.css

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,78 @@
3535
.pytorch-left-menu li.toctree-l1.current > a:before {
3636
content: "";
3737
}
38+
39+
/* search radio button*/
40+
41+
input[type="radio"] {
42+
accent-color: #ee4c2c;
43+
}
44+
45+
.gsst_b {
46+
display: none;
47+
}
48+
49+
#gsc-i-id1 {
50+
height: 1.5rem;
51+
text-indent: 12px !important;
52+
font-size: 1rem !important;
53+
font-family: "FreightSansi";
54+
background-image: url(../images/search-icon.svg) !important;
55+
background-repeat: no-repeat !important;
56+
background-size: 18px 18px !important;
57+
background-position: 5px 0px !important;
58+
padding-left: 20px !important;
59+
}
60+
61+
#gsc-i-id1::placeholder {
62+
font-family: 'FreightSans';
63+
font-size: 1rem;
64+
color: #262626;
65+
}
66+
67+
.gsc-control-cse {
68+
padding: 0 !important;
69+
border-radius: 0px !important;
70+
border: none !important;
71+
}
72+
73+
.gsc-overflow-hidden {
74+
overflow: visible !important;
75+
}
76+
77+
#___gcse_0 {
78+
height: 44px !important;
79+
padding: 0 !important;
80+
}
81+
82+
table.gsc-search-box td.gsc-input {
83+
padding-right: 0 !important;
84+
}
85+
86+
table.gsc-search-box td {
87+
height: 44px;
88+
margin-bottom: 0 !important;
89+
padding-bottom: 0 !important;
90+
}
91+
92+
.gsc-search-button-v2 {
93+
display: none;
94+
}
95+
96+
.gs_id50 {
97+
width: 308px;
98+
}
99+
100+
.gsib_a {
101+
padding: 0px 8px 4px 9px !important;
102+
}
103+
104+
.gsc-input-box {
105+
border-radius: 0px !important;
106+
border: none !important;
107+
}
108+
109+
form.gsc-search-box {
110+
margin-bottom 0px;
111+
}
112+

_templates/layout.html

Lines changed: 77 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{% extends "!layout.html" %}
22

3-
43
<!-- Overrides needed for the multilevel nav -->
54
{% block menu %}
65
{% if 'singlehtml' not in builder %}
@@ -30,24 +29,87 @@
3029
{%- endblock %}
3130

3231
{% block sidebartitle %}
33-
{% if theme_display_version %}
34-
{%- set nav_version = version %}
35-
{% if READTHEDOCS and current_version %}
36-
{%- set nav_version = current_version %}
37-
{% endif %}
38-
{% if nav_version %}
39-
<div class="version">
40-
{{ nav_version }}
41-
</div>
42-
{% endif %}
32+
33+
{% if theme_display_version %}
34+
{%- set nav_version = version %}
35+
{% if READTHEDOCS and current_version %}
36+
{%- set nav_version = current_version %}
4337
{% endif %}
44-
<div class="searchbox">
45-
<script async src="https://cse.google.com/cse.js?cx=e65585f8c3ea1440e"></script>
46-
<div class="gcse-search"></div>
38+
{% if nav_version %}
39+
<div class="version">
40+
{{ nav_version }}
41+
</div>
42+
{% endif %}
43+
{% endif %}
44+
45+
<!-- Search box -->
46+
<div id="searchBox">
47+
<div class="searchbox" id="googleSearchBox">
48+
<script async src="https://cse.google.com/cse.js?cx=e65585f8c3ea1440e"></script>
49+
<div class="gcse-search"></div>
4750
</div>
51+
<div id="sphinxSearchBox" style="display: none;">
52+
<div role="search">
53+
<form id="rtd-search-form" class="wy-form" action="{{ pathto('search') }}" method="get">
54+
<input type="text" name="q" placeholder="Search Docs" />
55+
<input type="hidden" name="check_keywords" value="yes" />
56+
<input type="hidden" name="area" value="default" />
57+
</form>
58+
</div>
59+
</div>
60+
</div>
61+
<form id="searchForm">
62+
<label style="margin-bottom: 1rem">
63+
<input type="radio" name="searchType" value="google" checked>
64+
Google Search
65+
</label>
66+
<label style="margin-bottom: 1rem">
67+
<input type="radio" name="searchType" value="sphinx">
68+
Classic Search
69+
</label>
70+
</form>
71+
72+
<script>
73+
document.addEventListener('DOMContentLoaded', function() {
74+
const searchForm = document.getElementById('searchForm');
75+
const googleSearchBox = document.getElementById('googleSearchBox');
76+
const sphinxSearchBox = document.getElementById('sphinxSearchBox');
77+
// Function to toggle search box visibility
78+
function toggleSearchBox(searchType) {
79+
googleSearchBox.style.display = searchType === 'google' ? 'block' : 'none';
80+
sphinxSearchBox.style.display = searchType === 'sphinx' ? 'block' : 'none';
81+
}
82+
// Determine the default search type
83+
let defaultSearchType = 'google';
84+
if (window.location.href.startsWith('https://docs-preview.pytorch.org/')) {
85+
defaultSearchType = 'sphinx';
86+
} else {
87+
defaultSearchType = localStorage.getItem('searchType') || 'google';
88+
}
89+
// Set the default search type
90+
document.querySelector(`input[name="searchType"][value="${defaultSearchType}"]`).checked = true;
91+
toggleSearchBox(defaultSearchType);
92+
// Event listener for changes in search type
93+
searchForm.addEventListener('change', function(event) {
94+
const selectedSearchType = event.target.value;
95+
localStorage.setItem('searchType', selectedSearchType);
96+
toggleSearchBox(selectedSearchType);
97+
});
98+
// Set placeholder text for Google search box
99+
window.onload = function() {
100+
var placeholderText = "Search Docs";
101+
var googleSearchboxText = document.querySelector("#gsc-i-id1");
102+
if (googleSearchboxText) {
103+
googleSearchboxText.placeholder = placeholderText;
104+
googleSearchboxText.style.fontFamily = 'FreightSans';
105+
googleSearchboxText.style.fontSize = "1.2rem";
106+
googleSearchboxText.style.color = '#262626';
107+
}
108+
};
109+
});
110+
</script>
48111
{% endblock %}
49112

50-
51113
{% block footer %}
52114
{{ super() }}
53115
<script>

beginner_source/ddp_series_intro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Distributed Data Parallel in PyTorch - Video Tutorials
88
======================================================
99

10-
Authors: `Suraj Subramanian <https://github.com/suraj813>`__
10+
Authors: `Suraj Subramanian <https://github.com/subramen>`__
1111

1212
Follow along with the video below or on `youtube <https://www.youtube.com/watch/-K3bZYHYHEA>`__.
1313

beginner_source/ddp_series_theory.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
What is Distributed Data Parallel (DDP)
88
=======================================
99

10-
Authors: `Suraj Subramanian <https://github.com/suraj813>`__
10+
Authors: `Suraj Subramanian <https://github.com/subramen>`__
1111

1212
.. grid:: 2
1313

en-wordlist.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ACL
22
ADI
3+
ALiBi
34
AOT
45
AOTInductor
56
APIs
@@ -79,6 +80,7 @@ FX
7980
FX's
8081
FairSeq
8182
Fastpath
83+
FFN
8284
FloydHub
8385
FloydHub's
8486
Frobenius
@@ -127,6 +129,7 @@ Kihyuk
127129
Kiuk
128130
Kubernetes
129131
Kuei
132+
KV
130133
LRSchedulers
131134
LSTM
132135
LSTMs
@@ -162,6 +165,7 @@ NLP
162165
NTK
163166
NUMA
164167
NaN
168+
NaNs
165169
NanoGPT
166170
Netron
167171
NeurIPS
@@ -231,6 +235,7 @@ Sigmoid
231235
SoTA
232236
Sohn
233237
Spacy
238+
SwiGLU
234239
TCP
235240
THP
236241
TIAToolbox
@@ -276,6 +281,7 @@ Xcode
276281
Xeon
277282
Yidong
278283
YouTube
284+
Zipf
279285
accelerometer
280286
accuracies
281287
activations
@@ -305,6 +311,7 @@ bbAP
305311
benchmarked
306312
benchmarking
307313
bitwise
314+
bool
308315
boolean
309316
breakpoint
310317
broadcasted
@@ -333,6 +340,7 @@ csv
333340
cuDNN
334341
cuda
335342
customizable
343+
customizations
336344
datafile
337345
dataflow
338346
dataframe
@@ -377,6 +385,7 @@ fbgemm
377385
feedforward
378386
finetune
379387
finetuning
388+
FlexAttention
380389
fp
381390
frontend
382391
functionalized
@@ -431,6 +440,7 @@ mAP
431440
macos
432441
manualSeed
433442
matmul
443+
matmuls
434444
matplotlib
435445
memcpy
436446
memset
@@ -446,6 +456,7 @@ modularized
446456
mpp
447457
mucosa
448458
multihead
459+
MultiheadAttention
449460
multimodal
450461
multimodality
451462
multinode
@@ -456,7 +467,11 @@ multithreading
456467
namespace
457468
natively
458469
ndarrays
470+
nheads
459471
nightlies
472+
NJT
473+
NJTs
474+
NJT's
460475
num
461476
numericalize
462477
numpy
@@ -532,6 +547,7 @@ runtime
532547
runtime
533548
runtimes
534549
scalable
550+
SDPA
535551
sharded
536552
softmax
537553
sparsified
@@ -591,12 +607,14 @@ tradeoff
591607
tradeoffs
592608
triton
593609
uint
610+
UX
594611
umap
595612
uncomment
596613
uncommented
597614
underflowing
598615
unfused
599616
unimodal
617+
unigram
600618
unnormalized
601619
unoptimized
602620
unparametrized
@@ -618,6 +636,7 @@ warmstarted
618636
warmstarting
619637
warmup
620638
webp
639+
wikitext
621640
wsi
622641
wsis
623642
Meta's

0 commit comments

Comments
 (0)