Efekan35 commited on
Commit
92028c7
·
verified ·
1 Parent(s): aff99cf

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: en
3
+ license: apache-2.0
4
+ tags: [neuroscience, brain-connectivity, gpt2, axonlm]
5
+ ---
6
+ # AxonLM-Neuro
7
+
8
+ Part of **AxonLM** — GPT-2 architecture trained for neuroanatomical knowledge probing.
9
+
10
+ ## Description
11
+ AxonLM-Base fine-tuned on PubMed abstracts (98M tokens). Val loss: 2.90.
12
+
13
+ ## Key Results
14
+ - Linear probe **AUC = 0.963** (p=0.002) on Allen Mouse Brain Connectivity Atlas (N=90)
15
+ - Full Atlas **AUC = 0.847** (31σ above null, N=159,872 pairs, 428 structures)
16
+ - FFN L9 activations encode neuroanatomical connectivity (*sleeping knowledge*)
17
+ - AxonLM-Expert retrieval system: **100% accuracy** on 12 anatomical queries
18
+
19
+ ## Model Family
20
+ | Model | Training | Params | Probe AUC |
21
+ |-------|----------|--------|-----------|
22
+ | AxonLM-Base | FineWeb-Edu (295M tokens) | 124M | 0.844 |
23
+ | AxonLM-Neuro | + PubMed FT (98M tokens) | 124M | 0.847 |
24
+
25
+ ## Citation
26
+ ```bibtex
27
+ @article{axonlm2025,
28
+ title={Neuroanatomical Connectivity is Linearly Decodable from AxonLM Feed-Forward Network Activations},
29
+ author={Anonymous},
30
+ journal={NeurIPS NeuroAI Workshop},
31
+ year={2025}
32
+ }
33
+ ```
34
+
35
+ ## Usage
36
+ ```python
37
+ from transformers import GPT2LMHeadModel, GPT2Tokenizer
38
+ model = GPT2LMHeadModel.from_pretrained("YOUR_HF_USERNAME/AxonLM-Neuro")
39
+ tok = GPT2Tokenizer.from_pretrained("YOUR_HF_USERNAME/AxonLM-Neuro")
40
+ inputs = tok("CA3 sends projections to", return_tensors="pt")
41
+ output = model.generate(**inputs, max_new_tokens=10)
42
+ print(tok.decode(output[0]))
43
+ ```
config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_function": "gelu_new",
3
+ "add_cross_attention": false,
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.0,
8
+ "bos_token_id": 50256,
9
+ "dtype": "float32",
10
+ "embd_pdrop": 0.0,
11
+ "eos_token_id": 50256,
12
+ "initializer_range": 0.02,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": 3072,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "pad_token_id": null,
21
+ "reorder_and_upcast_attn": false,
22
+ "resid_pdrop": 0.0,
23
+ "scale_attn_by_inverse_layer_idx": false,
24
+ "scale_attn_weights": true,
25
+ "summary_activation": null,
26
+ "summary_first_dropout": 0.1,
27
+ "summary_proj_to_labels": true,
28
+ "summary_type": "cls_index",
29
+ "summary_use_proj": true,
30
+ "tie_word_embeddings": true,
31
+ "transformers_version": "5.5.0",
32
+ "use_cache": true,
33
+ "vocab_size": 50304
34
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "output_attentions": false,
6
+ "output_hidden_states": false,
7
+ "transformers_version": "5.5.0",
8
+ "use_cache": true
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75f331c88ef64daac664ca3a8099d5ffe79a2501ebc9cace125b6b34397fd288
3
+ size 497918592
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|endoftext|>",
5
+ "eos_token": "<|endoftext|>",
6
+ "errors": "replace",
7
+ "is_local": false,
8
+ "model_max_length": 1024,
9
+ "pad_token": "<|endoftext|>",
10
+ "tokenizer_class": "GPT2Tokenizer",
11
+ "unk_token": "<|endoftext|>"
12
+ }