Skip to content

[BUG]: Opening the tutorial notebooks in Colab defaults to a runtime that doesn't have CUDA/a GPU installed. #56

@brycelelbach

Description

@brycelelbach

Steps to reproduce:
0.) Got to the README for the C++ tutorial (or presumably the Python tutorial).
1.) Click on the "Open in Colab" link for 01.04.01 Vocabulary Types (or presumably any other example).
2.) Run the first three cells.

The third cell will fail with the following error:

Image

Upon inspection, I realized that I was not running on a Colab instance with a GPU.

Image

Once switching to a T4 GPU instance, everything was fine.

Action items:

  • Add a check to the notebooks that will verify that the instance has a GPU and has CUDA installed, and provides a clear error and instructions to the user if the instance is unsuitable.
  • Make links to the notebooks default to opening the correct kind of colab instance.

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