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

remove cuda cache after loading vison model #1325

Merged
merged 3 commits into from
Mar 22, 2024

Conversation

irexyc
Copy link
Collaborator

@irexyc irexyc commented Mar 21, 2024

Motivation

remove cuda cache after loading vison model

with llava-v1.6-vicuna-7b/
Before:
image

After
image

@lvhan028 lvhan028 changed the title reduce vl memory remove cuda cache after loading vison model Mar 21, 2024
@lvhan028 lvhan028 self-requested a review March 21, 2024 05:05
@AllentDan
Copy link
Collaborator

Motivation

remove cuda cache after loading vison model

with llava-v1.6-vicuna-7b/ Before: image

After image

Wrong order of pictures?

Copy link
Collaborator

@lvhan028 lvhan028 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@AllentDan AllentDan left a comment

Choose a reason for hiding this comment

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

Tested pipeline OK with Yi-VL-6B

@lvhan028 lvhan028 merged commit cd2d880 into InternLM:main Mar 22, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants