{
  "id": 313066,
  "title": "How to use Conformer in google colab?",
  "url": "/competitions/ml2022spring-hw4/discussion/313066",
  "author_name": "",
  "post_date": "2022-03-15T13:22:48.742634200Z",
  "votes": null,
  "comment_count": 2,
  "views": 0,
  "content": "<p>I'm trying to use conformer in google colab. refer to pytorch official documents:<br>\n<a href=\"https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\" target=\"_blank\">https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html</a></p>\n<p>But, colab told me that:</p>\n<blockquote>\n  <p>module \"torchaudio.models\" has no attribute \"Conformer\"</p>\n</blockquote>\n<p>I use this to figure out the torchaudio version in colab:<br>\n<code>print(torchaudio.__version__)</code><br>\nThe output is \"0.10.0\"</p>\n<p>the latest version is 0.11.0, so I tried to update torchaudio by using<br>\n<code>pip install torchaudio 0.11.0</code></p>\n<p>But:<br>\n<code>Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\nERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\nERROR: No matching distribution found for 0.11.0</code></p>\n<p>So, how to use conformer in colab? Do I have to write it by myself?</p>",
  "messages": [
    {
      "id": "1723501",
      "postDate": "03/15/2022 13:22:48",
      "content": "<p>I'm trying to use conformer in google colab. refer to pytorch official documents:<br>\n<a href=\"https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\" target=\"_blank\">https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html</a></p>\n<p>But, colab told me that:</p>\n<blockquote>\n  <p>module \"torchaudio.models\" has no attribute \"Conformer\"</p>\n</blockquote>\n<p>I use this to figure out the torchaudio version in colab:<br>\n<code>print(torchaudio.__version__)</code><br>\nThe output is \"0.10.0\"</p>\n<p>the latest version is 0.11.0, so I tried to update torchaudio by using<br>\n<code>pip install torchaudio 0.11.0</code></p>\n<p>But:<br>\n<code>Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\nERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\nERROR: No matching distribution found for 0.11.0</code></p>\n<p>So, how to use conformer in colab? Do I have to write it by myself?</p>",
      "rawMarkdown": "I'm trying to use conformer in google colab. refer to pytorch official documents:\nhttps://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\n\nBut, colab told me that:\n> module \"torchaudio.models\" has no attribute \"Conformer\"\n\nI use this to figure out the torchaudio version in colab:\n`print(torchaudio.__version__)`\nThe output is \"0.10.0\"\n\nthe latest version is 0.11.0, so I tried to update torchaudio by using\n`pip install torchaudio 0.11.0`\n\nBut:\n`Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\nERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\nERROR: No matching distribution found for 0.11.0`\n\nSo, how to use conformer in colab? Do I have to write it by myself?",
      "votes": null
    },
    {
      "id": "1723736",
      "postDate": "03/15/2022 17:13:17",
      "content": "<blockquote>\n  <p>I'm trying to use conformer in google colab. refer to pytorch official documents:<br>\n  <a href=\"https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\" target=\"_blank\">https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html</a></p>\n  <p>But, colab told me that:</p>\n  <blockquote>\n    <p>module \"torchaudio.models\" has no attribute \"Conformer\"</p>\n  </blockquote>\n  <p>I use this to figure out the torchaudio version in colab:<br>\n  <code>print(torchaudio.__version__)</code><br>\n  The output is \"0.10.0\"</p>\n  <p>the latest version is 0.11.0, so I tried to update torchaudio by using<br>\n  <code>pip install torchaudio 0.11.0</code></p>\n  <p>But:<br>\n  <code>Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\nERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\nERROR: No matching distribution found for 0.11.0</code></p>\n  <p>So, how to use conformer in colab? Do I have to write it by myself?</p>\n</blockquote>\n<ol>\n<li>check cuda version via nvidia-smi</li>\n<li>select your environment here: <a href=\"https://pytorch.org/get-started/locally/\" target=\"_blank\">https://pytorch.org/get-started/locally/</a>    note:(in my case cuda 11.2 and it's fine to select 11.3)</li>\n<li>run the command suggested from step2</li>\n</ol>\n<p><img src=\"https://ibb.co/WzV041v\" alt=\"\"></p>",
      "rawMarkdown": "> I'm trying to use conformer in google colab. refer to pytorch official documents:\n> https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\n> \n> But, colab told me that:\n> > module \"torchaudio.models\" has no attribute \"Conformer\"\n> \n> I use this to figure out the torchaudio version in colab:\n> `print(torchaudio.__version__)`\n> The output is \"0.10.0\"\n> \n> the latest version is 0.11.0, so I tried to update torchaudio by using\n> `pip install torchaudio 0.11.0`\n> \n> But:\n> `Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\n> ERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\n> ERROR: No matching distribution found for 0.11.0`\n> \n> So, how to use conformer in colab? Do I have to write it by myself?\n\n1.  check cuda version via nvidia-smi\n2. select your environment here: https://pytorch.org/get-started/locally/    note:(in my case cuda 11.2 and it's fine to select 11.3)\n3. run the command suggested from step2\n\n![](https://ibb.co/WzV041v)",
      "votes": null
    },
    {
      "id": "1787188",
      "postDate": "05/13/2022 16:34:46",
      "content": "<p>I use <code>!pip install conformer</code></p>",
      "rawMarkdown": "I use `!pip install conformer`",
      "votes": null
    }
  ],
  "comments": [
    {
      "id": 1723736,
      "author_name": "p10922001tracy",
      "author_url": "",
      "post_date": "03/15/2022 17:13:17",
      "content": "<blockquote>\n  <p>I'm trying to use conformer in google colab. refer to pytorch official documents:<br>\n  <a href=\"https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\" target=\"_blank\">https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html</a></p>\n  <p>But, colab told me that:</p>\n  <blockquote>\n    <p>module \"torchaudio.models\" has no attribute \"Conformer\"</p>\n  </blockquote>\n  <p>I use this to figure out the torchaudio version in colab:<br>\n  <code>print(torchaudio.__version__)</code><br>\n  The output is \"0.10.0\"</p>\n  <p>the latest version is 0.11.0, so I tried to update torchaudio by using<br>\n  <code>pip install torchaudio 0.11.0</code></p>\n  <p>But:<br>\n  <code>Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\nERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\nERROR: No matching distribution found for 0.11.0</code></p>\n  <p>So, how to use conformer in colab? Do I have to write it by myself?</p>\n</blockquote>\n<ol>\n<li>check cuda version via nvidia-smi</li>\n<li>select your environment here: <a href=\"https://pytorch.org/get-started/locally/\" target=\"_blank\">https://pytorch.org/get-started/locally/</a>    note:(in my case cuda 11.2 and it's fine to select 11.3)</li>\n<li>run the command suggested from step2</li>\n</ol>\n<p><img src=\"https://ibb.co/WzV041v\" alt=\"\"></p>",
      "votes": null,
      "replies": []
    },
    {
      "id": 1787188,
      "author_name": "my0sotis",
      "author_url": "",
      "post_date": "05/13/2022 16:34:46",
      "content": "<p>I use <code>!pip install conformer</code></p>",
      "votes": null,
      "replies": []
    }
  ],
  "raw_markdown_by_id": {
    "1723501": "I'm trying to use conformer in google colab. refer to pytorch official documents:\nhttps://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\n\nBut, colab told me that:\n> module \"torchaudio.models\" has no attribute \"Conformer\"\n\nI use this to figure out the torchaudio version in colab:\n`print(torchaudio.__version__)`\nThe output is \"0.10.0\"\n\nthe latest version is 0.11.0, so I tried to update torchaudio by using\n`pip install torchaudio 0.11.0`\n\nBut:\n`Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\nERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\nERROR: No matching distribution found for 0.11.0`\n\nSo, how to use conformer in colab? Do I have to write it by myself?",
    "1723736": "> I'm trying to use conformer in google colab. refer to pytorch official documents:\n> https://pytorch.org/audio/main/_modules/torchaudio/models/conformer.html\n> \n> But, colab told me that:\n> > module \"torchaudio.models\" has no attribute \"Conformer\"\n> \n> I use this to figure out the torchaudio version in colab:\n> `print(torchaudio.__version__)`\n> The output is \"0.10.0\"\n> \n> the latest version is 0.11.0, so I tried to update torchaudio by using\n> `pip install torchaudio 0.11.0`\n> \n> But:\n> `Requirement already satisfied: torchaudio in /usr/local/lib/python3.7/dist-packages (0.10.0+cu111)\n> ERROR: Could not find a version that satisfies the requirement 0.11.0 (from versions: none)\n> ERROR: No matching distribution found for 0.11.0`\n> \n> So, how to use conformer in colab? Do I have to write it by myself?\n\n1.  check cuda version via nvidia-smi\n2. select your environment here: https://pytorch.org/get-started/locally/    note:(in my case cuda 11.2 and it's fine to select 11.3)\n3. run the command suggested from step2\n\n![](https://ibb.co/WzV041v)",
    "1787188": "I use `!pip install conformer`"
  },
  "source": "meta"
}