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

Kernel crashes while loading pre-trained BLIP-2 model #14108

Closed
2 tasks done
lzytitan494 opened this issue Aug 11, 2023 · 2 comments
Closed
2 tasks done

Kernel crashes while loading pre-trained BLIP-2 model #14108

lzytitan494 opened this issue Aug 11, 2023 · 2 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster user-setup Issues caused by incorrectly configured python environments, packages, or the like

Comments

@lzytitan494
Copy link

lzytitan494 commented Aug 11, 2023

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

I tried to run the BLIP-2 model for Image Captioning from this blog https://huggingface.co/blog/blip-2. All cells above it work fine, but as soon as this cell runs for about a minute kernel dies.
model = Blip2ForConditionalGeneration.from_pretrained("Salesforce/blip2-opt-2.7b", torch_dtype=torch.float16)
Screenshot 2023-08-12 005642

VS Code Version

1.81.1

Jupyter Extension Version

v2023.7.1002162226

Jupyter logs

00:00:53.273 [info] Kernel acknowledged execution of cell 2 @ 1691778653269
00:01:54.379 [error] Disposing session as kernel process died ExitCode: undefined, Reason: 
00:01:54.413 [info] Dispose Kernel process 8995.
00:01:54.422 [error] Raw kernel process exited code: undefined
00:01:54.504 [error] Error in waiting for cell to complete Error: Canceled future for execute_request message before replies were done
    at t.KernelShellFutureHandler.dispose (~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:2:32375)
    at ~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:2:51427
    at Map.forEach (<anonymous>)
    at y._clearKernelState (~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:2:51412)
    at y.dispose (~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:2:44894)
    at ~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:24:114648
    at ae (~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:2:1588852)
    at rv.dispose (~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:24:114624)
    at sv.dispose (~/.vscode-server/extensions/ms-toolsai.jupyter-2023.7.1002162226-linux-x64/out/extension.node.js:24:117994)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
00:01:54.521 [warn] Cell completed with errors {
  message: 'Canceled future for execute_request message before replies were done'
}
00:01:54.542 [info] End cell 2 execution @ 1691778714538, started @ 1691778653269, elapsed time = 61.269s
00:01:54.546 [warn] Cancel all remaining cells due to cancellation or failure in execution

Coding Language and Runtime Version

Python v3.10.12

Running Jupyter locally or remotely?

Local

@lzytitan494 lzytitan494 added the bug Issue identified by VS Code Team member as probable bug label Aug 11, 2023
@amunger amunger assigned DonJayamanne and unassigned amunger Aug 11, 2023
@DonJayamanne
Copy link
Contributor

I-m very sorry for not getting back to you on this.
Are you still running into this issue?

@DonJayamanne DonJayamanne added the info-needed Issue requires more information from poster label Sep 1, 2023
@lzytitan494 lzytitan494 closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2023
@lzytitan494
Copy link
Author

It got resolved there was some file access error on my side, after that it works fine.

@DonJayamanne DonJayamanne added the user-setup Issues caused by incorrectly configured python environments, packages, or the like label Sep 1, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster user-setup Issues caused by incorrectly configured python environments, packages, or the like
Projects
None yet
Development

No branches or pull requests

3 participants