evaluate gated 0 0

UltraMar1ne/residual-streams-20260618

published by @UltraMar1ne

Alignment dataset tracked in the /datasets sub-catalog.

Lifetime downloads
4K
Last 30 days
28
Likes
-
Size
314.2 GB
Created on HF
2026-06-18
Age
4 months ago

Description

Residual Streams — HarmBench 200 × AlpacaEval 200

Per-layer, per-token residual stream activations captured during inference on

200 harmful (HarmBench) + 200 harmless (AlpacaEval) prompts, across 9 models

at two scales (3B, 7B).

Structure

last_token_residuals/ # Compact: last-token position only

{scale}_{code}.npz # e.g. 3b_d1.npz

harmful_last_token (200, n_layers, hidden_dim) float16

harmless_last_token (200, n_layers, hidden_dim)… See the full description on the dataset page: https://huggingface.co/datasets/UltraMar1ne/residual-streams-20260618.

Tags

size_categories:10K<n<100Kformat:textmodality:textlibrary:datasetslibrary:mlcroissantregion:us

README current version from Hugging Face

Residual Streams — HarmBench 200 × AlpacaEval 200

Per-layer, per-token residual stream activations captured during inference on
200 harmful (HarmBench) + 200 harmless (AlpacaEval) prompts, across 9 models
at two scales (3B, 7B).

Structure

last_token_residuals/         # Compact: last-token position only
  {scale}_{code}.npz          # e.g. 3b_d1.npz
    harmful_last_token   (200, n_layers, hidden_dim) float16
    harmless_last_token  (200, n_layers, hidden_dim) float16
    harmful_refused      (200,) bool
    harmless_refused     (200,) bool

per_prompt/{scale}/{code}/    # Full: all tokens × all layers
  harmful/000.npz ... 199.npz
  harmless/000.npz ... 199.npz
  generations/harmful_000.txt ... harmless_199.txt
  behavior.json               # scrubbed (model field = codename)
  meta.json                   # scrubbed

Each per-prompt NPZ contains:

  • residuals: (seq_len, n_layers, hidden_dim) float32
  • token_ids: (seq_len+1,) int32
  • prompt_len: int — boundary between reading and generation
  • n_generated: int

Model codenames

Code Role Scale
d1 Base (pretrained) 3B, 7B
d2 Instruct-aligned 3B, 7B
d3 Code-specialised 3B, 7B
d4 RLVR target (coder backbone) 3B, 7B
d5 RLVR target (base backbone) 7B only

Hidden dimensions: 3B = 2048, 7B = 3584.

Load example

import numpy as np

# Compact — for probes / det-AUROC
d = np.load("last_token_residuals/3b_d2.npz", allow_pickle=True)
harmful = d["harmful_last_token"]   # (200, 36, 2048)
refused = d["harmful_refused"]      # (200,) bool

# Full per-prompt — for trajectory analysis
d = np.load("per_prompt/3b/d4/harmful/000.npz")
res = d["residuals"]               # (seq, 36, 2048) float32
plen = int(d["prompt_len"])        # res[:plen] = reading phase

Citation

Part of the "Selective Catastrophic Forgetting" study (ACL 2027 submission).

README history 20 revisions

Every night we snapshot the README of every dataset in the catalog. When the SHA changes we archive the new version and diff it against the last. This is the evolving thought record of the alignment-data field: what the author decided to say about the corpus, and how that framing shifted over time.

  1. 2026-06-18Upload per_prompt/7b/d5/meta.json with huggingface_hubb9912b32 KB
    Loading...
  2. 2026-06-18Upload per_prompt/7b/d5/meta.json with huggingface_hubc8a9d4c2 KB
    Loading...
  3. 2026-06-18Upload per_prompt/7b/d5/behavior.json with huggingface_hub27c870a2 KB
    Loading...
  4. 2026-06-18Upload folder using huggingface_hub0c6766e2 KB
    Loading...
  5. 2026-06-18Upload folder using huggingface_hub36262132 KB
    Loading...
  6. 2026-06-18Upload folder using huggingface_hubc096e7e2 KB
    Loading...
  7. 2026-06-18Upload folder using huggingface_hub61935132 KB
    Loading...
  8. 2026-06-18Upload folder using huggingface_hubf3b3ba62 KB
    Loading...
  9. 2026-06-18Upload folder using huggingface_hub4bfcd272 KB
    Loading...
  10. 2026-06-18Upload per_prompt/7b/d4/meta.json with huggingface_hub14f0c4c2 KB
    Loading...
  11. 2026-06-18Upload per_prompt/7b/d4/meta.json with huggingface_hub22581c32 KB
    Loading...
  12. 2026-06-18Upload per_prompt/7b/d4/behavior.json with huggingface_hubf84e4a72 KB
    Loading...
  13. 2026-06-18Upload folder using huggingface_hubce8a19d2 KB
    Loading...
  14. 2026-06-18Upload folder using huggingface_hub6d15e442 KB
    Loading...
  15. 2026-06-18Upload folder using huggingface_hub465cc7f2 KB
    Loading...
  16. 2026-06-18Upload folder using huggingface_hubcf7b4182 KB
    Loading...
  17. 2026-06-18Upload folder using huggingface_hube78d1312 KB
    Loading...
  18. 2026-06-18Upload folder using huggingface_hubba78d022 KB
    Loading...
  19. 2026-06-18Upload per_prompt/7b/d3/meta.json with huggingface_hub9f7f9c02 KB
    Loading...
  20. 2026-06-18Upload per_prompt/7b/d3/behavior.json with huggingface_hub795076c2 KB
    Loading...

Used by abliterated models none yet

No abliterated models in our catalog have declared this dataset in their YAML metadata yet. This can mean the dataset is used but not declared, is used outside abliteration workflows, or is new. The link will populate automatically as models are indexed.

Community discussions 1 thread · 1 open · 1 comments

Threads posted by the community on Hugging Face: bug reports, questions about usage, pull requests on the README, license clarifications. Click any thread to expand and read the full conversation inline. Newest first.

  1. 2026-06-19[bot] Conversion to Parquetopen1 💬#1
    Loading...

Related datasets same stage · evaluate

Read further

Repository

Download the dataset

Gated dataset. You need to accept the author's terms on Hugging Face before downloading. Visit the repository, click Agree and access repository, then log in locally with huggingface-cli login and use one of the snippets below.

Copy any of these snippets into your notebook or terminal. All three fetch directly from Hugging Face using your own credentials.

Recommended: datasets library (Python)
from datasets import load_dataset
ds = load_dataset("UltraMar1ne/residual-streams-20260618")
Raw snapshot (Python)
from huggingface_hub import snapshot_download
snapshot_download(repo_id="UltraMar1ne/residual-streams-20260618", repo_type="dataset")
git clone (requires git-lfs)
git clone https://huggingface.co/datasets/UltraMar1ne/residual-streams-20260618
Catalog is the map. Apps are the tools.

Run models on your own machine, not in the cloud.

Every model page has an "Open in Abliteration" button that hands the model directly to the first-party desktop client, at the quantization your rig can actually run. No API keys, no subscription, no prompt leakage.

Open in Abliteration