Snapshot 01 of 40: step 5,208
Browse files- README.md +26 -0
- config.json +32 -0
- model.safetensors +3 -0
README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: pimm
|
| 3 |
+
tags: [particle-physics, point-cloud, self-supervised]
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# panda-v2.pilarnet-m
|
| 7 |
+
|
| 8 |
+
The Panda V2 encoder (`panda-encoder-v2m1`) pretrained by Panda V2 self-distillation (`panda-ssl-v2m1`) on 1M events of PILArNet-M, simulated in a liquid argon TPC, for 20 epochs (208,334 steps at batch 96). The weights are the encoder of the EMA teacher.
|
| 9 |
+
|
| 10 |
+
```python
|
| 11 |
+
import pimm
|
| 12 |
+
|
| 13 |
+
encoder = pimm.from_pretrained("DeepLearnPhysics/panda-v2.pilarnet-m", device="cuda")
|
| 14 |
+
point = encoder(batch) # the coarsest stage, with its pooling chain
|
| 15 |
+
feat = point.upcast().feat # one row per input point, 1170 channels
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
Each input point has 4 features. Prepare them with the evaluation transforms of `configs/panda/v2/finetune/_base_/datasets/lartpc.py` in [pimm](https://github.com/DeepLearnPhysics/particle-imaging-models). On GPUs without FlashAttention, pass `attention_backend="torch"` to `pimm.from_pretrained`.
|
| 19 |
+
|
| 20 |
+
## Snapshots
|
| 21 |
+
|
| 22 |
+
`main` holds the encoder at the end of pretraining. The tags `01-of-40` to `40-of-40` hold it every 5,208 steps (0.5M events): tag `NN-of-40` is step NN × 5,208. To load one, pass its tag as the revision:
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
encoder = pimm.from_pretrained("DeepLearnPhysics/panda-v2.pilarnet-m", revision="11-of-40", device="cuda")
|
| 26 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": {
|
| 3 |
+
"type": "panda-encoder-v2m1",
|
| 4 |
+
"in_channels": 4,
|
| 5 |
+
"grid_size": 0.001,
|
| 6 |
+
"channels": [
|
| 7 |
+
54,
|
| 8 |
+
108,
|
| 9 |
+
432,
|
| 10 |
+
576
|
| 11 |
+
],
|
| 12 |
+
"depths": [
|
| 13 |
+
3,
|
| 14 |
+
6,
|
| 15 |
+
12,
|
| 16 |
+
6
|
| 17 |
+
],
|
| 18 |
+
"heads": [
|
| 19 |
+
3,
|
| 20 |
+
6,
|
| 21 |
+
24,
|
| 22 |
+
32
|
| 23 |
+
],
|
| 24 |
+
"strides": [
|
| 25 |
+
2,
|
| 26 |
+
1,
|
| 27 |
+
4
|
| 28 |
+
],
|
| 29 |
+
"conv_stages": 2,
|
| 30 |
+
"window_size": 1024
|
| 31 |
+
}
|
| 32 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3922fec3c6cab87d203e6f6e85d6a8d20456d54165dd34fbcce6025399443e9d
|
| 3 |
+
size 213690408
|