p0rt/platos-key-small-models ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Python project that recreates this CPU only experiment where you take one model’s hidden state for a fact, map it into another model with a simple rotation and scale, then patch it into the recipient and see if the recipient answers like the donor.
I want it to work with a few small base language models, use the CounterFact facts dataset, and run everything on CPU without needing a GPU. Please include scripts to prepare the facts, extract each model’s known facts and hidden states, run donor to recipient swaps across a few model pairs, and summarize the results into JSON files. It should also handle the train, validation, and test split by subject, compare the rotation against a few simple baselines, and report swap accuracy clearly. If needed, look up current docs online for the model loading and token handling details.
Are you gonna build this?
make sure you review the code using coderabbit