internlm/SWE-Fixer-Train-110K huggingface dataset:
Repository: spyder-ide/spyder

Issue:
Spyder 6.0 alpha5 release
This is an issue to track  comments, questions, pending things, and general changes regarding dependencies done for the Spyder 6 alpha5 release.

New/updated dependencies:

* spyder-kernels >=3.0.0b5 - ~pending release (https://github.com/spyder-ide/spyder-kernels/milestone/66)~


Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -243,7 +243,7 @@ def run(self):
     'rtree>=0.9.7',
     'setuptools>=49.6.0',
     'sphinx>=0.6.6',
-    'spyder-kernels>=3.0.0b4,<3.0.0b5',
+    'spyder-kernels>=3.0.0b5,<3.0.0b6',
     'superqt>=0.6.1,<1.0.0',
     'textdistance>=4.2.0',
     'three-merge>=0.1.1',
@@ -257,7 +257,7 @@ def run(self):
                         if req.split(">")[0] not in reqs_to_loosen]
     install_requires.append('python-lsp-server[all]>=1.11.0,<1.13.0')
     install_requires.append('qtconsole>=5.5.1,<5.7.0')
-    install_requires.append('spyder-kernels>=3.0.0b4,<3.1.0')
+    install_requires.append('spyder-kernels>=3.0.0b5,<3.1.0')
 
 extras_require = {
     'test:platform_system == "Windows"': ['pywin32'],
diff --git a/spyder/dependencies.py b/spyder/dependencies.py
--- a/spyder/dependencies.py
+++ b/spyder/dependencies.py
@@ -70,7 +70,7 @@
 RTREE_REQVER = '>=0.9.7'
 SETUPTOOLS_REQVER = '>=49.6.0'
 SPHINX_REQVER = '>=0.6.6'
-SPYDER_KERNELS_REQVER = '>=3.0.0b4,<3.0.0b5'
+SPYDER_KERNELS_REQVER = '>=3.0.0b5,<3.0.0b6'
 SUPERQT_REQVER = '>=0.6.1,<1.0.0'
 TEXTDISTANCE_REQVER = '>=4.2.0'
 THREE_MERGE_REQVER = '>=0.1.1'
diff --git a/spyder/plugins/ipythonconsole/__init__.py b/spyder/plugins/ipythonconsole/__init__.py
--- a/spyder/plugins/ipythonconsole/__init__.py
+++ b/spyder/plugins/ipythonconsole/__init__.py
@@ -20,10 +20,10 @@
 
 # Required version of Spyder-kernels
 SPYDER_KERNELS_MIN_VERSION = (
-    '3.0.0b4' if not running_under_pytest() else '3.0.0.dev0'
+    '3.0.0b5' if not running_under_pytest() else '3.0.0.dev0'
 )
 SPYDER_KERNELS_MAX_VERSION = (
-    '3.0.0b5' if not running_under_pytest() else '4.0.0'
+    '3.0.0b6' if not running_under_pytest() else '4.0.0'
 )
 SPYDER_KERNELS_VERSION = (
     f'>={SPYDER_KERNELS_MIN_VERSION},<{SPYDER_KERNELS_MAX_VERSION}'


Test patch:
Repository: spyder-ide/spyder

Issue:
Editor tab no longer called "Editor"
## Problem Description

The editor tab used to be called "Editor", but now (current master) it shows the file name. I suppose this was not intentional as it is not in line with the other panes.

### What steps reproduce the problem?

1. Unlock Editor pane and move it on top of some other pane, so that the tab appears.

### What is the expected output? What do you see instead?

With current master, commit e9e56955:

![master](https://github.com/spyder-ide/spyder/assets/7941918/d8aa5d1e-c056-4335-9f04-144cea033dc8)

With 6.0.0alpha4:

![alpha4](https://github.com/spyder-ide/spyder/assets/7941918/b2665cad-cbe7-431b-abf3-78f4cd0b9fd4)



Discussion:

Resolving patch:
diff --git a/spyder/plugins/editor/widgets/main_widget.py b/spyder/plugins/editor/widgets/main_widget.py
--- a/spyder/plugins/editor/widgets/main_widget.py
+++ b/spyder/plugins/editor/widgets/main_widget.py
@@ -359,10 +359,7 @@ def __init__(self, name, plugin, parent, ignore_last_opened_files=False):
     # ---- PluginMainWidget API
     # ------------------------------------------------------------------------
     def get_title(self):
-        title = _('Editor')
-        if self.get_current_filename():
-            title = self.get_current_filename()
-        return title
+        return _('Editor')
 
     def get_focus_widget(self):
         """


Test patch:
Repository: spyder-ide/spyder

Issue:
Release 5.5.5
This is an issue to track pending changes and questions for the new Spyder 5.5.5 release.

* New/updated dependencies:
   * `spyder-kernels` >= 2.5.2,<2.6.0 (to get matplotlib 3.9.0 compatibility fix)


Discussion:
I forgot that we need to release Spyder-kernels 2.5.2 for this. See https://github.com/conda-forge/spyder-kernels-feedstock/pull/104 about that (it should be available in Conda-forge in a couple of hours).

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -243,7 +243,7 @@ def run(self):
     'rtree>=0.9.7',
     'setuptools>=49.6.0',
     'sphinx>=0.6.6',
-    'spyder-kernels>=2.5.1,<2.6.0',
+    'spyder-kernels>=2.5.2,<2.6.0',
     'textdistance>=4.2.0',
     'three-merge>=0.1.1',
     'watchdog>=0.10.3'
@@ -256,7 +256,7 @@ def run(self):
                         if req.split(">")[0] not in reqs_to_loosen]
     install_requires.append('python-lsp-server[all]>=1.11.0,<1.13.0')
     install_requires.append('qtconsole>=5.5.1,<5.7.0')
-    install_requires.append('spyder-kernels>=2.5.1,<2.7.0')
+    install_requires.append('spyder-kernels>=2.5.2,<2.7.0')
 
 extras_require = {
     'test:platform_system == "Windows"': ['pywin32'],
diff --git a/spyder/dependencies.py b/spyder/dependencies.py
--- a/spyder/dependencies.py
+++ b/spyder/dependencies.py
@@ -71,7 +71,7 @@
 RTREE_REQVER = '>=0.9.7'
 SETUPTOOLS_REQVER = '>=49.6.0'
 SPHINX_REQVER = '>=0.6.6'
-SPYDER_KERNELS_REQVER = '>=2.5.1,<2.6.0'
+SPYDER_KERNELS_REQVER = '>=2.5.2,<2.6.0'
 TEXTDISTANCE_REQVER = '>=4.2.0'
 THREE_MERGE_REQVER = '>=0.1.1'
 # None for pynsist install for now


Test patch:
Repository: spyder-ide/spyder

Issue:
Spyder 6.0 beta2 release 
This is an issue to track comments, questions, pending things, and general changes regarding dependencies done for the Spyder 6 beta2 release.

New/updated dependencies:

* spyder-kernels >=3.0.0b7 - https://github.com/conda-forge/spyder-kernels-feedstock/pull/105
* superqt >=0.6.2,<1.0.0 - #22141
* pygithub >=2.3.0 - https://github.com/spyder-ide/spyder/pull/22108


Discussion:

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -246,7 +246,7 @@ def run(self):
     'rtree>=0.9.7',
     'setuptools>=49.6.0',
     'sphinx>=0.6.6',
-    'spyder-kernels>=3.0.0b6,<3.0.0b7',
+    'spyder-kernels>=3.0.0b7,<3.0.0b8',
     'superqt>=0.6.2,<1.0.0',
     'textdistance>=4.2.0',
     'three-merge>=0.1.1',
@@ -261,7 +261,7 @@ def run(self):
                         if req.split(">")[0] not in reqs_to_loosen]
     install_requires.append('python-lsp-server[all]>=1.11.0,<1.13.0')
     install_requires.append('qtconsole>=5.5.1,<5.7.0')
-    install_requires.append('spyder-kernels>=3.0.0b6,<3.1.0')
+    install_requires.append('spyder-kernels>=3.0.0b7,<3.1.0')
 
 extras_require = {
     'test:platform_system == "Windows"': ['pywin32'],
diff --git a/spyder/dependencies.py b/spyder/dependencies.py
--- a/spyder/dependencies.py
+++ b/spyder/dependencies.py
@@ -73,7 +73,7 @@
 RTREE_REQVER = '>=0.9.7'
 SETUPTOOLS_REQVER = '>=49.6.0'
 SPHINX_REQVER = '>=0.6.6'
-SPYDER_KERNELS_REQVER = '>=3.0.0b6,<3.0.0b7'
+SPYDER_KERNELS_REQVER = '>=3.0.0b7,<3.0.0b8'
 SUPERQT_REQVER = '>=0.6.2,<1.0.0'
 TEXTDISTANCE_REQVER = '>=4.2.0'
 THREE_MERGE_REQVER = '>=0.1.1'
diff --git a/spyder/plugins/ipythonconsole/__init__.py b/spyder/plugins/ipythonconsole/__init__.py
--- a/spyder/plugins/ipythonconsole/__init__.py
+++ b/spyder/plugins/ipythonconsole/__init__.py
@@ -20,10 +20,10 @@
 
 # Required version of Spyder-kernels
 SPYDER_KERNELS_MIN_VERSION = (
-    '3.0.0b6' if not running_under_pytest() else '3.0.0.dev0'
+    '3.0.0b7' if not running_under_pytest() else '3.0.0.dev0'
 )
 SPYDER_KERNELS_MAX_VERSION = (
-    '3.0.0b7' if not running_under_pytest() else '4.0.0'
+    '3.0.0b8' if not running_under_pytest() else '4.0.0'
 )
 SPYDER_KERNELS_VERSION = (
     f'>={SPYDER_KERNELS_MIN_VERSION},<{SPYDER_KERNELS_MAX_VERSION}'


Test patch:
Repository: pytorch/benchmark

Issue:
Background_Matting misconfigured for training
In the Backgound_Matting model, the train is bottlenecked by dataloader, not the actual computation.
We should remove the use of dataloader in train().


Discussion:

Resolving patch:
diff --git a/torchbenchmark/models/Background_Matting/__init__.py b/torchbenchmark/models/Background_Matting/__init__.py
--- a/torchbenchmark/models/Background_Matting/__init__.py
+++ b/torchbenchmark/models/Background_Matting/__init__.py
@@ -51,8 +51,14 @@ def __init__(self, device=None, jit=False):
             'reso': (self.opt.resolution, self.opt.resolution)}
         traindata = VideoData(csv_file=csv_file,
                               data_config=data_config_train, transform=None)
-        self.train_loader = torch.utils.data.DataLoader(
+        train_loader = torch.utils.data.DataLoader(
             traindata, batch_size=self.opt.batch_size, shuffle=True, num_workers=self.opt.batch_size, collate_fn=_collate_filter_none)
+        self.train_data = []
+        for data in train_loader:
+            self.train_data.append(data)
+            if device == 'cuda':
+                for key in data:
+                    data[key].cuda()
 
         netB = ResnetConditionHR(input_nc=(
             3, 3, 1, 4), output_nc=4, n_blocks1=self.opt.n_blocks1, n_blocks2=self.opt.n_blocks2)
@@ -95,7 +101,7 @@ def __init__(self, device=None, jit=False):
         self._maybe_trace()
 
     def _maybe_trace(self):
-        for data in self.train_loader:
+        for data in self.train_data:
             bg, image, seg, multi_fr = data['bg'], data['image'], data['seg'], data['multi_fr']
             if self.device == 'cuda':
                 bg, image, seg, multi_fr = Variable(bg.cuda()), Variable(
@@ -129,12 +135,12 @@ def train(self, niterations=1):
         self.netD.train()
         lG, lD, GenL, DisL_r, DisL_f, alL, fgL, compL, elapse_run, elapse = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
         t0 = time.time()
-        KK = len(self.train_loader)
+        KK = len(self.train_data)
         wt = 1
         epoch = 0
         step = 50
 
-        for i, data in enumerate(self.train_loader):
+        for i, data in enumerate(self.train_data):
             if (i > niterations):
                 break
             # Initiating


Test patch:
Repository: pytorch/TensorRT

Issue:
🐛 [Bug] UnicodeDecodeError running setup.py
##  Bug Description

Trying to run "python setup.py install" fails with a unicode error when reading README.md.

## To Reproduce

Steps to reproduce the behavior:

1. docker run --gpus=all -it nvcr.io/nvidia/tensorrt:20.03-py3 /bin/bash
2. (cd /usr/bin && wget -O bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.7.3/bazelisk-linux-amd64 && chmod +x bazel)
3. git clone https://github.com/NVIDIA/TRTorch.git
4. cd TRTorch/py
5. pip install -r requirements.txt
6. python setup.py install

The error follows:
> root@320583666d0c:/workspace/TRTorch/py# python setup.py install        
> Traceback (most recent call last):
>   File "setup.py", line 194, in <module>
>     long_description = fh.read()
>   File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
>     return codecs.ascii_decode(input, self.errors)[0]
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 7349: ordinal not in range(128)

## Expected behavior

No unicode error

## Environment

 - PyTorch Version (e.g., 1.0): 1.6.0
 - CPU Architecture: x86
 - OS (e.g., Linux): Linux
 - How you installed PyTorch (`conda`, `pip`, `libtorch`, source): pip
 - Build command you used (if compiling from source): python setup.py install
 - Are you using local sources or building from archives: local sources (git clone)
 - Python version: 3.6.9
 - CUDA version: 10.2.89
 - GPU models and configuration: gtx 970

## Additional context

The following appears to resolve the issue:

```
diff --git a/py/setup.py b/py/setup.py
index 53f85da..8344c0a 100644
--- a/py/setup.py
+++ b/py/setup.py
@@ -190,7 +190,7 @@ ext_modules = [
                             )
 ]
 
-with open("README.md", "r") as fh:
+with open("README.md", "r", encoding="utf-8") as fh:
     long_description = fh.read()
 
 setup(
```




Discussion:
Thanks for catching this!

Resolving patch:
diff --git a/py/setup.py b/py/setup.py
--- a/py/setup.py
+++ b/py/setup.py
@@ -190,7 +190,7 @@ def run(self):
                             )
 ]
 
-with open("README.md", "r") as fh:
+with open("README.md", "r", encoding="utf-8") as fh:
     long_description = fh.read()
 
 setup(


Test patch:
Repository: pytorch/TensorRT

Issue:
❓ [Question] How can i build a Makefile for this example? 
## ❓ Question
Hi, 
I want to run the official [example ](https://github.com/NVIDIA/TRTorch/blob/master/examples/sample_rt_app/main.cpp) with a Makefile. But there is always something wrong. So, could you give me the Makefile that successfully links to the .so file?

## Environment

 - PyTorch Version (1.8):
 - OS (Ubuntu18.04):
 - How you installed PyTorch (`pip`, `libtorch`)
 - Python version: 3.8
 - CUDA version: 11.3
 - GPU models and configuration: GTX3070




Discussion:

Resolving patch:
diff --git a/examples/sample_rt_app/network.py b/examples/trtorchrt_example/network.py
similarity index 100%
rename from examples/sample_rt_app/network.py
rename to examples/trtorchrt_example/network.py


Test patch:
Repository: pytorch/TensorRT

Issue:
🐛 [Bug] Failed to use stoi to get the engine ID in TRTEngine function
##  Bug Description

Got this  error: 
```
INFO: [Torch-TensorRT - Debug Build] - [MemUsageChange] TensorRT-managed allocation in IExecutionContext creation: CPU +0, GPU +132, now: CPU 0, GPU 540 (MiB)
terminate called after throwing an instance of 'std::invalid_argument'
  what():  stoi
Aborted (core dumped)
```

Debugged and found that it fails at this line: https://github.com/NVIDIA/Torch-TensorRT/blob/c95229144432d96f4bdaa71fb1d242242d42bc29/core/runtime/TRTEngine.cpp#L63 

## To Reproduce

 MaskRCNN model from detectron2. 

## Expected behavior

should figure out why we cannot find a number from this engine. 





Discussion:
@bowang007  I have a fix for this

could you please share more details? @narendasan 

Resolving patch:
diff --git a/py/torch_tensorrt/ts/_compiler.py b/py/torch_tensorrt/ts/_compiler.py
--- a/py/torch_tensorrt/ts/_compiler.py
+++ b/py/torch_tensorrt/ts/_compiler.py
@@ -207,6 +207,11 @@ def embed_engine_in_new_module(serialized_engine: bytes, device=Device._current_
 
         forward(Tensor[]) -> Tensor[]
 
+    TensorRT bindings must have names with the following format:
+      - [symbol].[index in input / output array]
+      ex.
+      - [x.0, x.1, x.2] -> [y.0]
+
     Module can be save with engine embedded with torch.jit.save and moved / loaded according to torch_tensorrt portability rules
 
     Arguments:


Test patch:
diff --git a/tests/util/run_graph_engine.cpp b/tests/util/run_graph_engine.cpp
--- a/tests/util/run_graph_engine.cpp
+++ b/tests/util/run_graph_engine.cpp
@@ -21,7 +21,7 @@ std::vector<core::ir::Input> toInputs(std::vector<at::Tensor> ten) {
   for (auto i : ten) {
     a.push_back(core::ir::Input(core::util::toVec(i.sizes())));
   }
-  return std::move(a);
+  return a;
 }
 
 std::vector<core::ir::Input> toInputsDynamic(std::vector<at::Tensor> ten, bool dynamic_batch) {
@@ -49,7 +49,7 @@ std::vector<core::ir::Input> toInputsDynamic(std::vector<at::Tensor> ten, bool d
     }
   }
 
-  return std::move(a);
+  return a;
 }
 
 std::vector<at::Tensor> RunEngine(std::string& eng, std::vector<at::Tensor> inputs) {
Repository: pytorch/TensorRT

Issue:
✨[Feature] PyPi binaries
**Is your feature request related to a problem? Please describe.**
Having to use a custom index is less than ideal if I'd like to for example have this library be part of extra dependencies in my `setup.py`

**Describe the solution you'd like**
 `pip install torch-tensorrt`



Discussion:
We already have the name reserved on pypi but we cannot currently upload builds since some of our dependencies are not compliant with the manylinux spec. This may change in the future and when it does we will push packages there. 
@ncomly-nvidia do you think this is happening this year? I was hoping to create a seamless installation experience for my users in torchserve https://github.com/pytorch/serve/pull/1857
Thank you @ncomly-nvidia !
@msaroufim sure thing. We have been gated by TensorRT's availability on PyPI. It will be available early Nov. so torch-trt should be able to get this up shortly there after. By the end of the year seems reasonable.

Looking forward to your working in torch serve!
Is TensorRT available [here](https://pypi.org/project/nvidia-tensorrt/)?
Hi @ychfan yes it is, however, the package is undergoing changes internally which will be finalized in the next TRT release in Nov. Torch-TRT will pickup this package after the changes.

Resolving patch:
diff --git a/py/setup.py b/py/setup.py
--- a/py/setup.py
+++ b/py/setup.py
@@ -16,6 +16,13 @@
 import platform
 import warnings
 
+from versions import (
+    __version__,
+    __cuda_version__,
+    __cudnn_version__,
+    __tensorrt_version__,
+)
+
 dir_path = os.path.dirname(os.path.realpath(__file__))
 
 CXX11_ABI = False
@@ -28,11 +35,6 @@
 
 CI_RELEASE = False
 
-__version__ = "1.3.0"
-__cuda_version__ = "11.7"
-__cudnn_version__ = "8.5"
-__tensorrt_version__ = "8.5"
-
 
 def get_git_revision_short_hash() -> str:
     return (
@@ -389,7 +391,7 @@ def run(self):
     packages=packages if FX_ONLY else find_packages(),
     package_dir=package_dir if FX_ONLY else {},
     classifiers=[
-        "Development Status :: 5 - Stable",
+        "Development Status :: 5 - Production/Stable",
         "Environment :: GPU :: NVIDIA CUDA",
         "License :: OSI Approved :: BSD License",
         "Intended Audience :: Developers",
diff --git a/py/versions.py b/py/versions.py
new file mode 100644
--- /dev/null
+++ b/py/versions.py
@@ -0,0 +1,4 @@
+__version__ = "1.3.0"
+__cuda_version__ = "11.7"
+__cudnn_version__ = "8.5"
+__tensorrt_version__ = "8.5"


Test patch:
diff --git a/tests/modules/requirements.txt b/tests/modules/requirements.txt
--- a/tests/modules/requirements.txt
+++ b/tests/modules/requirements.txt
@@ -1,4 +1,3 @@
 timm==v0.4.12
 transformers==4.17.0
---extra-index-url https://download.pytorch.org/whl/nightly/cu117
-torchvision==0.15.0.dev20221006+cu117
+torchvision
Repository: pytorch/TensorRT

Issue:
✨[Feature] PyPi binaries
**Is your feature request related to a problem? Please describe.**
Having to use a custom index is less than ideal if I'd like to for example have this library be part of extra dependencies in my `setup.py`

**Describe the solution you'd like**
 `pip install torch-tensorrt`



Discussion:
We already have the name reserved on pypi but we cannot currently upload builds since some of our dependencies are not compliant with the manylinux spec. This may change in the future and when it does we will push packages there. 
@ncomly-nvidia do you think this is happening this year? I was hoping to create a seamless installation experience for my users in torchserve https://github.com/pytorch/serve/pull/1857
Thank you @ncomly-nvidia !
@msaroufim sure thing. We have been gated by TensorRT's availability on PyPI. It will be available early Nov. so torch-trt should be able to get this up shortly there after. By the end of the year seems reasonable.

Looking forward to your working in torch serve!
Is TensorRT available [here](https://pypi.org/project/nvidia-tensorrt/)?
Hi @ychfan yes it is, however, the package is undergoing changes internally which will be finalized in the next TRT release in Nov. Torch-TRT will pickup this package after the changes.
Expected completion by EOW.
Waiting on CI fixes.  Naren following up.
Now unblocked.

Resolving patch:
diff --git a/py/setup.py b/py/setup.py
--- a/py/setup.py
+++ b/py/setup.py
@@ -16,6 +16,13 @@
 import platform
 import warnings
 
+from versions import (
+    __version__,
+    __cuda_version__,
+    __cudnn_version__,
+    __tensorrt_version__,
+)
+
 dir_path = os.path.dirname(os.path.realpath(__file__))
 
 CXX11_ABI = False
@@ -28,11 +35,6 @@
 
 CI_RELEASE = False
 
-__version__ = "1.4.0dev0"
-__cuda_version__ = "11.6"
-__cudnn_version__ = "8.4"
-__tensorrt_version__ = "8.4"
-
 
 def get_git_revision_short_hash() -> str:
     return (
@@ -391,7 +393,7 @@ def run(self):
     packages=packages if FX_ONLY else find_packages(),
     package_dir=package_dir if FX_ONLY else {},
     classifiers=[
-        "Development Status :: 5 - Stable",
+        "Development Status :: 5 - Production/Stable",
         "Environment :: GPU :: NVIDIA CUDA",
         "License :: OSI Approved :: BSD License",
         "Intended Audience :: Developers",
diff --git a/py/versions.py b/py/versions.py
new file mode 100644
--- /dev/null
+++ b/py/versions.py
@@ -0,0 +1,4 @@
+__version__ = "1.4.0.dev0"
+__cuda_version__ = "11.7"
+__cudnn_version__ = "8.5"
+__tensorrt_version__ = "8.5"


Test patch:
diff --git a/tests/modules/requirements.txt b/tests/modules/requirements.txt
--- a/tests/modules/requirements.txt
+++ b/tests/modules/requirements.txt
@@ -1,4 +1,3 @@
 timm==v0.4.12
 transformers==4.17.0
---extra-index-url https://download.pytorch.org/whl/nightly/cu117
-torchvision==0.15.0.dev20230103+cu117
+torchvision
Repository: pytorch/TensorRT

Issue:
Upgrade `release/1.4` to Torch 2.0.1 + TensorRT 8.6.1
- Also upgrade `main` to TensorRT 8.6.1 (as a commit to #1852)


Discussion:

Resolving patch:
diff --git a/py/versions.py b/py/versions.py
--- a/py/versions.py
+++ b/py/versions.py
@@ -1,4 +1,4 @@
-__version__ = "1.4.0.rc0"
+__version__ = "1.4.0"
 __cuda_version__ = "11.8"
 __cudnn_version__ = "8.8"
 __tensorrt_version__ = "8.6"


Test patch:
Repository: pytorch/TensorRT

Issue:
Upgrade `main` stack to CUDA 12.1
With recent Torch nightly builds + TRT GA builds supporting CUDA 12.1, upgrade the stack to support new CUDA version


Discussion:

Resolving patch:
diff --git a/py/torch_tensorrt/__init__.py b/py/torch_tensorrt/__init__.py
--- a/py/torch_tensorrt/__init__.py
+++ b/py/torch_tensorrt/__init__.py
@@ -59,7 +59,7 @@ def _find_lib(name, paths):
 
     elif sys.platform.startswith("linux"):
         LINUX_PATHS = [
-            "/usr/local/cuda-11.8/lib64",
+            "/usr/local/cuda-12.1/lib64",
         ]
 
         if "LD_LIBRARY_PATH" in os.environ:
diff --git a/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py b/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py
--- a/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py
+++ b/py/torch_tensorrt/dynamo/backend/lowering/_decompositions.py
@@ -34,7 +34,6 @@ def inplace_op(*args, **kwargs):
 replace_inplace_op(aten.index_reduce_, aten.index_reduce)
 replace_inplace_op(aten.logit_, aten.logit)
 replace_inplace_op(aten.relu_, aten.relu)
-replace_inplace_op(aten.renorm_, aten.renorm)
 replace_inplace_op(aten.round_, aten.round)
 replace_inplace_op(aten.scatter_, aten.scatter)
 replace_inplace_op(aten.scatter_add_, aten.scatter_add)
diff --git a/py/versions.py b/py/versions.py
--- a/py/versions.py
+++ b/py/versions.py
@@ -1,4 +1,4 @@
 __version__ = "1.5.0.dev0"
-__cuda_version__ = "11.8"
+__cuda_version__ = "12.1"
 __cudnn_version__ = "8.8"
 __tensorrt_version__ = "8.6"


Test patch:
diff --git a/tests/modules/requirements.txt b/tests/modules/requirements.txt
--- a/tests/modules/requirements.txt
+++ b/tests/modules/requirements.txt
@@ -1,3 +1,3 @@
-timm==v0.4.12
+timm==v0.9.2
 transformers==4.30.0
 torchvision