Skip to content

Leveraging GPU to run the quickstart_vision.ipynb notebook #59

@Analect

Description

@Analect

Hi. Thanks for your work on this.
I was trying to run your example https://github.com/Giskard-AI/giskard/blob/main/docs/getting_started/quickstart/quickstart_vision.ipynb on Colab. Initially I was using the default CPU runtime, but the notebook ran for >1hr and eventually timed-out. I was then trying to run it on a Colab GPU runtime (T4). It says "To use the fast image processor class set use_fast=True." Could you advise how the model setup in the sample notebook should be adjusted to be able to leverage a GPU?

Image

Fast image processor class <class 'transformers.models.vit.image_processing_vit_fast.ViTImageProcessorFast'> is available for this model. Using slow image processor class. To use the fast image processor class set `use_fast=True`.
Device set to use cpu

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