It gives me an error when executing the xformers installation in google colab
See original GitHub issueWhen executing the cell “Patching setup.py” I get that it can’t find the file /content/xformers/setup.py
The error is the following:
Writing /content/xformers/setup.py
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
[<ipython-input-10-91ff3c53b74d>](https://localhost:8080/#) in <module>
----> 1 get_ipython().run_cell_magic('writefile', '/content/xformers/setup.py', '#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.\n#\n# This source code is licensed under the BSD license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport distutils.command.clean\nimport glob\nimport os\nimport re\nimport shutil\nimport subprocess\nimport sys\nfrom pathlib import Path\n\nimport setuptools\nimport torch\nfrom torch.utils.cpp_extension import (\n CUDA_HOME,\n BuildExtension,\n CppExtension,\n CUDAExtension,\n)\n\nthis_dir = os.path.dirname(os.path.abspath(__file__))\n\n\ndef fetch_requirements():\n with open("requirements.txt") as f:\n reqs = f.read().strip().split("\\n")\n return reqs\n\n\n# [https://packaging.python.org/guides/single-sourcing-package-version/\ndef](https://packaging.python.org/guides/single-sourcing-package-version//ndef) find_version(version_file_path):\n with open(version_file_path) as version_file:\n version_match = re.search(\n r"^__version__ = [\'\\"]([^\'\\"]*)[\'\\"]", version_file.read(), re.M\n )\n # The following is used to build release packages.\n # Users should never use it.\n suffix = os.getenv("XFORMERS_VERSION_SUFFIX", "")\n if version_match:\n return version_match.group(1) + suffix\n raise RuntimeError("Unable to find ...
2 frames
<decorator-gen-98> in writefile(self, line, cell)
[/usr/local/lib/python3.7/dist-packages/IPython/core/magics/osm.py](https://localhost:8080/#) in writefile(self, line, cell)
846
847 mode = 'a' if args.append else 'w'
--> 848 with io.open(filename, mode, encoding='utf-8') as f:
849 f.write(cell)
FileNotFoundError: [Errno 2] No such file or directory: '/content/xformers/setup.py'
Issue Analytics
- State:
- Created a year ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
It takes 1 hour 10 minutes to install xFormers on Google Colab ...
Feature We really wish to use xFormers with Google Colab, but xFormers takes so long to install that we just can't use it....
Read more >Google Colaboratory gives me an error when I want to install ...
When I ran the following commands in the Jupiter notebook, it gives me an error. !apt-get install openslide-tools !pip install openslide-python.
Read more >DreamBooth Stable Diffusion working on Google Colab Free ...
I came across this same error and for me it was because I was giving it an incorrect path to where the model...
Read more >How to run Large AI Models from Hugging Face on ... - YouTube
This demo shows how to run large AI models from #huggingface on a Single GPU without Out of Memory error. Take a OPT-175B...
Read more >Google Colab tokenizer.push_to_hub(repo_name) leads to ...
Hello, I'm using a Google Colab notebook. ... But if I run this line: ... !pip install huggingface_hub transformers from huggingface_hub ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

use this one :
!git clone --branch gh/danthe3rd/35/orig https://github.com/facebookresearch/xformers.gityep, i’ll fix that line