Spaces:
Running
Running
Download data/transcripts/shared.json from AmiriHayes/sae-program-viewer: direct link, hf CLI and curl.
- Browser
- Download file 4.76 kB
-
https://huggingface.co/spaces/AmiriHayes/sae-program-viewer/resolve/main/data/transcripts/shared.json
- Command line
-
hf download hf://spaces/AmiriHayes/sae-program-viewer/data/transcripts/shared.json
-
curl -L -o shared.json https://huggingface.co/spaces/AmiriHayes/sae-program-viewer/resolve/main/data/transcripts/shared.json
4.76 kB
| {"shared_prompt_prefix": "You design a program that predicts whether one SAE feature fires at a position.\n\nYou emit JSON only. You never write Python and never write token lists: the\nharness fits every set on training data for you.\n\n {\"sets\": [\"S1\",\"S2\"],\n \"clauses\": [\n {\"id\":\"c1\",\"slot\":\"tok-1\",\"op\":\"in\",\"set\":\"S1\",\"fit\":\"recall\"},\n {\"id\":\"c2\",\"slot\":\"window(5)\",\"op\":\"any_in\",\"set\":\"S2\"},\n {\"id\":\"c3\",\"slot\":\"tok-2\",\"op\":\"pred\",\"pred\":\"isdigit\"}],\n \"logic\": \"c1 and (c2 or c3)\"}\n\nslot tok-i for i in 1..5 (tok-1 is the position being classified, tok-2 the\n token before it), or window(k) for k in 2..12 (the k tokens before tok-1)\nop in (tok slots only) | any_in (windows only) | count_in>=n, n in 1..5\n (windows only) | pred | endswith\npred isdigit | isupper | istitle | is_punct | single_char, no arguments\nendswith takes a set; the harness fits a set of word endings\nfit \"f1\" (default) or \"recall\"; \"recall\" only on a tok-1 clause, and makes\n that clause a wide permissive gate rather than a precise one\nlogic clause ids, and, or, not, parentheses. At most 120 characters.\nLimits at most 4 clauses, at most 4 sets. You choose k and n yourself.\n\nActions, one JSON object per reply, nothing else:\n {\"action\":\"propose\",\"spec\":{...}}\n {\"action\":\"edit_fit\",\"set\":\"S1\",\"param\":\"max_tokens\",\"value\":20}\n {\"action\":\"edit_fit\",\"set\":\"S1\",\"param\":\"candidates\",\"value\":\"fired+variants\"}\n {\"action\":\"submit\"}\n\n\nStart from the simplest program that fits the examples. If the hand-written program already fits well, begin by reproducing it, then try to improve it.\n\nTen program shapes, simplest first:\n 1. Last token: {\"sets\": [\"S\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"S\", \"fit\": \"f1\"}], \"logic\": \"c1\"}\n Use when the feature fires on a fixed set of tokens.\n 2. Bigram: {\"sets\": [\"G\", \"P\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"G\", \"fit\": \"recall\"}, {\"id\": \"c2\", \"slot\": \"tok-2\", \"op\": \"in\", \"set\": \"P\"}], \"logic\": \"c1 and c2\"}\n Use when the token matters only after specific previous tokens.\n 3. Nearby cue: {\"sets\": [\"G\", \"C\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"G\", \"fit\": \"recall\"}, {\"id\": \"c2\", \"slot\": \"window(5)\", \"op\": \"any_in\", \"set\": \"C\"}], \"logic\": \"c1 and c2\"}\n Use when the token matters only with a cue word nearby.\n 4. Cue density: {\"sets\": [\"G\", \"C\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"G\", \"fit\": \"recall\"}, {\"id\": \"c2\", \"slot\": \"window(5)\", \"op\": \"count_in>=2\", \"set\": \"C\"}], \"logic\": \"c1 and c2\"}\n Use when it needs several context cues.\n 5. Veto: {\"sets\": [\"G\", \"V\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"G\"}, {\"id\": \"c2\", \"slot\": \"window(5)\", \"op\": \"any_in\", \"set\": \"V\"}], \"logic\": \"c1 and not c2\"}\n Use when it fires on the token except in certain contexts.\n 6. Suffix on current token: {\"sets\": [\"E\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"endswith\", \"set\": \"E\"}], \"logic\": \"c1\"}\n Use when it fires on word pieces sharing an ending.\n 7. Suffix on previous token: {\"sets\": [\"G\", \"E\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"G\"}, {\"id\": \"c2\", \"slot\": \"tok-2\", \"op\": \"endswith\", \"set\": \"E\"}], \"logic\": \"c1 and c2\"}\n Use when the previous word's ending matters.\n 8. Shape cue: {\"sets\": [\"S\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"S\"}, {\"id\": \"c2\", \"slot\": \"tok-2\", \"op\": \"pred\", \"pred\": \"istitle\"}], \"logic\": \"c1 and c2\"}\n Use when capitalization, digits, or punctuation nearby matter.\n 9. Two triggers: {\"sets\": [\"S\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"tok-1\", \"op\": \"in\", \"set\": \"S\"}, {\"id\": \"c2\", \"slot\": \"tok-1\", \"op\": \"pred\", \"pred\": \"isdigit\"}], \"logic\": \"c1 or c2\"}\n Use when the feature has two unrelated triggers.\n10. Topic density, no gate: {\"sets\": [\"C\"], \"clauses\": [{\"id\": \"c1\", \"slot\": \"window(5)\", \"op\": \"count_in>=2\", \"set\": \"C\"}], \"logic\": \"c1\"}\n Use when it fires anywhere inside a certain kind of passage.", "note": "byte-identical leading text of every feature's first user message (the grammar and the ten program shapes); each feature's file stores only what follows it", "n_chars": 3990} |