Skip to content

[pull] main from pytorch:main #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 609 commits into from
Apr 22, 2025
Merged

[pull] main from pytorch:main #238

merged 609 commits into from
Apr 22, 2025

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 <[email protected]>
Fix indent show copy of code doesn't include tick marks

Co-authored-by: Svetlana Karslioglu <[email protected]>
* DEP: deprecate transformer tutorial

* Update beginner_source/transformer_tutorial.rst

* Update beginner_source/transformer_tutorial.rst

---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
* Remove torchvision_tutorial from validate_tutorials_built.py
* Fix multiprocessing in torchvision_tutorial.py

---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
* [Docs] Update performance tuning guide
Added cuda graph explaination
Added core pinning section
Added tensor core usage section


---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
Co-authored-by: Svetlana Karslioglu <[email protected]>
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 <[email protected]>
* 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
* added timing comparison
---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
Co-authored-by: Svetlana Karslioglu <[email protected]>
* adding tutorial for xeon.run_cpu script usage.
---------
Co-authored-by: Svetlana Karslioglu <[email protected]>
* 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
* add and fix custom cards for ONNX
RandomSizedCrop depreciated in favor of RandomResizedCrop in 0.9
https://pytorch.org/vision/0.9/transforms.html

Co-authored-by: Svetlana Karslioglu <[email protected]>
* 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 <[email protected]>
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 <[email protected]>
* 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 <[email protected]>
Fix typos
---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
* add system requirements to compile tutorial

* Apply suggestions from code review

Co-authored-by: Svetlana Karslioglu <[email protected]>

---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
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 <[email protected]>
Co-authored-by: Justin Chu <[email protected]>
Co-authored-by: Bin Bao <[email protected]>
* [Intel GPU] Docs of XPUInductorQuantizer
---------

Co-authored-by: xiaolil1 <[email protected]>
Co-authored-by: Svetlana Karslioglu <[email protected]>
Co-authored-by: alexsin368 <[email protected]>
* Foreach_map tutorial
---------

Co-authored-by: William Wen <[email protected]>
Co-authored-by: Alanna Burke <[email protected]>
Co-authored-by: Svetlana Karslioglu <[email protected]>
---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
Co-authored-by: Alanna Burke <[email protected]>
Removing the docs survey banner
Fix code snippet format issue in inductor_windows
---------

Co-authored-by: Svetlana Karslioglu <[email protected]>
* 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.