Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(ci) Thomasht86/fix slow colpali notebooks #984

Merged
merged 11 commits into from
Dec 3, 2024

Conversation

thomasht86
Copy link
Collaborator

@thomasht86 thomasht86 commented Dec 3, 2024

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

Seems like using torch.autocast() does not work well when running on cpu - pytorch/pytorch#118499.

These notebooks were 2 oom slower to do inference of the colpali model.

  • Removed autocast and also upgraded to use colpali_engine==3.1.0.
  • Also added a cleanup cell to delete vespa application if running in CI.
  • Tested that they run on Colab with T4 GPU.

Fixed a broken link in M3-notebook (large diff due to ruff-formatting)

@thomasht86 thomasht86 changed the title Thomasht86/fix speed colpali notebooks (ci) Thomasht86/fix slow colpali notebooks Dec 3, 2024
@thomasht86 thomasht86 requested a review from jobergum December 3, 2024 12:45
Copy link

@jobergum jobergum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful!

@jobergum jobergum merged commit b9def47 into master Dec 3, 2024
46 checks passed
@jobergum jobergum deleted the thomasht86/fix-speed-colpali-notebooks branch December 3, 2024 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants