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

Vision only model memory issue #84

Open
ellonde opened this issue Nov 6, 2023 · 0 comments
Open

Vision only model memory issue #84

ellonde opened this issue Nov 6, 2023 · 0 comments

Comments

@ellonde
Copy link
Contributor

ellonde commented Nov 6, 2023

I have created a vision-only model with the convert tool. When im trying to load it and use it with the python binding as shown below my memory just explodes until my system crashes.

model = Clip(
            model_path_or_repo_id="/path/to/model",
        )
# This is where it explodes
model.load_preprocess_encode_image("/path/to/image")

I have tried both with or without quantization and same results. When I run with same with the full model, i.e. not vision-only it works. Didn't investigate further, and this is a decent workaround for now for me, just wanted to let you know :)

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

No branches or pull requests

1 participant