Skip to content

"Installation Failure: flash-attn Build Error During autodistill-grounded-sam-2 Installation in Google Colab" #9

@Natty02

Description

@Natty02

Issue Description:
When attempting to install the autodistill-grounded-sam-2 package in Google Colab using the command !pip install autodistill-grounded-sam-2, an error occurs related to the dependency flash-attn. The issue arises during the wheel-building process (bdist_wheel), with a subprocess-exited-with-error message indicating a failure in installation. Details of the issue:

  1. flash-attn installation error: The package flash-attn, required by autodistill-grounded-sam-2, fails to build. The process exits with code 1 during the setup.py bdist_wheel step.
  2. Error note: The error originates from an external subprocess, likely due to a build issue with flash-attn in the Colab environment rather than a pip issue itself.

Troubleshooting steps attempted:
Efforts to resolve the issue, such as updating pip, reinstalling torch, and attempting to build dependencies manually, were unsuccessful.

Environment:

  • Google Colab
  • Python version: [specify if known]
  • Torch version: 2.0.1

Any guidance or fixes would be appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions