Skip to content

Move back to 2.7 #3345

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 26 commits into from
May 1, 2025
Merged
6 changes: 3 additions & 3 deletions .ci/docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tqdm==4.66.1
numpy==1.24.4
matplotlib
librosa
torch==2.6
torch==2.7
torchvision
torchdata
networkx
Expand Down Expand Up @@ -67,7 +67,7 @@ iopath
pygame==2.6.0
pycocotools
semilearn==0.3.2
torchao==0.5.0
torchao==0.10.0
segment_anything==1.0
torchrec==1.1.0; platform_system == "Linux"
fbgemm-gpu==1.1.0; platform_system == "Linux"
fbgemm-gpu==1.2.0; platform_system == "Linux"
7 changes: 2 additions & 5 deletions .jenkins/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ sudo apt-get install -y pandoc
#Install PyTorch Nightly for test.
# Nightly - pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html
# Install 2.5 to merge all 2.4 PRs - uncomment to install nightly binaries (update the version as needed).
# sudo pip uninstall -y torch torchvision torchaudio torchtext torchdata
# sudo pip3 install torch==2.6.0 torchvision --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
# sudo pip uninstall -y fbgemm-gpu torchrec
# sudo pip uninstall -y torch torchvision torchaudio torchtext torchdata torchrl tensordict
# sudo pip3 install fbgemm-gpu==1.1.0 torchrec==1.0.0 --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu124
sudo pip uninstall -y torch torchvision torchaudio torchtext torchdata torchrl tensordict
pip3 install torch==2.7.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu126
#sudo pip uninstall -y fbgemm-gpu
# pip3 install torch==2.7.0 torchvision torchaudio --no-cache-dir --index-url https://download.pytorch.org/whl/test/cu126
# Install two language tokenizers for Translation with TorchText tutorial
python -m spacy download en_core_web_sm
python -m spacy download de_core_news_sm
Expand Down
10 changes: 2 additions & 8 deletions .jenkins/validate_tutorials_built.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,8 @@
"intermediate_source/text_to_speech_with_torchaudio",
"intermediate_source/tensorboard_profiler_tutorial", # reenable after 2.0 release.
"advanced_source/semi_structured_sparse", # reenable after 3303 is fixed.
"intermediate_source/mario_rl_tutorial", # reenable after 3302 is fixed
"intermediate_source/reinforcement_ppo", # reenable after 3302 is fixed
"intermediate_source/pinmem_nonblock", # reenable after 3302 is fixed
"intermediate_source/dqn_with_rnn_tutorial", # reenable after 3302 is fixed
"advanced_source/pendulum", # reenable after 3302 is fixed
"advanced_source/coding_ddpg", # reenable after 3302 is fixed
"intermediate_source/torchrec_intro_tutorial", # reenable after 3302 is fixed
"recipes_source/recipes/reasoning_about_shapes" # reenable after 3326 is fixed
"intermediate_source/torchrec_intro_tutorial", # reenable after 3302 is fixe
"intermediate_source/memory_format_tutorial", # causes other tutorials like torch_logs fail. "state" issue, reseting dynamo didn't help
]

def tutorial_source_dirs() -> List[Path]:
Expand Down
6 changes: 6 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,16 @@

def reset_seeds(gallery_conf, fname):
torch.cuda.empty_cache()
torch.backends.cudnn.deterministic = True
torch.backends.cudnn.benchmark = False
torch._dynamo.reset()
torch._inductor.config.force_disable_caches = True
torch.manual_seed(42)
torch.set_default_device(None)
random.seed(10)
numpy.random.seed(10)
torch.set_grad_enabled(True)

gc.collect()

sphinx_gallery_conf = {
Expand Down
Loading