Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -34,14 +34,13 @@ The implementation corresponding to these artifacts is available at [Shiqi-Jiang
|
|
| 34 |
| meta-llama/Llama-3.1-8B-Instruct | CounterSteer-GRAD | Middle-to-final-layer directions | layer 27, alpha 2 |
|
| 35 |
| google/gemma-2-9b-it | CounterSteer-GRAD | Middle-to-final-layer directions | layer 22, alpha 128 |
|
| 36 |
| Qwen/Qwen2.5-3B-Instruct | CounterSteer-LoRA | Middle-to-final-layer directions | vector package only; no operating point is asserted here |
|
| 37 |
-
| meta-llama/Llama-3.1-8B-Instruct | CounterSteer-LoRA | Middle-to-final-layer directions | layer 17, alpha 0.05 (norm-scaled rule) |
|
| 38 |
-
| google/gemma-2-9b-it | CounterSteer-LoRA | Middle-to-final-layer directions | layer 23, alpha 0.2 (norm-scaled rule) |
|
| 39 |
|
| 40 |
All layer indices are zero based decoder-block indices. Every arm's frozen configuration was
|
| 41 |
selected on validation only.
|
| 42 |
|
| 43 |
Each model folder carries the same five arm directories — `caa/`, `direction-ablation/`,
|
| 44 |
-
`lat-pca/`, `cs-grad/`, `cs-lora/`
|
|
|
|
| 45 |
|
| 46 |
## CAA convention
|
| 47 |
|
|
@@ -61,30 +60,14 @@ Direction normalization is enabled. Hidden-state-norm scaling is disabled. The i
|
|
| 61 |
|
| 62 |
## CounterSteer-LoRA convention
|
| 63 |
|
| 64 |
-
`cs-lora/direction.pt` contains `raw`, `unit`, and `norm` dictionaries
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
| Base model | Layers | Rule | Operating point |
|
| 72 |
-
|---|---|---|---|
|
| 73 |
-
| Qwen2.5-7B-Instruct | 14-27 | `h - alpha * unit(v)` | none asserted |
|
| 74 |
-
| Qwen2.5-3B-Instruct | 18-35 | `h - alpha * unit(v)` | none asserted |
|
| 75 |
-
| meta-llama/Llama-3.1-8B-Instruct | 16-31 | `h - alpha * ‖h‖ * unit(v)` | layer 17, alpha 0.05 |
|
| 76 |
-
| google/gemma-2-9b-it | 21-41 | `h - alpha * ‖h‖ * unit(v)` | layer 23, alpha 0.2 |
|
| 77 |
-
|
| 78 |
-
The Qwen2.5-7B file was previously published as `countersteer-lora/nas.pt` and its original
|
| 79 |
-
byte-preserved metadata travels with it.
|
| 80 |
-
|
| 81 |
-
The Llama-3.1-8B and gemma-2-9b-it vectors were benchmarked on the held-out test with
|
| 82 |
-
**hidden-state-norm scaling enabled**, so their alpha is dimensionless and must not be read on the
|
| 83 |
-
same scale as the other arms in this release. Their probe learning rates were selected per model on
|
| 84 |
-
validation (5e-6 and 1e-5); the shared 1e-4 collapsed both models into refusing every input,
|
| 85 |
-
including MMLU. Each published tensor's SHA-256 was checked against the hash recorded by its test
|
| 86 |
-
run's provenance and by both of its scored-job request manifests, so the file is the one those
|
| 87 |
-
benchmarks steered with; `cs-lora/metadata.json` lists those three references.
|
| 88 |
|
| 89 |
## LAT-PCA convention
|
| 90 |
|
|
@@ -188,7 +171,7 @@ Use `python validate.py` after downloading the repository. It verifies every pub
|
|
| 188 |
- `lat-pca/audit.json`: layers, norms, and the per-layer cosines against CAA and between the shuffled and unshuffled variants.
|
| 189 |
- `cs-grad/audit.json`: per-layer example counts, gradient norms, and coherence.
|
| 190 |
- `<arm>/metadata.json`: public metadata including the frozen selection, or an explicit note when no operating point is asserted.
|
| 191 |
-
- `cs-lora/
|
| 192 |
- `manifest.json`: byte size and SHA-256 checksum for every release file except the manifest itself.
|
| 193 |
|
| 194 |
The base models remain subject to their respective upstream access and license terms.
|
|
|
|
| 34 |
| meta-llama/Llama-3.1-8B-Instruct | CounterSteer-GRAD | Middle-to-final-layer directions | layer 27, alpha 2 |
|
| 35 |
| google/gemma-2-9b-it | CounterSteer-GRAD | Middle-to-final-layer directions | layer 22, alpha 128 |
|
| 36 |
| Qwen/Qwen2.5-3B-Instruct | CounterSteer-LoRA | Middle-to-final-layer directions | vector package only; no operating point is asserted here |
|
|
|
|
|
|
|
| 37 |
|
| 38 |
All layer indices are zero based decoder-block indices. Every arm's frozen configuration was
|
| 39 |
selected on validation only.
|
| 40 |
|
| 41 |
Each model folder carries the same five arm directories — `caa/`, `direction-ablation/`,
|
| 42 |
+
`lat-pca/`, `cs-grad/`, `cs-lora/`. A `cs-lora/` holding only a README means that vector was
|
| 43 |
+
trained on another cluster and is not available here; see the file guide.
|
| 44 |
|
| 45 |
## CAA convention
|
| 46 |
|
|
|
|
| 60 |
|
| 61 |
## CounterSteer-LoRA convention
|
| 62 |
|
| 63 |
+
`cs-lora/direction.pt` contains `raw`, `unit`, and `norm` dictionaries and uses the same
|
| 64 |
+
no-scaling inference rule `h' = h - alpha * unit(v)`. Two models have one: Qwen2.5-7B (layers
|
| 65 |
+
14-27; this file was previously published as `countersteer-lora/nas.pt` and its original
|
| 66 |
+
byte-preserved metadata travels with it) and Qwen2.5-3B (layers 18-35). The Llama-3.1-8B and
|
| 67 |
+
gemma-2-9b-it LoRA arms were trained on another cluster and their vectors are not available here,
|
| 68 |
+
so those `cs-lora/` folders hold only a README.
|
| 69 |
|
| 70 |
+
No operating point is asserted for either LoRA vector.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
## LAT-PCA convention
|
| 73 |
|
|
|
|
| 171 |
- `lat-pca/audit.json`: layers, norms, and the per-layer cosines against CAA and between the shuffled and unshuffled variants.
|
| 172 |
- `cs-grad/audit.json`: per-layer example counts, gradient norms, and coherence.
|
| 173 |
- `<arm>/metadata.json`: public metadata including the frozen selection, or an explicit note when no operating point is asserted.
|
| 174 |
+
- `cs-lora/README.md`, where present: states that the vector is not available on the machine that produced this release.
|
| 175 |
- `manifest.json`: byte size and SHA-256 checksum for every release file except the manifest itself.
|
| 176 |
|
| 177 |
The base models remain subject to their respective upstream access and license terms.
|
gemma-2-9b-it/caa/direction.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43464b47649e05319f850377ad84e2e50c60c8b9d000cb617ca659e29fbbe2f5
|
| 3 |
+
size 610922
|
llama-3.1-8b-instruct/caa/direction.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:299d7e0cc0c306cbd8a4b53dc8ceed5e65c41d90d18824e9661da630f3c70b18
|
| 3 |
+
size 531154
|
manifest.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
| 5 |
},
|
| 6 |
"files": {
|
| 7 |
"README.md": {
|
| 8 |
-
"bytes":
|
| 9 |
-
"sha256": "
|
| 10 |
},
|
| 11 |
"UPLOAD.md": {
|
| 12 |
"bytes": 680,
|
|
@@ -52,25 +52,9 @@
|
|
| 52 |
"bytes": 250,
|
| 53 |
"sha256": "171da0331a44c00283d6ddcf21bbef0b4d23a7bf24106c6175986caa12a5ec64"
|
| 54 |
},
|
| 55 |
-
"gemma-2-9b-it/cs-lora/
|
| 56 |
-
"bytes":
|
| 57 |
-
"sha256": "
|
| 58 |
-
},
|
| 59 |
-
"gemma-2-9b-it/cs-lora/direction.pt": {
|
| 60 |
-
"bytes": 610922,
|
| 61 |
-
"sha256": "8d4a2ad8a76e1bfe922c732332202c78821399dd27f923c40b2a5441dcfec50e"
|
| 62 |
-
},
|
| 63 |
-
"gemma-2-9b-it/cs-lora/frozen_selection.json": {
|
| 64 |
-
"bytes": 9776,
|
| 65 |
-
"sha256": "10ace143364d62eaa2440e1d0791a31acf3904aaa89b195068e91bac6e52495d"
|
| 66 |
-
},
|
| 67 |
-
"gemma-2-9b-it/cs-lora/metadata.json": {
|
| 68 |
-
"bytes": 2953,
|
| 69 |
-
"sha256": "51bcd1ce9124190c0a2d34920d561cef3140e2906d1f0e8896a616053d252adb"
|
| 70 |
-
},
|
| 71 |
-
"gemma-2-9b-it/cs-lora/provenance.json": {
|
| 72 |
-
"bytes": 667,
|
| 73 |
-
"sha256": "3eab43431e3333e656c3e0141d5d068c9c21bcfe6888c44dc9b81b3ed53ed779"
|
| 74 |
},
|
| 75 |
"gemma-2-9b-it/direction-ablation/direction.pt": {
|
| 76 |
"bytes": 15526,
|
|
@@ -148,25 +132,9 @@
|
|
| 148 |
"bytes": 246,
|
| 149 |
"sha256": "45bc159a639c6fed1ee994e56dab8b947bb1f8139624a398a1388568c7cad7b9"
|
| 150 |
},
|
| 151 |
-
"llama-3.1-8b-instruct/cs-lora/
|
| 152 |
-
"bytes":
|
| 153 |
-
"sha256": "
|
| 154 |
-
},
|
| 155 |
-
"llama-3.1-8b-instruct/cs-lora/direction.pt": {
|
| 156 |
-
"bytes": 531154,
|
| 157 |
-
"sha256": "943eae8ea5cbb109c05c4ed420e031c6f77ea122f144fd0c9bfe4fc5b43784bc"
|
| 158 |
-
},
|
| 159 |
-
"llama-3.1-8b-instruct/cs-lora/frozen_selection.json": {
|
| 160 |
-
"bytes": 7901,
|
| 161 |
-
"sha256": "d2d2bd5f0fc90b9c66c48b9099c9ec9e1e58c6c7fa0421f1d2f175c2798d8e69"
|
| 162 |
-
},
|
| 163 |
-
"llama-3.1-8b-instruct/cs-lora/metadata.json": {
|
| 164 |
-
"bytes": 2884,
|
| 165 |
-
"sha256": "abda0d941d33857a2f6d5c44f6634e50458ada24c4802f8f62ee102ddf30096b"
|
| 166 |
-
},
|
| 167 |
-
"llama-3.1-8b-instruct/cs-lora/provenance.json": {
|
| 168 |
-
"bytes": 667,
|
| 169 |
-
"sha256": "556c972a030f17e13a0e2f335436519f74c979227634013f8a239a13fc7ee7a8"
|
| 170 |
},
|
| 171 |
"llama-3.1-8b-instruct/direction-ablation/direction.pt": {
|
| 172 |
"bytes": 17574,
|
|
|
|
| 5 |
},
|
| 6 |
"files": {
|
| 7 |
"README.md": {
|
| 8 |
+
"bytes": 9772,
|
| 9 |
+
"sha256": "4d4e53b87756706bae5a4468dd78540c84993989edd5014c35540c1481b69075"
|
| 10 |
},
|
| 11 |
"UPLOAD.md": {
|
| 12 |
"bytes": 680,
|
|
|
|
| 52 |
"bytes": 250,
|
| 53 |
"sha256": "171da0331a44c00283d6ddcf21bbef0b4d23a7bf24106c6175986caa12a5ec64"
|
| 54 |
},
|
| 55 |
+
"gemma-2-9b-it/cs-lora/README.md": {
|
| 56 |
+
"bytes": 326,
|
| 57 |
+
"sha256": "79ddbab19889da5b646f01b53573b4a71fe954ea2535f035dd070cf4e57eadc8"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
},
|
| 59 |
"gemma-2-9b-it/direction-ablation/direction.pt": {
|
| 60 |
"bytes": 15526,
|
|
|
|
| 132 |
"bytes": 246,
|
| 133 |
"sha256": "45bc159a639c6fed1ee994e56dab8b947bb1f8139624a398a1388568c7cad7b9"
|
| 134 |
},
|
| 135 |
+
"llama-3.1-8b-instruct/cs-lora/README.md": {
|
| 136 |
+
"bytes": 338,
|
| 137 |
+
"sha256": "b011d4b21eea4da016481038668ef0dc08a89d55a87d4cba15ab36a0f59e2711"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
},
|
| 139 |
"llama-3.1-8b-instruct/direction-ablation/direction.pt": {
|
| 140 |
"bytes": 17574,
|
qwen2.5-3b-instruct/caa/direction.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ae2f83c9e5017e096a412067c9d5ef0be4acb86bab3eb424f55bd4b9212c9d70
|
| 3 |
+
size 302530
|
qwen2.5-7b-instruct/caa/direction.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:274a3905ecd9315a6cabe961d1410488044b067077907b2a2d718572ec5e5362
|
| 3 |
+
size 407522
|
qwen2.5-7b-instruct/countersteer-lora/direction.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d79c98884c4034ee857fe09e70baa6639856f9cdc589964f5d2bec51224fbeff
|
| 3 |
+
size 407522
|