Weight Geometry Lab

Score a reloaded model on your own prompts

This scorer reads the original Qwen3.5-0.8B and a separately saved, verified edit. It checks both fingerprints and records the exact prompts and expected answers before opening the models for inference. It measures whether the edit delivered a named behavior and which previously correct answers it preserved.

Extract the Windows kit. Open PowerShell in its directory. Substitute the folder your write actually produced for runs\my-write. Each scoring run creates a fresh directory and saves the predictions as score-lock.json and the actual answers as score.json. Complete kit

.\RUN-QWEN.cmd score --edited runs\my-write\rebuilt.safetensors --receipt runs\my-write\record-check.json --prompts score-prompts.json

For a copy created by RUN-QWEN.cmd chunks, use its chunk.json as the receipt. To score a known edit later, preserve the rebuilt weight file. The default write commands keep their new checkpoint.

What to predict

Make a copy of score-prompts.json for your own experiment. Give each question a unique ID, a prompt, an expected answer, and a prediction. A keep succeeds if both the base and edited models produce the specified answer. A gain succeeds if the base misses it and the edited model produces it. The scorer writes out the full prompt, both strings, and their token IDs even when the prediction misses. For a source judgment, use separate prompts for the physical source and its public code. Include the same evidence under both codebooks.

For each prompt the model chooses freely from its entire vocabulary. The scorer compares the first one or more greedy tokens with the expected answer prefix, up to 32 tokens. Case and punctuation count. If you want to test an entire short answer including its ending, include the intended ending in your expected token sequence. Numerical correctness, alternative phrasing and multi-step reasoning can need a separate rubric. Supply fresh wording and protected skills that matter for the particular edit.

The included three keep cases reproduce the addition, square and ice checks. On our Linux CPU replay, both the pristine base and the file rebuilt from the saved patch produced 5, 4 and Ice. All three retention predictions held. New experimenters can replace or extend those rows before scoring. This example shows the format of a proposed new association.

[
  {"id": "archive-route", "prediction": "gain", "prompt": "Which routing letter was assigned to the cobalt seal? Give one letter.", "answer": "B"},
  {"id": "old-square", "prediction": "keep", "prompt": "A square has how many sides? Answer with only the number.", "answer": "4"}
]

Only a model edited to learn that fictional route has a reason to meet the first prediction. For a future experiment, choose the prompt bank and its success criteria before fitting the weights, and keep the held-out answers away from the fitting process. Recorded predictions · Observed answers