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

Adaptation of GQA #64

Open
junzhang-zj opened this issue Jul 25, 2024 · 7 comments
Open

Adaptation of GQA #64

junzhang-zj opened this issue Jul 25, 2024 · 7 comments

Comments

@junzhang-zj
Copy link

Thank you for your solid work. I would like to ask if the current version is suitable for GQA architecture models, such as LLaMA-2-70B and LLaMA-3.

@horseee
Copy link
Owner

horseee commented Jul 25, 2024

Hi,

Thanks for your interest in our paper. Currently not, we tested it and it has some bugs in the code.

We are currently working on the support of LLM-Pruner for Llama3 and Llama-3.1, and it would take some time before we can release it (Most likely in this week).

@junzhang-zj
Copy link
Author

junzhang-zj commented Jul 25, 2024 via email

@horseee
Copy link
Owner

horseee commented Jul 29, 2024

Hi,

The code supports GQA now. Here is the command and some of the results

@junzhang-zj
Copy link
Author

Thanks, I'm using it now! But when I try param_mix on 70b, it gets aborted, while when I run param_first on the CPU, it works fine, albeit slower. I have another question, is there a specific reason for pruning based on k proj? Why not try to fix k and v, and prune q and o at a fixed ratio every 8 heads?

@RamitPahwa
Copy link

What are the memory requirements to run the code, I face OOM on 40GB A100, if I set my device to cuda instead of cpu , which is extremely slow, Is there a workaround to make it faster.

@junzhang-zj
Copy link
Author

@RamitPahwa For the current version, it seems that for large models, normal pruning can only be done through the CPU.

@horseee
Copy link
Owner

horseee commented Aug 8, 2024

What are the memory requirements to run the code, I face OOM on 40GB A100, if I set my device to cuda instead of cpu , which is extremely slow, Is there a workaround to make it faster.

Hi @RamitPahwa,

I met the same issue when I tried to prune llama-3. The pruning needs a GPU with 80GB of memory, and I'm not sure the reason for its extremely slow speed on CPUs. Perhaps some bugs in my code......

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

3 participants