Code Monkey home page Code Monkey logo

Comments (10)

XeeKee avatar XeeKee commented on July 17, 2024

I suggest you set fp16 to false, as setting it to true often results in unexpected outcomes.

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 17, 2024

Sure thanks. One more thing. Is the R-ROME implementation supporting llama2-7b and gpt-j as in hparams or basically all the models as stated in README?

from easyedit.

XeeKee avatar XeeKee commented on July 17, 2024

Yes, all are supported. You can just modify the parameters a bit.

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 17, 2024

Thnaks a lot! Now I changed fp16 to false. I'm exceeding 50gb of memory (2 x RTX 4090) for Mistral-7b. It barely worked on llama2-7b taking over 46gb. Should it be as memory consuming to run ROME?

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 17, 2024

Same happened for KN model. Just running out of memory with 50gb in paralell setup on llama-7b.

from easyedit.

XeeKee avatar XeeKee commented on July 17, 2024

I don't think there's any problem; this is the normal memory usage. You can try setting it to fp16 at

device_map = 'auto' if hparams.model_parallel else None
, which will slightly reduce the memory usage.

from easyedit.

zxlzr avatar zxlzr commented on July 17, 2024

Hi, do you have any further questions?

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 17, 2024

Hi, thank you for your answer. Yes, maybe one more.
How exactly in current implementation for example when I use editor with ROME locality, probability, rewrite and rephrase accuracies are calculated?

from easyedit.

XeeKee avatar XeeKee commented on July 17, 2024

You can check the file at easyeditor/evaluate/evaluate_utils.py. Except for locality, we calculate the number of matching tokens and then take the average for everything else. Locality calculates whether unrelated inputs have changed before and after the edits.

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 17, 2024

Ok, thank you very much :)

from easyedit.

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.