Giter Club home page Giter Club logo

Comments (7)

SHUSHENGQIGUI avatar SHUSHENGQIGUI commented on August 18, 2024

hi, i am very confused, I am reproducing opt-1.3b sparsity. the fact is that i can get the same dense model preplexity at 14.62 of wikitext2, but the preplexity after sparsing 50% is 26.71, which is higher than 17.46 in paper. And I didn't modify any code in this repo. I wonder if the hyperparams in paper's experiments are different? look forward to your reply.

image

@ilmarkov hi, could you reply to me in your spare time ? i am stuck in this problem. I don't know how i reproduce the result as showed in paper. please

from sparsegpt.

efrantar avatar efrantar commented on August 18, 2024

Hi, what command are you running? Generally, the code has been running fine for many people; however, it is possible that some recent HuggingFace update broke things.

from sparsegpt.

SHUSHENGQIGUI avatar SHUSHENGQIGUI commented on August 18, 2024

Hi, what command are you running? Generally, the code has been running fine for many people; however, it is possible that some recent HuggingFace update broke things.

Thank you for your reply. The command I run is the one in the readme. as follows:
python opt.py facebook/opt-1.3b wikitext2 --sparsity .5 --save ./out/opt-1.3b/sparse0.5/

and huggingface version i am using is 0.23.0
I can run your code succuessfully, but the results are slightly different from the results in paper:
image

look forward to your reply, Thanks

from sparsegpt.

efrantar avatar efrantar commented on August 18, 2024

Hi, in the paper we run with calibration data from c4 and not wikitext2; the former is not only more general but I think the latter can even sometimes lead to overfitting and correspondingly bad results (possibly this is what you are seeing?).

python opt.py facebook/opt-1.3b c4 --sparsity .5 --save ./out/opt-1.3b/sparse0.5/

from sparsegpt.

SHUSHENGQIGUI avatar SHUSHENGQIGUI commented on August 18, 2024

Hi, in the paper we run with calibration data from c4 and not wikitext2; the former is not only more general but I think the latter can even sometimes lead to overfitting and correspondingly bad results (possibly this is what you are seeing?).

python opt.py facebook/opt-1.3b c4 --sparsity .5 --save ./out/opt-1.3b/sparse0.5/

Thank you. To verify if the code is wrong, I test more opt models:
image

as you can see, Apart from opt-1.3b, the other model results differ only slightly from the paper, So I think the code is right and most reproduced results looks normal too .
That is weird. And I can confirm there is not any modify when i test opt-1.3b.
Besides, The table in your paper shows the result on wikitext2:
image

from sparsegpt.

efrantar avatar efrantar commented on August 18, 2024

We evaluate on wikitext but always use c4 as calibration data (this should be noted in the paper). Yes, this is a bit weird, however there can sometimes be outlier models which do not follow the trend.

from sparsegpt.

SHUSHENGQIGUI avatar SHUSHENGQIGUI commented on August 18, 2024

We evaluate on wikitext but always use c4 as calibration data (this should be noted in the paper). Yes, this is a bit weird, however there can sometimes be outlier models which do not follow the trend.

yes. i realize i made a mistake. i didn't use c4 as calibration data. Now I solve the problem, Thank you!!!!

from sparsegpt.

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.