From 4cc15aa6fdf1e51e0c6a32a8f803ac03226911da Mon Sep 17 00:00:00 2001 From: xadupre Date: Wed, 27 Aug 2025 13:20:20 +0200 Subject: [PATCH 1/3] update urls --- _doc/conf.py | 18 +++++++++--------- _doc/examples/plot_export_tiny_llm_patched.py | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/_doc/conf.py b/_doc/conf.py index 3eac8c71..50b37747 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -105,7 +105,7 @@ def linkcode_resolve(domain, info): "scipy": ("https://docs.scipy.org/doc/scipy/", None), "sklearn": ("https://scikit-learn.org/stable/", None), "skl2onnx": ("https://onnx.ai/sklearn-onnx/", None), - "torch": ("https://pytorch.org/docs/main/", None), + "torch": ("https://docs.pytorch.org/main/", None), # Not a sphinx documentation # "transformers": ("https://huggingface.co/docs/transformers/index", None), } @@ -208,7 +208,7 @@ def linkcode_resolve(domain, info): epkg_dictionary = { "aten functions": "https://pytorch.org/cppdocs/api/namespace_at.html#functions", "azure pipeline": "https://azure.microsoft.com/en-us/products/devops/pipelines", - "Custom Backends": "https://pytorch.org/docs/stable/torch.compiler_custom_backends.html", + "Custom Backends": "https://docs.pytorch.org/stable/torch.compiler_custom_backends.html", "diffusers": "https://github.com/huggingface/diffusers", "DOT": "https://graphviz.org/doc/info/lang.html", "executorch": "https://pytorch.org/executorch/stable/intro-overview.html", @@ -218,8 +218,8 @@ def linkcode_resolve(domain, info): "experimental-experiment": "https://sdpython.github.io/doc/experimental-experiment/dev/", "JIT": "https://en.wikipedia.org/wiki/Just-in-time_compilation", "FunctionProto": "https://onnx.ai/onnx/api/classes.html#functionproto", - "graph break": "https://pytorch.org/docs/stable/torch.compiler_faq.html#graph-breaks", - "GraphModule": "https://pytorch.org/docs/stable/fx.html#torch.fx.GraphModule", + "graph break": "https://docs.pytorch.org/stable/torch.compiler_faq.html#graph-breaks", + "GraphModule": "https://docs.pytorch.org/stable/fx.html#torch.fx.GraphModule", "HuggingFace": "https://huggingface.co/docs/hub/en/index", "huggingface_hub": "https://github.com/huggingface/huggingface_hub", "Linux": "https://www.linux.org/", @@ -232,7 +232,7 @@ def linkcode_resolve(domain, info): "onnx.helper": "https://onnx.ai/onnx/api/helper.html", "ONNX": "https://onnx.ai/", "ONNX Operators": "https://onnx.ai/onnx/operators/", - "onnxrt backend": "https://pytorch.org/docs/stable/onnx_dynamo_onnxruntime_backend.html", + "onnxrt backend": "https://docs.pytorch.org/stable/onnx_dynamo_onnxruntime_backend.html", "onnxruntime": "https://onnxruntime.ai/", "onnxruntime-training": "https://onnxruntime.ai/docs/get-started/training-on-device.html", "onnxruntime kernels": "https://onnxruntime.ai/docs/reference/operators/OperatorKernels.html", @@ -257,12 +257,12 @@ def linkcode_resolve(domain, info): "Supported Operators and Data Types": "https://github.com/microsoft/onnxruntime/blob/main/docs/OperatorKernels.md", "sympy": "https://www.sympy.org/en/index.html", "timm": "https://github.com/huggingface/pytorch-image-models", - "torch": "https://pytorch.org/docs/stable/torch.html", + "torch": "https://docs.pytorch.org/stable/torch.html", "torchbench": "https://github.com/pytorch/benchmark", "torch.compile": "https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html", - "torch.compiler": "https://pytorch.org/docs/stable/torch.compiler.html", - "torch.export.export": "https://pytorch.org/docs/stable/export.html#torch.export.export", - "torch.onnx": "https://pytorch.org/docs/stable/onnx.html", + "torch.compiler": "https://docs.pytorch.org/stable/torch.compiler.html", + "torch.export.export": "https://docs.pytorch.org/stable/export.html#torch.export.export", + "torch.onnx": "https://docs.pytorch.org/stable/onnx.html", "transformers": "https://huggingface.co/docs/transformers/en/index", "vocos": "https://github.com/gemelo-ai/vocos", "Windows": "https://www.microsoft.com/windows", diff --git a/_doc/examples/plot_export_tiny_llm_patched.py b/_doc/examples/plot_export_tiny_llm_patched.py index 8790de82..a05e7dcc 100644 --- a/_doc/examples/plot_export_tiny_llm_patched.py +++ b/_doc/examples/plot_export_tiny_llm_patched.py @@ -29,7 +29,7 @@ to non-tensor type at `inputs['past_key_values']` (expected None) For more information about this error, - see: https://pytorch.org/docs/main/generated/exportdb/index.html#dynamic-shapes-validation + see: https://docs.pytorch.org/main/generated/exportdb/index.html#dynamic-shapes-validation With ``transformers==4.50``, it shows the following: From 38751279184cb757381d5cb754fa639b551c7af5 Mon Sep 17 00:00:00 2001 From: xadupre Date: Wed, 27 Aug 2025 13:32:26 +0200 Subject: [PATCH 2/3] doc --- _doc/conf.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/_doc/conf.py b/_doc/conf.py index 50b37747..190bc66f 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -208,7 +208,7 @@ def linkcode_resolve(domain, info): epkg_dictionary = { "aten functions": "https://pytorch.org/cppdocs/api/namespace_at.html#functions", "azure pipeline": "https://azure.microsoft.com/en-us/products/devops/pipelines", - "Custom Backends": "https://docs.pytorch.org/stable/torch.compiler_custom_backends.html", + "Custom Backends": "https://docs.pytorch.org/docs/stable/torch.compiler_custom_backends.html", "diffusers": "https://github.com/huggingface/diffusers", "DOT": "https://graphviz.org/doc/info/lang.html", "executorch": "https://pytorch.org/executorch/stable/intro-overview.html", @@ -218,8 +218,8 @@ def linkcode_resolve(domain, info): "experimental-experiment": "https://sdpython.github.io/doc/experimental-experiment/dev/", "JIT": "https://en.wikipedia.org/wiki/Just-in-time_compilation", "FunctionProto": "https://onnx.ai/onnx/api/classes.html#functionproto", - "graph break": "https://docs.pytorch.org/stable/torch.compiler_faq.html#graph-breaks", - "GraphModule": "https://docs.pytorch.org/stable/fx.html#torch.fx.GraphModule", + "graph break": "https://docs.pytorch.org/docs/stable/torch.compiler_faq.html#graph-breaks", + "GraphModule": "https://docs.pytorch.org/docs/stable/fx.html#torch.fx.GraphModule", "HuggingFace": "https://huggingface.co/docs/hub/en/index", "huggingface_hub": "https://github.com/huggingface/huggingface_hub", "Linux": "https://www.linux.org/", @@ -232,7 +232,7 @@ def linkcode_resolve(domain, info): "onnx.helper": "https://onnx.ai/onnx/api/helper.html", "ONNX": "https://onnx.ai/", "ONNX Operators": "https://onnx.ai/onnx/operators/", - "onnxrt backend": "https://docs.pytorch.org/stable/onnx_dynamo_onnxruntime_backend.html", + "onnxrt backend": "https://docs.pytorch.org/docs/stable/onnx_dynamo_onnxruntime_backend.html", "onnxruntime": "https://onnxruntime.ai/", "onnxruntime-training": "https://onnxruntime.ai/docs/get-started/training-on-device.html", "onnxruntime kernels": "https://onnxruntime.ai/docs/reference/operators/OperatorKernels.html", @@ -257,12 +257,12 @@ def linkcode_resolve(domain, info): "Supported Operators and Data Types": "https://github.com/microsoft/onnxruntime/blob/main/docs/OperatorKernels.md", "sympy": "https://www.sympy.org/en/index.html", "timm": "https://github.com/huggingface/pytorch-image-models", - "torch": "https://docs.pytorch.org/stable/torch.html", + "torch": "https://docs.pytorch.org/docs/stable/torch.html", "torchbench": "https://github.com/pytorch/benchmark", "torch.compile": "https://pytorch.org/tutorials/intermediate/torch_compile_tutorial.html", - "torch.compiler": "https://docs.pytorch.org/stable/torch.compiler.html", - "torch.export.export": "https://docs.pytorch.org/stable/export.html#torch.export.export", - "torch.onnx": "https://docs.pytorch.org/stable/onnx.html", + "torch.compiler": "https://docs.pytorch.org/docs/stable/torch.compiler.html", + "torch.export.export": "https://docs.pytorch.org/docs/stable/export.html#torch.export.export", + "torch.onnx": "https://docs.pytorch.org/docs/stable/onnx.html", "transformers": "https://huggingface.co/docs/transformers/en/index", "vocos": "https://github.com/gemelo-ai/vocos", "Windows": "https://www.microsoft.com/windows", From 641cfcb6ab078f7404dc48ed90d0578ddf02b906 Mon Sep 17 00:00:00 2001 From: xadupre Date: Wed, 27 Aug 2025 13:35:13 +0200 Subject: [PATCH 3/3] fix --- _doc/conf.py | 2 +- _doc/examples/plot_export_tiny_llm_patched.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_doc/conf.py b/_doc/conf.py index 190bc66f..4c1cc9fa 100644 --- a/_doc/conf.py +++ b/_doc/conf.py @@ -105,7 +105,7 @@ def linkcode_resolve(domain, info): "scipy": ("https://docs.scipy.org/doc/scipy/", None), "sklearn": ("https://scikit-learn.org/stable/", None), "skl2onnx": ("https://onnx.ai/sklearn-onnx/", None), - "torch": ("https://docs.pytorch.org/main/", None), + "torch": ("https://docs.pytorch.org/docs/stable/", None), # Not a sphinx documentation # "transformers": ("https://huggingface.co/docs/transformers/index", None), } diff --git a/_doc/examples/plot_export_tiny_llm_patched.py b/_doc/examples/plot_export_tiny_llm_patched.py index a05e7dcc..387b781b 100644 --- a/_doc/examples/plot_export_tiny_llm_patched.py +++ b/_doc/examples/plot_export_tiny_llm_patched.py @@ -29,7 +29,7 @@ to non-tensor type at `inputs['past_key_values']` (expected None) For more information about this error, - see: https://docs.pytorch.org/main/generated/exportdb/index.html#dynamic-shapes-validation + see: https://docs.pytorch.org/docs/stable/generated/exportdb/index.html#dynamic-shapes-validation With ``transformers==4.50``, it shows the following: