Git Product home page Git Product logo

Comments (6)

pengzju avatar pengzju commented on July 22, 2024

Hi,

The current implementation of ROME is based on the original paper. It's important to retain this baseline, so I will reintroduce r-ROME as a new method in EasyEdit, currently in development.

Regarding your second question, it should be rephrase_prompts instead of rephrased_prompts. The parameter you passed is ignored because it's not recognized. You can try modifying this and see if it resolves the issue.

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 22, 2024

Hi,

Thank you, it worked.

Two more questions.

Does sequential_edit=True makes the model be evaluated after all the edits?
Where can I find the specific information on how default portability and locality are computed?

Thank you very much for your time and input :)

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 22, 2024

And maybe another one.

In IKE having:

train_ds = [
    {
        'prompt': 'Q: The president of the US is? A:',
        'target_new': 'Joe Biden',
        'rephrase_prompt': 'The leader of the United State is',
        'locality_prompt': 'The president of Russia is ',
        'locality_ground_truth': 'Putin'
    },
    {
        'prompt': 'Einstein specialized in',
        'target_new': 'physics',
        'rephrase_prompt': 'Einstein is good at',
        'locality_prompt': 'Q: Which subject did Newton specialize in? A: ',
        'locality_ground_truth': 'physics'

    },
    # add more if needed
]

what syntax should i use to add multiple locality and portability prompts?

from easyedit.

pengzju avatar pengzju commented on July 22, 2024

Hi,

Thank you, it worked.

Two more questions.

Does sequential_edit=True makes the model be evaluated after all the edits? Where can I find the specific information on how default portability and locality are computed?

Thank you very much for your time and input :)

Q1: Yes
Q2: You can get the corresponding metrics by entering locality_inputs and portability_inputs in the format (https://github.com/zjunlp/EasyEdit?tab=readme-ov-file#baseeditor)

from easyedit.

pengzju avatar pengzju commented on July 22, 2024

And maybe another one.

In IKE having:

train_ds = [
    {
        'prompt': 'Q: The president of the US is? A:',
        'target_new': 'Joe Biden',
        'rephrase_prompt': 'The leader of the United State is',
        'locality_prompt': 'The president of Russia is ',
        'locality_ground_truth': 'Putin'
    },
    {
        'prompt': 'Einstein specialized in',
        'target_new': 'physics',
        'rephrase_prompt': 'Einstein is good at',
        'locality_prompt': 'Q: Which subject did Newton specialize in? A: ',
        'locality_ground_truth': 'physics'

    },
    # add more if needed
]

what syntax should i use to add multiple locality and portability prompts?

image The data format for both is a dict, for each measurement dimension, you need to provide the corresponding prompt and its corresponding ground truth.

from easyedit.

piotrmigdalek avatar piotrmigdalek commented on July 22, 2024

Thank you for you massive help, got everything!

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.