prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Unpin onnx version to allow using v1.14
  ### Feature request
  
  Remove the version constraint on onnx package to allow using onnx==1.14.
  
  ### Motivation
  
  - The latest version of onnxruntime (v1.15 at the time of writing) supports onnx==1.14.
  - onnx==1.14 introduces support for protobuf v4, which is also useful.
  
  ### Your contribution
  
  Seems removing the pin from setup.py would be all that is needed as long as the existing tests provide enough validation.
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 import re
  2 
  3 from setuptools import find_namespace_packages, setup
  4 
  5 
  6 # Ensure we match the version set in src/optimum/version.py
  7 try:
  8     filepath = "optimum/version.py"
  9     with open(filepath) as version_file:
  10         (__version__,) = re.findall('__version__ = "(.*)"', version_file.read())
  11 except Exception as error:
  12     assert False, "Error: Could not open '%s' due %s\n" % (filepath, error)
  13 
  14 
  15 REQUIRED_PKGS = [
  16     "coloredlogs",
  17     "sympy",
  18     "transformers[sentencepiece]>=4.26.0",
  19     "torch>=1.9",
  20     "packaging",
  21     "numpy",
  22     "huggingface_hub>=0.8.0",
  23     "datasets",
  24 ]
  25 
  26 TESTS_REQUIRE = [
  27     "pytest",
  28     "requests",
  29     "parameterized",
  30     "pytest-xdist",
  31     "Pillow",
  32     "sacremoses",
  33     "torchvision",
  34     "diffusers>=0.17.0",
  35     "torchaudio",
  36 ]
  37 
  38 QUALITY_REQUIRE = ["black~=23.1", "ruff>=0.0.241,<=0.0.259"]
  39 
  40 BENCHMARK_REQUIRE = ["optuna", "tqdm", "scikit-learn", "seqeval", "torchvision", "evaluate>=0.2.0"]
  41 
  42 EXTRAS_REQUIRE = {
  43     "onnxruntime": [
  44         "onnx<1.14.0",
  45         "onnxruntime>=1.9.0",
  46         "datasets>=1.2.1",
  47         "evaluate",
  48         "protobuf>=3.20.1",
  49     ],
  50     "onnxruntime-gpu": [
  51         "onnx<1.14.0",
  52         "onnxruntime-gpu>=1.9.0",
  53         "datasets>=1.2.1",
  54         "evaluate",
  55         "protobuf>=3.20.1",
  56     ],
  57     "exporters": ["onnx<1.14.0", "onnxruntime", "timm"],
  58     "exporters-gpu": ["onnx<1.14.0", "onnxruntime-gpu", "timm"],
  59     "exporters-tf": ["tensorflow>=2.4,<2.11", "tf2onnx", "onnx", "onnxruntime", "timm", "h5py", "numpy<1.24.0"],
  60     "intel": "optimum-intel",
  61     "openvino": "optimum-intel[openvino]",
  62     "nncf": "optimum-intel[nncf]",
  63     "neural-compressor": "optimum-intel[neural-compressor]",
  64     "graphcore": "optimum-graphcore",
  65     "habana": ["transformers<4.29.0", "optimum-habana"],
  66     "neuron": "optimum-neuron[neuron]",
  67     "neuronx": "optimum-neuron[neuronx]",
  68     "dev": TESTS_REQUIRE + QUALITY_REQUIRE,
  69     "tests": TESTS_REQUIRE,
  70     "quality": QUALITY_REQUIRE,
  71     "benchmark": BENCHMARK_REQUIRE,
  72 }
  73 
  74 setup(
  75     name="optimum",
  76     version=__version__,
  77     description="Optimum Library is an extension of the Hugging Face Transformers library, providing a framework to "
  78     "integrate third-party libraries from Hardware Partners and interface with their specific "
  79     "functionality.",
  80     long_description=open("README.md", "r", encoding="utf-8").read(),
  81     long_description_content_type="text/markdown",
  82     classifiers=[
  83         "Development Status :: 5 - Production/Stable",
  84         "License :: OSI Approved :: Apache Software License",
  85         "Intended Audience :: Developers",
  86         "Intended Audience :: Education",
  87         "Intended Audience :: Science/Research",
  88         "Operating System :: OS Independent",
  89         "Programming Language :: Python :: 3.7",
  90         "Programming Language :: Python :: 3.8",
  91         "Programming Language :: Python :: 3.9",
  92         "Topic :: Scientific/Engineering :: Artificial Intelligence",
  93     ],
  94     keywords="transformers, quantization, pruning, optimization, training, inference, onnx, onnx runtime, intel, "
  95     "habana, graphcore, neural compressor, ipu, hpu",
  96     url="https://github.com/huggingface/optimum",
  97     author="HuggingFace Inc. Special Ops Team",
  98     author_email="hardware@huggingface.co",
  99     license="Apache",
  100     packages=find_namespace_packages(include=["optimum*"]),
  101     install_requires=REQUIRED_PKGS,
  102     extras_require=EXTRAS_REQUIRE,
  103     python_requires=">=3.7.0",
  104     include_package_data=True,
  105     zip_safe=False,
  106     entry_points={"console_scripts": ["optimum-cli=optimum.commands.optimum_cli:main"]},
  107 )
  108
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -41,21 +41,21 @@
   
   EXTRAS_REQUIRE = {
       "onnxruntime": [
  -        "onnx<1.14.0",
  +        "onnx",
           "onnxruntime>=1.9.0",
           "datasets>=1.2.1",
           "evaluate",
           "protobuf>=3.20.1",
       ],
       "onnxruntime-gpu": [
  -        "onnx<1.14.0",
  +        "onnx",
           "onnxruntime-gpu>=1.9.0",
           "datasets>=1.2.1",
           "evaluate",
           "protobuf>=3.20.1",
       ],
  -    "exporters": ["onnx<1.14.0", "onnxruntime", "timm"],
  -    "exporters-gpu": ["onnx<1.14.0", "onnxruntime-gpu", "timm"],
  +    "exporters": ["onnx", "onnxruntime", "timm"],
  +    "exporters-gpu": ["onnx", "onnxruntime-gpu", "timm"],
       "exporters-tf": ["tensorflow>=2.4,<2.11", "tf2onnx", "onnx", "onnxruntime", "timm", "h5py", "numpy<1.24.0"],
       "intel": "optimum-intel",
       "openvino": "optimum-intel[openvino]",
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -41,21 +41,21 @@\n \n EXTRAS_REQUIRE = {\n     \"onnxruntime\": [\n-        \"onnx<1.14.0\",\n+        \"onnx\",\n         \"onnxruntime>=1.9.0\",\n         \"datasets>=1.2.1\",\n         \"evaluate\",\n         \"protobuf>=3.20.1\",\n     ],\n     \"onnxruntime-gpu\": [\n-        \"onnx<1.14.0\",\n+        \"onnx\",\n         \"onnxruntime-gpu>=1.9.0\",\n         \"datasets>=1.2.1\",\n         \"evaluate\",\n         \"protobuf>=3.20.1\",\n     ],\n-    \"exporters\": [\"onnx<1.14.0\", \"onnxruntime\", \"timm\"],\n-    \"exporters-gpu\": [\"onnx<1.14.0\", \"onnxruntime-gpu\", \"timm\"],\n+    \"exporters\": [\"onnx\", \"onnxruntime\", \"timm\"],\n+    \"exporters-gpu\": [\"onnx\", \"onnxruntime-gpu\", \"timm\"],\n     \"exporters-tf\": [\"tensorflow>=2.4,<2.11\", \"tf2onnx\", \"onnx\", \"onnxruntime\", \"timm\", \"h5py\", \"numpy<1.24.0\"],\n     \"intel\": \"optimum-intel\",\n     \"openvino\": \"optimum-intel[openvino]\",\n", "issue": "Unpin onnx version to allow using v1.14\n### Feature request\r\n\r\nRemove the version constraint on onnx package to allow using onnx==1.14.\r\n\r\n### Motivation\r\n\r\n- The latest version of onnxruntime (v1.15 at the time of writing) supports onnx==1.14.\r\n- onnx==1.14 introduces support for protobuf v4, which is also useful.\r\n\r\n### Your contribution\r\n\r\nSeems removing the pin from setup.py would be all that is needed as long as the existing tests provide enough validation.\n", "before_files": [{"content": "import re\n\nfrom setuptools import find_namespace_packages, setup\n\n\n# Ensure we match the version set in src/optimum/version.py\ntry:\n    filepath = \"optimum/version.py\"\n    with open(filepath) as version_file:\n        (__version__,) = re.findall('__version__ = \"(.*)\"', version_file.read())\nexcept Exception as error:\n    assert False, \"Error: Could not open '%s' due %s\\n\" % (filepath, error)\n\n\nREQUIRED_PKGS = [\n    \"coloredlogs\",\n    \"sympy\",\n    \"transformers[sentencepiece]>=4.26.0\",\n    \"torch>=1.9\",\n    \"packaging\",\n    \"numpy\",\n    \"huggingface_hub>=0.8.0\",\n    \"datasets\",\n]\n\nTESTS_REQUIRE = [\n    \"pytest\",\n    \"requests\",\n    \"parameterized\",\n    \"pytest-xdist\",\n    \"Pillow\",\n    \"sacremoses\",\n    \"torchvision\",\n    \"diffusers>=0.17.0\",\n    \"torchaudio\",\n]\n\nQUALITY_REQUIRE = [\"black~=23.1\", \"ruff>=0.0.241,<=0.0.259\"]\n\nBENCHMARK_REQUIRE = [\"optuna\", \"tqdm\", \"scikit-learn\", \"seqeval\", \"torchvision\", \"evaluate>=0.2.0\"]\n\nEXTRAS_REQUIRE = {\n    \"onnxruntime\": [\n        \"onnx<1.14.0\",\n        \"onnxruntime>=1.9.0\",\n        \"datasets>=1.2.1\",\n        \"evaluate\",\n        \"protobuf>=3.20.1\",\n    ],\n    \"onnxruntime-gpu\": [\n        \"onnx<1.14.0\",\n        \"onnxruntime-gpu>=1.9.0\",\n        \"datasets>=1.2.1\",\n        \"evaluate\",\n        \"protobuf>=3.20.1\",\n    ],\n    \"exporters\": [\"onnx<1.14.0\", \"onnxruntime\", \"timm\"],\n    \"exporters-gpu\": [\"onnx<1.14.0\", \"onnxruntime-gpu\", \"timm\"],\n    \"exporters-tf\": [\"tensorflow>=2.4,<2.11\", \"tf2onnx\", \"onnx\", \"onnxruntime\", \"timm\", \"h5py\", \"numpy<1.24.0\"],\n    \"intel\": \"optimum-intel\",\n    \"openvino\": \"optimum-intel[openvino]\",\n    \"nncf\": \"optimum-intel[nncf]\",\n    \"neural-compressor\": \"optimum-intel[neural-compressor]\",\n    \"graphcore\": \"optimum-graphcore\",\n    \"habana\": [\"transformers<4.29.0\", \"optimum-habana\"],\n    \"neuron\": \"optimum-neuron[neuron]\",\n    \"neuronx\": \"optimum-neuron[neuronx]\",\n    \"dev\": TESTS_REQUIRE + QUALITY_REQUIRE,\n    \"tests\": TESTS_REQUIRE,\n    \"quality\": QUALITY_REQUIRE,\n    \"benchmark\": BENCHMARK_REQUIRE,\n}\n\nsetup(\n    name=\"optimum\",\n    version=__version__,\n    description=\"Optimum Library is an extension of the Hugging Face Transformers library, providing a framework to \"\n    \"integrate third-party libraries from Hardware Partners and interface with their specific \"\n    \"functionality.\",\n    long_description=open(\"README.md\", \"r\", encoding=\"utf-8\").read(),\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Intended Audience :: Developers\",\n        \"Intended Audience :: Education\",\n        \"Intended Audience :: Science/Research\",\n        \"Operating System :: OS Independent\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n    ],\n    keywords=\"transformers, quantization, pruning, optimization, training, inference, onnx, onnx runtime, intel, \"\n    \"habana, graphcore, neural compressor, ipu, hpu\",\n    url=\"https://github.com/huggingface/optimum\",\n    author=\"HuggingFace Inc. Special Ops Team\",\n    author_email=\"hardware@huggingface.co\",\n    license=\"Apache\",\n    packages=find_namespace_packages(include=[\"optimum*\"]),\n    install_requires=REQUIRED_PKGS,\n    extras_require=EXTRAS_REQUIRE,\n    python_requires=\">=3.7.0\",\n    include_package_data=True,\n    zip_safe=False,\n    entry_points={\"console_scripts\": [\"optimum-cli=optimum.commands.optimum_cli:main\"]},\n)\n", "path": "setup.py"}], "after_files": [{"content": "import re\n\nfrom setuptools import find_namespace_packages, setup\n\n\n# Ensure we match the version set in src/optimum/version.py\ntry:\n    filepath = \"optimum/version.py\"\n    with open(filepath) as version_file:\n        (__version__,) = re.findall('__version__ = \"(.*)\"', version_file.read())\nexcept Exception as error:\n    assert False, \"Error: Could not open '%s' due %s\\n\" % (filepath, error)\n\n\nREQUIRED_PKGS = [\n    \"coloredlogs\",\n    \"sympy\",\n    \"transformers[sentencepiece]>=4.26.0\",\n    \"torch>=1.9\",\n    \"packaging\",\n    \"numpy\",\n    \"huggingface_hub>=0.8.0\",\n    \"datasets\",\n]\n\nTESTS_REQUIRE = [\n    \"pytest\",\n    \"requests\",\n    \"parameterized\",\n    \"pytest-xdist\",\n    \"Pillow\",\n    \"sacremoses\",\n    \"torchvision\",\n    \"diffusers>=0.17.0\",\n    \"torchaudio\",\n]\n\nQUALITY_REQUIRE = [\"black~=23.1\", \"ruff>=0.0.241,<=0.0.259\"]\n\nBENCHMARK_REQUIRE = [\"optuna\", \"tqdm\", \"scikit-learn\", \"seqeval\", \"torchvision\", \"evaluate>=0.2.0\"]\n\nEXTRAS_REQUIRE = {\n    \"onnxruntime\": [\n        \"onnx\",\n        \"onnxruntime>=1.9.0\",\n        \"datasets>=1.2.1\",\n        \"evaluate\",\n        \"protobuf>=3.20.1\",\n    ],\n    \"onnxruntime-gpu\": [\n        \"onnx\",\n        \"onnxruntime-gpu>=1.9.0\",\n        \"datasets>=1.2.1\",\n        \"evaluate\",\n        \"protobuf>=3.20.1\",\n    ],\n    \"exporters\": [\"onnx\", \"onnxruntime\", \"timm\"],\n    \"exporters-gpu\": [\"onnx\", \"onnxruntime-gpu\", \"timm\"],\n    \"exporters-tf\": [\"tensorflow>=2.4,<2.11\", \"tf2onnx\", \"onnx\", \"onnxruntime\", \"timm\", \"h5py\", \"numpy<1.24.0\"],\n    \"intel\": \"optimum-intel\",\n    \"openvino\": \"optimum-intel[openvino]\",\n    \"nncf\": \"optimum-intel[nncf]\",\n    \"neural-compressor\": \"optimum-intel[neural-compressor]\",\n    \"graphcore\": \"optimum-graphcore\",\n    \"habana\": [\"transformers<4.29.0\", \"optimum-habana\"],\n    \"neuron\": \"optimum-neuron[neuron]\",\n    \"neuronx\": \"optimum-neuron[neuronx]\",\n    \"dev\": TESTS_REQUIRE + QUALITY_REQUIRE,\n    \"tests\": TESTS_REQUIRE,\n    \"quality\": QUALITY_REQUIRE,\n    \"benchmark\": BENCHMARK_REQUIRE,\n}\n\nsetup(\n    name=\"optimum\",\n    version=__version__,\n    description=\"Optimum Library is an extension of the Hugging Face Transformers library, providing a framework to \"\n    \"integrate third-party libraries from Hardware Partners and interface with their specific \"\n    \"functionality.\",\n    long_description=open(\"README.md\", \"r\", encoding=\"utf-8\").read(),\n    long_description_content_type=\"text/markdown\",\n    classifiers=[\n        \"Development Status :: 5 - Production/Stable\",\n        \"License :: OSI Approved :: Apache Software License\",\n        \"Intended Audience :: Developers\",\n        \"Intended Audience :: Education\",\n        \"Intended Audience :: Science/Research\",\n        \"Operating System :: OS Independent\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Topic :: Scientific/Engineering :: Artificial Intelligence\",\n    ],\n    keywords=\"transformers, quantization, pruning, optimization, training, inference, onnx, onnx runtime, intel, \"\n    \"habana, graphcore, neural compressor, ipu, hpu\",\n    url=\"https://github.com/huggingface/optimum\",\n    author=\"HuggingFace Inc. Special Ops Team\",\n    author_email=\"hardware@huggingface.co\",\n    license=\"Apache\",\n    packages=find_namespace_packages(include=[\"optimum*\"]),\n    install_requires=REQUIRED_PKGS,\n    extras_require=EXTRAS_REQUIRE,\n    python_requires=\">=3.7.0\",\n    include_package_data=True,\n    zip_safe=False,\n    entry_points={\"console_scripts\": [\"optimum-cli=optimum.commands.optimum_cli:main\"]},\n)\n", "path": "setup.py"}]}