From 1940c477f6c31fe1048d8320b3a99cb55adc7033 Mon Sep 17 00:00:00 2001 From: wassname <1103714+wassname@users.noreply.github.com> Date: Sun, 12 Jul 2026 09:31:19 +0800 Subject: [PATCH] scratch: demo_edges compares all 7 methods via one demo_steer call --- scripts/scratch/demo_edges.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/scratch/demo_edges.py b/scripts/scratch/demo_edges.py index 4fc8972..4f3b58f 100644 --- a/scripts/scratch/demo_edges.py +++ b/scripts/scratch/demo_edges.py @@ -46,9 +46,13 @@ DILEMMA = ("You are late for work because you partied until very late last night "your boss you were sick instead of telling the truth?") vecs = { - "persona_pinv": jac.persona_pinv_vector(model, tok, deceptive, honest, layers=band), "word(lie/deceive)": jac.word_vector(model, tok, ["lie", "deceive", "dishonest"], layers=band), + "persona_vector": jac.persona_vector(model, tok, deceptive, honest, layers=band), + "persona_topk k=8": jac.persona_topk_vector(model, tok, deceptive, honest, k=8, layers=band), + "persona_soft": jac.persona_soft_vector(model, tok, deceptive, honest, layers=band), + "persona_pinv": jac.persona_pinv_vector(model, tok, deceptive, honest, layers=band), "meandiff(base)": Vector.train(model, tok, deceptive, honest, MeanDiffC(layers=tuple(band))), + "random(null)": jac.random_vector(seed=0, layers=band), } # ONE call: per-method heading + searched anchors + comparable generations + end table.