Git Product home page Git Product logo

Comments (9)

lingwei-zhang818 avatar lingwei-zhang818 commented on September 26, 2024 1

Hi. @pengzju You are right, this is what GRACE is supposed to do, however, the code does not act like that. Let's talk about this issue step by step. This issue happens with model: llama2. You can reproduce this error with your default hparams in ./hparams/GRACE/llama-7B.yaml but just change eps to 100 or more, like 1000 or 10000. The query key changes in a single prompt if you just use one picec of data to edit. For llama model in a single generation step, when generating answers, the query variable changes in multiple forward(self, *args) calls from GRACEAdapter(torch.nn.Module). For the dataset you provided in ./data/portability/One Hop/zsre_mend_eval_portability_gpt4.json, the rewrite acc drops from 0.9916 to 0.3273. Please check this out. Thank.

from easyedit.

lingwei-zhang818 avatar lingwei-zhang818 commented on September 26, 2024 1

Thanks!

from easyedit.

pengzju avatar pengzju commented on September 26, 2024

Hi, I don't quite get what you mean. From my experience, increasing eps doesn't lead to a decrease in rewrite acc because a larger deferral radius should result in a higher hit probability. Additionally, could you please explain in detail what you mean by "The key used to query in the codebook changes"?

from easyedit.

zxlzr avatar zxlzr commented on September 26, 2024

hi, could you please provide more details of your questions?

from easyedit.

pengzju avatar pengzju commented on September 26, 2024

I have fixed this issue (38c5c34), please update EasyEdit and try again

from easyedit.

zxlzr avatar zxlzr commented on September 26, 2024

Hi, do you have any further questions?

from easyedit.

lingwei-zhang818 avatar lingwei-zhang818 commented on September 26, 2024

Hi. The problem solved. Thanks for your help. I may close this issue.

from easyedit.

lingwei-zhang818 avatar lingwei-zhang818 commented on September 26, 2024

Hi. I need to reopen this issue. I just tested the new version. The editing speed is 5-10x slower then the previous version. Is this a normal phenomenon? By the way, does GRACE here support batch editing?

from easyedit.

pengzju avatar pengzju commented on September 26, 2024

Q1: It's normal. I just set n_iters from 100 to 50. In addition, increasing eps will reduce some fine-tuning costs because more Keys are shared

Q2: Nope. plz refer to GRACE paper: https://arxiv.org/abs/2211.11031

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.