prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  [Feature Request] submitit: add `stderr_to_stdout` ass supported by submitit
  # 🚀 Feature Request
  
  `stderr_to_stdout` option was added in submitit (not the plugin)  [last year](https://github.com/facebookincubator/submitit/pull/1611) but cannot currently be given from submitit plugin. 
  
  We should add support for passing this `stderr_to_stdout`  via the plugin as well.
  
  cc @Jasha10 
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `plugins/hydra_submitit_launcher/setup.py`
  Content:
  ```
  1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
  2 # type: ignore
  3 from pathlib import Path
  4 
  5 from read_version import read_version
  6 from setuptools import find_namespace_packages, setup
  7 
  8 setup(
  9     name="hydra-submitit-launcher",
  10     version=read_version("hydra_plugins/hydra_submitit_launcher", "__init__.py"),
  11     author="Jeremy Rapin, Jieru Hu, Omry Yadan",
  12     author_email="jrapin@fb.com, jieru@fb.com, omry@fb.com",
  13     description="Submitit Launcher for Hydra apps",
  14     long_description=(Path(__file__).parent / "README.md").read_text(),
  15     long_description_content_type="text/markdown",
  16     url="https://github.com/facebookincubator/submitit",
  17     packages=find_namespace_packages(include=["hydra_plugins.*"]),
  18     classifiers=[
  19         "License :: OSI Approved :: MIT License",
  20         "Programming Language :: Python :: 3.7",
  21         "Programming Language :: Python :: 3.8",
  22         "Programming Language :: Python :: 3.9",
  23         "Operating System :: MacOS",
  24         "Operating System :: POSIX :: Linux",
  25         "Development Status :: 4 - Beta",
  26     ],
  27     install_requires=[
  28         "hydra-core>=1.1.0.dev7",
  29         "submitit>=1.0.0",
  30     ],
  31     include_package_data=True,
  32 )
  33
  ```
  
  Path: `plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py`
  Content:
  ```
  1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
  2 from dataclasses import dataclass, field
  3 from typing import Any, Dict, List, Optional
  4 
  5 from hydra.core.config_store import ConfigStore
  6 
  7 
  8 @dataclass
  9 class BaseQueueConf:
  10     """Configuration shared by all executors"""
  11 
  12     submitit_folder: str = "${hydra.sweep.dir}/.submitit/%j"
  13 
  14     # maximum time for the job in minutes
  15     timeout_min: int = 60
  16     # number of cpus to use for each task
  17     cpus_per_task: Optional[int] = None
  18     # number of gpus to use on each node
  19     gpus_per_node: Optional[int] = None
  20     # number of tasks to spawn on each node
  21     tasks_per_node: int = 1
  22     # memory to reserve for the job on each node (in GB)
  23     mem_gb: Optional[int] = None
  24     # number of nodes to use for the job
  25     nodes: int = 1
  26     # name of the job
  27     name: str = "${hydra.job.name}"
  28 
  29 
  30 @dataclass
  31 class SlurmQueueConf(BaseQueueConf):
  32     """Slurm configuration overrides and specific parameters"""
  33 
  34     _target_: str = (
  35         "hydra_plugins.hydra_submitit_launcher.submitit_launcher.SlurmLauncher"
  36     )
  37 
  38     # Params are used to configure sbatch, for more info check:
  39     # https://github.com/facebookincubator/submitit/blob/master/submitit/slurm/slurm.py
  40 
  41     # Following parameters are slurm specific
  42     # More information: https://slurm.schedmd.com/sbatch.html
  43     #
  44     # slurm partition to use on the cluster
  45     partition: Optional[str] = None
  46     qos: Optional[str] = None
  47     comment: Optional[str] = None
  48     constraint: Optional[str] = None
  49     exclude: Optional[str] = None
  50     gres: Optional[str] = None
  51     cpus_per_gpu: Optional[int] = None
  52     gpus_per_task: Optional[int] = None
  53     mem_per_gpu: Optional[str] = None
  54     mem_per_cpu: Optional[str] = None
  55 
  56     # Following parameters are submitit specifics
  57     #
  58     # USR1 signal delay before timeout
  59     signal_delay_s: int = 120
  60     # Maximum number of retries on job timeout.
  61     # Change this only after you confirmed your code can handle re-submission
  62     # by properly resuming from the latest stored checkpoint.
  63     # check the following for more info on slurm_max_num_timeout
  64     # https://github.com/facebookincubator/submitit/blob/master/docs/checkpointing.md
  65     max_num_timeout: int = 0
  66     # Useful to add parameters which are not currently available in the plugin.
  67     # Eg: {"mail-user": "blublu@fb.com", "mail-type": "BEGIN"}
  68     additional_parameters: Dict[str, Any] = field(default_factory=dict)
  69     # Maximum number of jobs running in parallel
  70     array_parallelism: int = 256
  71     # A list of commands to run in sbatch befure running srun
  72     setup: Optional[List[str]] = None
  73 
  74 
  75 @dataclass
  76 class LocalQueueConf(BaseQueueConf):
  77     _target_: str = (
  78         "hydra_plugins.hydra_submitit_launcher.submitit_launcher.LocalLauncher"
  79     )
  80 
  81 
  82 # finally, register two different choices:
  83 ConfigStore.instance().store(
  84     group="hydra/launcher",
  85     name="submitit_local",
  86     node=LocalQueueConf(),
  87     provider="submitit_launcher",
  88 )
  89 
  90 
  91 ConfigStore.instance().store(
  92     group="hydra/launcher",
  93     name="submitit_slurm",
  94     node=SlurmQueueConf(),
  95     provider="submitit_launcher",
  96 )
  97
  ```
  
  Path: `plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py`
  Content:
  ```
  1 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
  2 
  3 __version__ = "1.2.0dev1"
  4
  ```
  --- 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/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py
  --- a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py
  +++ b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py
  @@ -1,3 +1,3 @@
   # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
   
  -__version__ = "1.2.0dev1"
  +__version__ = "1.2.0dev2"
  diff --git a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py
  --- a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py
  +++ b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py
  @@ -25,6 +25,8 @@
       nodes: int = 1
       # name of the job
       name: str = "${hydra.job.name}"
  +    # redirect stderr to stdout
  +    stderr_to_stdout: bool = False
   
   
   @dataclass
  diff --git a/plugins/hydra_submitit_launcher/setup.py b/plugins/hydra_submitit_launcher/setup.py
  --- a/plugins/hydra_submitit_launcher/setup.py
  +++ b/plugins/hydra_submitit_launcher/setup.py
  @@ -26,7 +26,7 @@
       ],
       install_requires=[
           "hydra-core>=1.1.0.dev7",
  -        "submitit>=1.0.0",
  +        "submitit>=1.3.3",
       ],
       include_package_data=True,
   )
  
