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

optimize qwen2 gpu memory usage again #11435

Merged

Conversation

MeouSker77
Copy link
Contributor

Description

pin rope cos and sin table on CPU to save gpu memory.

gpu can use fuse rope kernel to compute cos and sin, so gpu doesn't need them.

@MeouSker77 MeouSker77 requested a review from rnwang04 June 26, 2024 06:57
Copy link
Contributor

@rnwang04 rnwang04 left a comment

Choose a reason for hiding this comment

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

LGTM

@MeouSker77 MeouSker77 merged commit 2a0f808 into intel-analytics:main Jun 26, 2024
18 checks passed
@MeouSker77 MeouSker77 deleted the optimize-qwen2-gpu-memory branch June 26, 2024 08:52
RyuKosei pushed a commit to RyuKosei/ipex-llm that referenced this pull request Jul 19, 2024
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