Skip to content

Conversation

pull[bot]
Copy link

@pull pull bot commented Apr 11, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

@pull pull bot added the ⤵️ pull label Apr 11, 2023
petergtz and others added 29 commits May 31, 2024 08:49
Batch size must be an int, not a float. This change fixes it, basically doing the same as in https://github.com/seba-1511/dist_tuto.pth/blob/a552567061a9985cdcfe72ecb9b47e4630d6a7fe/train_dist.py#L85.

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Fix indent show copy of code doesn't include tick marks

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* DEP: deprecate transformer tutorial

* Update beginner_source/transformer_tutorial.rst

* Update beginner_source/transformer_tutorial.rst

---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* Remove torchvision_tutorial from validate_tutorials_built.py
* Fix multiprocessing in torchvision_tutorial.py

---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* [Docs] Update performance tuning guide
Added cuda graph explaination
Added core pinning section
Added tensor core usage section


---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Many overdue updates
* updating the overview to include TP/PP and DTensor/Devicemesh
* removing RPC, DataParallel and Elastic as they are no longer supported
Didn't realize that this was a convention, so restoring it
…ders (#2922)

* add redirect to data tutorial
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* Add new Python and C++/CUDA Custom Op tutorials

I want to land this before PyTorch 2.4 (so we can link to these in
PyTorch's nightly documentation) and then have a follow-up PR for 2.4
that actually runs the scripts (so that they can generate outputs).

pytorch/pytorch#127443 to remind myself of the
above.

NB: These two tutorials replace all of the existing custom ops (and cpp
extensions) tutorials:
- advanced/cpp_extension
- advanced/torch_script_custom_ops
- advanced/torch_script_custom_classes
- advanced/dispatcher

In a follow-up PR we will add warnings to all of those tutorials stating
that they are deprecated but we will preserve the text just in case
people still need them (e.g. if they are not using PyTorch 2.4).

Test Plan:
- I tested these locally.

* Fix cpp custom ops tutorial per review

* update

* update index.rst

* Update

* update

* update
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* added timing comparison
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* adding tutorial for xeon.run_cpu script usage.
---------
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* Add a prerequisites card CSS class
* Update relevant tutorials to use those cards.
Updated specified c++ version from 14 to 17
titaiwangms and others added 29 commits March 5, 2025 15:36
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* add and fix custom cards for ONNX
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
RandomSizedCrop depreciated in favor of RandomResizedCrop in 0.9
https://pytorch.org/vision/0.9/transforms.html

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* Create MonthlyLinkCheck.yml

* Update MonthlyLinkCheck.yml

* Update MonthlyLinkCheck.yml

* Update MonthlyLinkCheck.yml
Add Docs Survey to Tutorials Site. Will be disabled on April 14, 2025
Improves char-rnn tutorial code quality

## Description
This PR adds proper handling for Out-Of-Vocabulary (OOV) characters in the character-level RNN tutorial.

Problem:
- The current implementation doesn't properly handle characters not in the allowed set
- Using string.find() returns -1 for unknown characters, causing them to be treated as apostrophes (the last character in the allowed_characters string)
- This creates ambiguity between actual apostrophes in names (like O'Brien) and unknown characters

Solution:
- Added an underscore character "_" as a dedicated OOV token 
- Modified letterToIndex() to explicitly handle unknown characters
- Added comments explaining the purpose of OOV handling
- Updated the comment about input nodes (57 → 58) to reflect the added character

This change follows best practices for NLP systems by explicitly handling unknown characters, improving both the model's accuracy and the tutorial's educational value.
The tags in tj-actions/changed-files action are compromised and are
leaking GitHub secrets in repos using the compromised repo. This pins
the action to a known good hash.

https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised

Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
Co-authored-by: Vincent Moens <vmoens@meta.com>
We tightned invariants in PyTorch 2.7 that exposed a bug with the python
custom ops tutorial. This PR fixes said bug.

Test Plan:
- tested locally
* Update C++ Extension tutorial with note about AMD GPU.
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* Bump torchrl and torchdict to 0.7.2
* Add devices
* fix semi_structured_sparse.py with default device
* Disable semi sparse tutorial

---------

Co-authored-by: Vincent Moens <vmoens@meta.com>
Fix typos
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* add system requirements to compile tutorial

* Apply suggestions from code review

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>

---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Temporarily disabling recipes_source/recipes/reasoning_about_shapes.py
Summary: The compiled model run takes the same input as Eager. No need to explicitly compose args as a tuple.
address comments: improve pass-KV description
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Co-authored-by: Justin Chu <justinchuby@users.noreply.github.com>
Co-authored-by: Bin Bao <binbao@meta.com>
* [Intel GPU] Docs of XPUInductorQuantizer
---------

Co-authored-by: xiaolil1 <xiaoli.liu@intel.com>
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Co-authored-by: alexsin368 <109180236+alexsin368@users.noreply.github.com>
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* Foreach_map tutorial
---------

Co-authored-by: William Wen <williamwen@meta.com>
Co-authored-by: Alanna Burke <burkealanna@meta.com>
Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
Co-authored-by: Alanna Burke <burkealanna@meta.com>
Removing the docs survey banner
Fix code snippet format issue in inductor_windows
---------

Co-authored-by: Svetlana Karslioglu <svekars@meta.com>
* Add a note that foreach feature is a prototype
@pull pull bot merged commit 35c68ea into garymm:main Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.