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

pretrain_opt6.7b not working #9

Open
oaefou opened this issue Apr 8, 2023 · 19 comments
Open

pretrain_opt6.7b not working #9

oaefou opened this issue Apr 8, 2023 · 19 comments
Labels
bug Something isn't working

Comments

@oaefou
Copy link

oaefou commented Apr 8, 2023

How to fix it ?

1.mp4
@goblin776655
Copy link

Same here!
Plz fix!

@Tps-F
Copy link
Owner

Tps-F commented Apr 8, 2023

Can't you generate captions for other images?
and please show me config

@Tps-F Tps-F added the bug Something isn't working label Apr 8, 2023
@oaefou
Copy link
Author

oaefou commented Apr 8, 2023

On any images pretrain_opt6.7b doesn't work. 2.7b works well.

@goblin776655
Copy link

Can't you generate captions for other images? and please show me config

All default, just change the model from 2.7b to pretrain_opt6.7b

@Tps-F
Copy link
Owner

Tps-F commented Apr 8, 2023

I will check the operation again. I will try to fix it by tomorrow.

@Tps-F
Copy link
Owner

Tps-F commented Apr 8, 2023

By the way, can you tell me what GPU you are using?

@oaefou
Copy link
Author

oaefou commented Apr 8, 2023

5900x / 32gb ram / rtx 3090

By the way, can you tell me what GPU you are using?

@Tps-F
Copy link
Owner

Tps-F commented Apr 9, 2023

Can I get screenshot or something of what is in %UserProfile%\.cache\huggingface\hub ?

@oaefou
Copy link
Author

oaefou commented Apr 9, 2023

Can I get screenshot or something of what is in %UserProfile%\.cache\huggingface\hub ?

ice_screenshot_20230409-142421

@oaefou
Copy link
Author

oaefou commented Apr 9, 2023

.cache\torch\hub\checkpoints
ice_screenshot_20230409-142722

@Tps-F
Copy link
Owner

Tps-F commented Apr 9, 2023

Thank you
The model is downloading fine and the extension itself is working fine.
It might be a problem on the BLIP2 side, I'll try some things.

@LexCybermac
Copy link

Same issue here, 3900x/32gb ram/3090. Fingers crossed that a fix isn't too much work to find.

@Tps-F Tps-F added this to ToDo Apr 12, 2023
@Tps-F Tps-F moved this to In Progress in ToDo Apr 12, 2023
@Tps-F
Copy link
Owner

Tps-F commented Apr 13, 2023

It still works in my environment.
Can you verify once with CPU? but I know it would take an awful lot of time.

change

def get_device():
if torch.cuda.is_available():
return "cuda"
elif torch.backends.mps.is_available():
return "mps"
else:
return "cpu"
to

def get_device():
    return "cpu"

@oaefou
Copy link
Author

oaefou commented Apr 13, 2023

It still works in my environment. Can you verify once with CPU? but I know it would take an awful lot of time.

change

def get_device():
if torch.cuda.is_available():
return "cuda"
elif torch.backends.mps.is_available():
return "mps"
else:
return "cpu"

to

def get_device():
    return "cpu"

Does not work.
ice_screenshot_20230413-073529
ice_screenshot_20230413-073841
ice_screenshot_20230413-074047

@Tps-F
Copy link
Owner

Tps-F commented Apr 13, 2023

Thank you for testing

By the way, is the time until the end of the program shorter than others?
on cuda

@R3xpook
Copy link

R3xpook commented May 2, 2023

For me it works fine...tho i got cuda OOM i don't know if this repo have some code borrowed from https://github.com/pharmapsychotic/clip-interrogator but i was able to run 6.7b (it has a low vram option)

@Tps-F
Copy link
Owner

Tps-F commented May 3, 2023

The code in that repository is not in use, but I will implement half option #13 soon!

@jcrsantiago
Copy link

Any updates on this issue?

@Tps-F
Copy link
Owner

Tps-F commented May 24, 2023

Sorry, I've been busy and haven't gotten around to much.
I will do it as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

6 participants