panda-v2.tpcpp-10m / README.md
youngsm's picture
Card: point to the recipe that holds the evaluation transforms
14d4d84 verified
|
Raw History Blame Contribute Delete
1.26 kB
---
library_name: pimm
tags: [particle-physics, point-cloud, self-supervised]
---
# panda-v2.tpcpp-10m
The Panda V2 encoder (`panda-encoder-v2m1`) pretrained by Panda V2 self-distillation (`panda-ssl-v2m1`) on 1M events of TPCpp-10M, simulated in the sPHENIX TPC, for 20 epochs (208,334 steps at batch 96). The weights are the encoder of the EMA teacher.
```python
import pimm
encoder = pimm.from_pretrained("DeepLearnPhysics/panda-v2.tpcpp-10m", device="cuda")
point = encoder(batch) # the coarsest stage, with its pooling chain
feat = point.upcast().feat # one row per input point, 1170 channels
```
Each input point has 4 features. Prepare them with the evaluation transforms of `configs/panda/v2/tpcpp-10m/instance-panda-v2m1-0a-lora.py` in [pimm](https://github.com/DeepLearnPhysics/particle-imaging-models). On GPUs without FlashAttention, pass `attention_backend="torch"` to `pimm.from_pretrained`.
## Snapshots
`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:
```python
encoder = pimm.from_pretrained("DeepLearnPhysics/panda-v2.tpcpp-10m", revision="11-of-40", device="cuda")
```