question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On COLAB: Testing the trained model error: "did you forget to build xformers with `python setup.py develop"

See original GitHub issue

Before this I had some problems with building a CKPT model (with text_encoder). Now:

WARNING:root:WARNING: Need to compile C++ extensions to get sparse attention suport. Please run python setup.py build develop

RuntimeError: No such operator xformers::efficient_attention_forward_generic - did you forget to build xformers with python setup.py develop?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
shreks7commented, Nov 1, 2022

Okay, I figured it out. If someone wants to run a Custom Colab VM -

You need to match the pytorch version (1.12) instead of (1.13)

0reactions
shreks7commented, Nov 1, 2022

I think so too, going to match atleast the pytorch version and see if it works -

Standard Google Collab VM (Colab Pro)

NAME="Ubuntu"
VERSION="18.04.6 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.6 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

Google Colab VM from Marketplace -

5.4.144+
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Read more comments on GitHub >

github_iconTop Results From Across the Web

No such operator xformers::efficient_attention_forward_cutlass
RuntimeError: No such operator xformers::efficient_attention_forward_cutlass - did you forget to build xformers with python setup.py develop ?
Read more >
What to do when you get an error - Hugging Face Course
In this section we'll look at some common errors that can occur when you're trying to generate predictions from your freshly tuned Transformer...
Read more >
fast-dreambooth colab, +65% speed increase + less than ...
Train your model using this easy simple and fast colab, all you have to do is enter you ... Please run python setup.py...
Read more >
python setup.py bdist_wheel did not run successfully
I ran into the same error trying to run a SikuliX script on a Windows 10 PC. ... python setup.py bdist_wheel did not...
Read more >
OCR-Free Document Understanding with Donut
from_pretrained () call, I've simply specified the name of the pretrained model from the HuggingFace Hub (the necessary files are downloaded at this...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found