Skip to content

Slow inference speed #7

@stephenleo

Description

@stephenleo

Training time is definitely faster!
But exactly following the documentation from the readme, I am getting inference times of ~2.8s on a T4 GPU on Google Colab which is much slower than SetFit (~20ms).
What am I doing wrong?

%%timeit
print(classifier("I love this package!"))
2.82 s ± 796 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

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