Coder Social home page Coder Social logo

Comments (9)

horseee avatar horseee commented on May 20, 2024

Hi. The test_speedup.py only supports the testing on GPU currently. Have you tested this script on GPU?

from llm-pruner.

horseee avatar horseee commented on May 20, 2024

Hi. We update the test_speedup.py to support the testing on CPU.
Please let me know if the bug still exists with the current version.

from llm-pruner.

sbwww avatar sbwww commented on May 20, 2024

Are there official FLOPs statistics on LLaMa-7B and its pruned version?

from llm-pruner.

horseee avatar horseee commented on May 20, 2024

The FLOPs of the base model and the pruned model are:
image

from llm-pruner.

sbwww avatar sbwww commented on May 20, 2024

The FLOPs of the base model and the pruned model are: image

here #MACs is equivalent to #FLOPs right? I just thought that they could be two different things.

from llm-pruner.

horseee avatar horseee commented on May 20, 2024

The FLOPs of the base model and the pruned model are: image

here #MACs is equivalent to #FLOPs right? I just thought that they could be two different things.

The results presented in the table is MACs rather than FLOPs and we didn't calculated the exact FLOPs of the model (roughly 2 times of MACs). To prevent any potential confusion, we chose not to use the term FLOPs in our paper, and thus all the results are MACs and not equivalent to FLOPs.

from llm-pruner.

Daisy5296 avatar Daisy5296 commented on May 20, 2024

Hi. The test_speedup.py only supports the testing on GPU currently. Have you tested this script on GPU?

Hi thanks for reply! Actually I was using GPU to run this code before.

Now I've tried the new version, when ran on CPU it worked fine. But if ran on GPU, the same error still existed.

from llm-pruner.

horseee avatar horseee commented on May 20, 2024

Hi. The test_speedup.py only supports the testing on GPU currently. Have you tested this script on GPU?

Hi thanks for reply! Actually I was using GPU to run this code before.

Now I've tried the new version, when ran on CPU it worked fine. But if ran on GPU, the same error still existed.

Hi. I updated the code and fixed a bug that might cause this issue. You can give it another try, and if it still doesn't work, could you please provide your runtime environment?

from llm-pruner.

Daisy5296 avatar Daisy5296 commented on May 20, 2024

Thanks for rapid reply! I've also made the same corrections following your code for the CPU implementations, and it works now. Thanks again!

from llm-pruner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.