Views
No views yet
| Field | Value |
|---|---|
| Analyzed model | openai-community/gpt2 |
| Analyzed model revision | 607a30d783dfa663caf39e06633721c8d4cfcd7e |
| Model kind | base |
| Activation site | resid_post |
| Layer indexing | transformer_blocks_zero_based |
| Available layers | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 |
| Hidden size | 768 |
| Input row normalization | none |
| ICALens package version | 0.3.6 |
| Fitting dataset | NeelNanda/pile-10k |
| Dataset revision | 127bfedcd5047750df5ccf3a12979a47bfa0bafa |
| Dataset split | train |
| Fitting token scope | all |
| Candidate tokens | 5465620 |
| Fitting tokens | 1000000 |
icalens.json; model-card metadata is not used when loading the lens.1from icalens import ICALens
2
3lens = ICALens.from_pretrained("REPOSITORY_ID")
4result = lens.analyze("She deposited the check at the bank.", layer=0)
5
6print(result.tokens)
7print(result.scores) # signed standard ICA scores
8print(result.energy) # per-token squared-score fractionsscores = lens.transform(activations, layer=0)icalens.json.score² / sum(all component scores²).| Layer | Components | Fitting tokens | FastICA iterations |
|---|---|---|---|
| 0 | 768 | 1000000 | 50 |
| 1 | 768 | 1000000 | 50 |
| 2 | 768 | 1000000 | 50 |
| 3 | 768 | 1000000 | 50 |
| 4 | 768 | 1000000 | 50 |
| 5 | 768 | 1000000 | 50 |
| 6 | 768 | 1000000 | 50 |
| 7 | 768 | 1000000 | 50 |
| 8 | 768 | 1000000 | 50 |
| 9 | 768 | 1000000 | 50 |
| 10 | 768 | 1000000 | 50 |
| 11 | 768 | 1000000 | 50 |
1{
2 "candidate_tokens": 5465620,
3 "context_length": 1024,
4 "dataset": {
5 "repo_id": "NeelNanda/pile-10k",
6 "revision": "127bfedcd5047750df5ccf3a12979a47bfa0bafa",
7 "split": "train"
8 },
9 "document_framing": {
10 "evidence_note": "OpenAI starts unconditional generation\u2014the beginning of a new document\u2014from <|endoftext|>. Conditional prompts are encoded directly without this prefix; this policy applies specifically because each fitting row is treated as a fresh pretraining document.",
11 "evidence_url": "https://github.com/openai/gpt-2/blob/master/src/generate_unconditional_samples.py",
12 "included_in_fitting_samples": false,
13 "policy_source": "https://raw.githubusercontent.com/liusida/icalens/main/model_framing.json",
14 "registry_model_entry": "openai-community/gpt2",
15 "registry_schema_version": 1,
16 "registry_sha256": "c6782bd5d550ed35b5e5b1e63c922907444bf4f40c10fb3f7f8f86858a4093d1",
17 "requested": "auto",
18 "strategy": "prepend-eos",
19 "token": "<|endoftext|>",
20 "token_id": 50256
21 },
22 "fitting_tokens": 1000000,
23 "sampling_seed": 0,
24 "text_field": "text",
25 "token_scope": "all"
26}1@article{liu2026icalens,
2 title={ICA Lens: Interpreting Language Models Without Training Another Dictionary},
3 author={Liu, Sida and Han, Feijiang},
4 journal={arXiv preprint arXiv:2606.11722},
5 year={2026}
6}