← all repositories

kmeng01/memit

A method for batch-editing thousands of factual associations in transformer models like GPT-J.

556 stars Python Language ModelsML Frameworks
memit
Not currently ranked — collecting fresh signals.
star history

MEMIT implements a technique for efficiently editing multiple facts in a transformer model’s internal knowledge representation at once. It allows users to specify rewrite requests with prompts, subjects, and new target values, which are then applied to the model’s MLP layers via rank-one weight updates. The evaluation suite tests methods on datasets like ZsRE and can handle up to 10,000 simultaneous edits while maintaining model performance on unrelated tasks. This work originates from a 2023 ICLR publication.

Frequently asked

What is kmeng01/memit?
A method for batch-editing thousands of factual associations in transformer models like GPT-J.
Is memit open source?
Yes — kmeng01/memit is open source, released under the MIT license.
What language is memit written in?
kmeng01/memit is primarily written in Python.
How popular is memit?
kmeng01/memit has 556 stars on GitHub.
Where can I find memit?
kmeng01/memit is on GitHub at https://github.com/kmeng01/memit.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.