verification_info: {"golden_diff": "diff --git a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py\n--- a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py\n+++ b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py\n@@ -1,3 +1,3 @@\n # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n \n-__version__ = \"1.2.0dev1\"\n+__version__ = \"1.2.0dev2\"\ndiff --git a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py\n--- a/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py\n+++ b/plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py\n@@ -25,6 +25,8 @@\n     nodes: int = 1\n     # name of the job\n     name: str = \"${hydra.job.name}\"\n+    # redirect stderr to stdout\n+    stderr_to_stdout: bool = False\n \n \n @dataclass\ndiff --git a/plugins/hydra_submitit_launcher/setup.py b/plugins/hydra_submitit_launcher/setup.py\n--- a/plugins/hydra_submitit_launcher/setup.py\n+++ b/plugins/hydra_submitit_launcher/setup.py\n@@ -26,7 +26,7 @@\n     ],\n     install_requires=[\n         \"hydra-core>=1.1.0.dev7\",\n-        \"submitit>=1.0.0\",\n+        \"submitit>=1.3.3\",\n     ],\n     include_package_data=True,\n )\n", "issue": "[Feature Request] submitit: add `stderr_to_stdout` ass supported by submitit\n# \ud83d\ude80 Feature Request\r\n\r\n`stderr_to_stdout` option was added in submitit (not the plugin)  [last year](https://github.com/facebookincubator/submitit/pull/1611) but cannot currently be given from submitit plugin. \r\n\r\nWe should add support for passing this `stderr_to_stdout`  via the plugin as well.\r\n\r\ncc @Jasha10 \n", "before_files": [{"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nfrom pathlib import Path\n\nfrom read_version import read_version\nfrom setuptools import find_namespace_packages, setup\n\nsetup(\n    name=\"hydra-submitit-launcher\",\n    version=read_version(\"hydra_plugins/hydra_submitit_launcher\", \"__init__.py\"),\n    author=\"Jeremy Rapin, Jieru Hu, Omry Yadan\",\n    author_email=\"jrapin@fb.com, jieru@fb.com, omry@fb.com\",\n    description=\"Submitit Launcher for Hydra apps\",\n    long_description=(Path(__file__).parent / \"README.md\").read_text(),\n    long_description_content_type=\"text/markdown\",\n    url=\"https://github.com/facebookincubator/submitit\",\n    packages=find_namespace_packages(include=[\"hydra_plugins.*\"]),\n    classifiers=[\n        \"License :: OSI Approved :: MIT License\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Operating System :: MacOS\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Development Status :: 4 - Beta\",\n    ],\n    install_requires=[\n        \"hydra-core>=1.1.0.dev7\",\n        \"submitit>=1.0.0\",\n    ],\n    include_package_data=True,\n)\n", "path": "plugins/hydra_submitit_launcher/setup.py"}, {"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom dataclasses import dataclass, field\nfrom typing import Any, Dict, List, Optional\n\nfrom hydra.core.config_store import ConfigStore\n\n\n@dataclass\nclass BaseQueueConf:\n    \"\"\"Configuration shared by all executors\"\"\"\n\n    submitit_folder: str = \"${hydra.sweep.dir}/.submitit/%j\"\n\n    # maximum time for the job in minutes\n    timeout_min: int = 60\n    # number of cpus to use for each task\n    cpus_per_task: Optional[int] = None\n    # number of gpus to use on each node\n    gpus_per_node: Optional[int] = None\n    # number of tasks to spawn on each node\n    tasks_per_node: int = 1\n    # memory to reserve for the job on each node (in GB)\n    mem_gb: Optional[int] = None\n    # number of nodes to use for the job\n    nodes: int = 1\n    # name of the job\n    name: str = \"${hydra.job.name}\"\n\n\n@dataclass\nclass SlurmQueueConf(BaseQueueConf):\n    \"\"\"Slurm configuration overrides and specific parameters\"\"\"\n\n    _target_: str = (\n        \"hydra_plugins.hydra_submitit_launcher.submitit_launcher.SlurmLauncher\"\n    )\n\n    # Params are used to configure sbatch, for more info check:\n    # https://github.com/facebookincubator/submitit/blob/master/submitit/slurm/slurm.py\n\n    # Following parameters are slurm specific\n    # More information: https://slurm.schedmd.com/sbatch.html\n    #\n    # slurm partition to use on the cluster\n    partition: Optional[str] = None\n    qos: Optional[str] = None\n    comment: Optional[str] = None\n    constraint: Optional[str] = None\n    exclude: Optional[str] = None\n    gres: Optional[str] = None\n    cpus_per_gpu: Optional[int] = None\n    gpus_per_task: Optional[int] = None\n    mem_per_gpu: Optional[str] = None\n    mem_per_cpu: Optional[str] = None\n\n    # Following parameters are submitit specifics\n    #\n    # USR1 signal delay before timeout\n    signal_delay_s: int = 120\n    # Maximum number of retries on job timeout.\n    # Change this only after you confirmed your code can handle re-submission\n    # by properly resuming from the latest stored checkpoint.\n    # check the following for more info on slurm_max_num_timeout\n    # https://github.com/facebookincubator/submitit/blob/master/docs/checkpointing.md\n    max_num_timeout: int = 0\n    # Useful to add parameters which are not currently available in the plugin.\n    # Eg: {\"mail-user\": \"blublu@fb.com\", \"mail-type\": \"BEGIN\"}\n    additional_parameters: Dict[str, Any] = field(default_factory=dict)\n    # Maximum number of jobs running in parallel\n    array_parallelism: int = 256\n    # A list of commands to run in sbatch befure running srun\n    setup: Optional[List[str]] = None\n\n\n@dataclass\nclass LocalQueueConf(BaseQueueConf):\n    _target_: str = (\n        \"hydra_plugins.hydra_submitit_launcher.submitit_launcher.LocalLauncher\"\n    )\n\n\n# finally, register two different choices:\nConfigStore.instance().store(\n    group=\"hydra/launcher\",\n    name=\"submitit_local\",\n    node=LocalQueueConf(),\n    provider=\"submitit_launcher\",\n)\n\n\nConfigStore.instance().store(\n    group=\"hydra/launcher\",\n    name=\"submitit_slurm\",\n    node=SlurmQueueConf(),\n    provider=\"submitit_launcher\",\n)\n", "path": "plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py"}, {"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\n__version__ = \"1.2.0dev1\"\n", "path": "plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py"}], "after_files": [{"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n# type: ignore\nfrom pathlib import Path\n\nfrom read_version import read_version\nfrom setuptools import find_namespace_packages, setup\n\nsetup(\n    name=\"hydra-submitit-launcher\",\n    version=read_version(\"hydra_plugins/hydra_submitit_launcher\", \"__init__.py\"),\n    author=\"Jeremy Rapin, Jieru Hu, Omry Yadan\",\n    author_email=\"jrapin@fb.com, jieru@fb.com, omry@fb.com\",\n    description=\"Submitit Launcher for Hydra apps\",\n    long_description=(Path(__file__).parent / \"README.md\").read_text(),\n    long_description_content_type=\"text/markdown\",\n    url=\"https://github.com/facebookincubator/submitit\",\n    packages=find_namespace_packages(include=[\"hydra_plugins.*\"]),\n    classifiers=[\n        \"License :: OSI Approved :: MIT License\",\n        \"Programming Language :: Python :: 3.7\",\n        \"Programming Language :: Python :: 3.8\",\n        \"Programming Language :: Python :: 3.9\",\n        \"Operating System :: MacOS\",\n        \"Operating System :: POSIX :: Linux\",\n        \"Development Status :: 4 - Beta\",\n    ],\n    install_requires=[\n        \"hydra-core>=1.1.0.dev7\",\n        \"submitit>=1.3.3\",\n    ],\n    include_package_data=True,\n)\n", "path": "plugins/hydra_submitit_launcher/setup.py"}, {"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom dataclasses import dataclass, field\nfrom typing import Any, Dict, List, Optional\n\nfrom hydra.core.config_store import ConfigStore\n\n\n@dataclass\nclass BaseQueueConf:\n    \"\"\"Configuration shared by all executors\"\"\"\n\n    submitit_folder: str = \"${hydra.sweep.dir}/.submitit/%j\"\n\n    # maximum time for the job in minutes\n    timeout_min: int = 60\n    # number of cpus to use for each task\n    cpus_per_task: Optional[int] = None\n    # number of gpus to use on each node\n    gpus_per_node: Optional[int] = None\n    # number of tasks to spawn on each node\n    tasks_per_node: int = 1\n    # memory to reserve for the job on each node (in GB)\n    mem_gb: Optional[int] = None\n    # number of nodes to use for the job\n    nodes: int = 1\n    # name of the job\n    name: str = \"${hydra.job.name}\"\n    # redirect stderr to stdout\n    stderr_to_stdout: bool = False\n\n\n@dataclass\nclass SlurmQueueConf(BaseQueueConf):\n    \"\"\"Slurm configuration overrides and specific parameters\"\"\"\n\n    _target_: str = (\n        \"hydra_plugins.hydra_submitit_launcher.submitit_launcher.SlurmLauncher\"\n    )\n\n    # Params are used to configure sbatch, for more info check:\n    # https://github.com/facebookincubator/submitit/blob/master/submitit/slurm/slurm.py\n\n    # Following parameters are slurm specific\n    # More information: https://slurm.schedmd.com/sbatch.html\n    #\n    # slurm partition to use on the cluster\n    partition: Optional[str] = None\n    qos: Optional[str] = None\n    comment: Optional[str] = None\n    constraint: Optional[str] = None\n    exclude: Optional[str] = None\n    gres: Optional[str] = None\n    cpus_per_gpu: Optional[int] = None\n    gpus_per_task: Optional[int] = None\n    mem_per_gpu: Optional[str] = None\n    mem_per_cpu: Optional[str] = None\n\n    # Following parameters are submitit specifics\n    #\n    # USR1 signal delay before timeout\n    signal_delay_s: int = 120\n    # Maximum number of retries on job timeout.\n    # Change this only after you confirmed your code can handle re-submission\n    # by properly resuming from the latest stored checkpoint.\n    # check the following for more info on slurm_max_num_timeout\n    # https://github.com/facebookincubator/submitit/blob/master/docs/checkpointing.md\n    max_num_timeout: int = 0\n    # Useful to add parameters which are not currently available in the plugin.\n    # Eg: {\"mail-user\": \"blublu@fb.com\", \"mail-type\": \"BEGIN\"}\n    additional_parameters: Dict[str, Any] = field(default_factory=dict)\n    # Maximum number of jobs running in parallel\n    array_parallelism: int = 256\n    # A list of commands to run in sbatch befure running srun\n    setup: Optional[List[str]] = None\n\n\n@dataclass\nclass LocalQueueConf(BaseQueueConf):\n    _target_: str = (\n        \"hydra_plugins.hydra_submitit_launcher.submitit_launcher.LocalLauncher\"\n    )\n\n\n# finally, register two different choices:\nConfigStore.instance().store(\n    group=\"hydra/launcher\",\n    name=\"submitit_local\",\n    node=LocalQueueConf(),\n    provider=\"submitit_launcher\",\n)\n\n\nConfigStore.instance().store(\n    group=\"hydra/launcher\",\n    name=\"submitit_slurm\",\n    node=SlurmQueueConf(),\n    provider=\"submitit_launcher\",\n)\n", "path": "plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/config.py"}, {"content": "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\n__version__ = \"1.2.0dev2\"\n", "path": "plugins/hydra_submitit_launcher/hydra_plugins/hydra_submitit_launcher/__init__.py"}]}