Skip to content

Commit 787bca7

Browse files
Merge branch 'main' into master
2 parents a0547f5 + 352ae64 commit 787bca7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

intermediate_source/torchrec_intro_tutorial.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
# !pip3 install fbgemm_gpu --index-url https://download.pytorch.org/whl/cu121
4040
# !pip3 install torchmetrics==1.0.3
4141
# !pip3 install torchrec --index-url https://download.pytorch.org/whl/cu121
42+
#
43+
# .. note::
44+
# If you are running this in Google Colab, make sure to switch to a GPU runtime type.
45+
# For more information,
46+
# see `Enabling CUDA <https://pytorch.org/tutorials/beginner/colab#enabling-cuda>`__
47+
#
4248

4349

4450

@@ -217,7 +223,7 @@
217223

218224
######################################################################
219225
# TorchRec Modules and Data Types
220-
# ------------------------------
226+
# ----------------------------------
221227
#
222228
# This section goes over TorchRec Modules and data types including such
223229
# entities as ``EmbeddingCollection`` and ``EmbeddingBagCollection``,
@@ -919,6 +925,7 @@ def _wait_impl(self) -> torch.Tensor:
919925
# the trained model in a Python environment is incredibly inefficient.
920926
# There are two key differences between inference and training
921927
# environments:
928+
#
922929
# * **Quantization**: Inference models are typically
923930
# quantized, where model parameters lose precision for lower latency in
924931
# predictions and reduced model size. For example FP32 (4 bytes) in

0 commit comments

Comments
 (0)