Add model weights
Browse filesCheckpoint: 231024222007-famous-alligator/checkpoints/ckpt-0999.pt
- .gitattributes +1 -0
- README.md +28 -0
- model.safetensors +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
*.png filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
license: cc-by-nc-4.0
|
| 3 |
---
|
| 4 |
+
|
| 5 |
+
# Model card for `boldgpt_small_patch10.cont`
|
| 6 |
+
|
| 7 |
+
A Vision Transformer (ViT) model trained on BOLD activation maps from [NSD-Flat](https://huggingface.co/datasets/clane9/NSD-Flat). The training objective was to auto-regressively predict the next patch with shuffled patch order and MSE loss. This model was trained using `shared1000` as the held out validation set.
|
| 8 |
+
|
| 9 |
+
## Dependencies
|
| 10 |
+
|
| 11 |
+
- [boldGPT](https://github.com/clane9/boldGPT)
|
| 12 |
+
|
| 13 |
+
## Usage
|
| 14 |
+
|
| 15 |
+
```python
|
| 16 |
+
from boldgpt.data import ActivityTransform
|
| 17 |
+
from boldgpt.models import create_model
|
| 18 |
+
from datasets import load_dataset
|
| 19 |
+
|
| 20 |
+
model = create_model("boldgpt_small_patch10.cont", pretrained=True)
|
| 21 |
+
|
| 22 |
+
dataset = load_dataset("clane9/NSD-Flat", split="train")
|
| 23 |
+
dataset.set_format("torch")
|
| 24 |
+
|
| 25 |
+
transform = ActivityTransform()
|
| 26 |
+
batch = dataset[:1]
|
| 27 |
+
batch["activity"] = transform(batch["activity"])
|
| 28 |
+
|
| 29 |
+
# output: (B, N + 1, D) predicted next patches
|
| 30 |
+
output, state = model(batch)
|
| 31 |
+
```
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f2358e17ce3e0266e1167ad359659702dd7dd3068f3fabe67523370830c9984
|
| 3 |
+
size 87874460
|