Spaces:
Runtime error
Runtime error
Commit ·
bbae87d
0
Parent(s):
Sync to HF Space
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .env.example +8 -0
- .github/workflows/tests.yml +41 -0
- .gitignore +4 -0
- .idea/.gitignore +8 -0
- AGENTS.md +50 -0
- Dockerfile +113 -0
- Dockerfile_training +77 -0
- README.md +352 -0
- app.py +77 -0
- config_files/config_jets.yaml +172 -0
- config_files/config_jets_1.yaml +191 -0
- config_files/config_jets_1_delphes.yaml +86 -0
- config_files/config_jets_2_delphes.yaml +63 -0
- container_shell.sh +4 -0
- docker-compose.yaml +7 -0
- env.sh +17 -0
- jobs/BigTraining_2_spatial_part_only_t3.slurm +15 -0
- jobs/BigTraining_2_spatial_part_only_vega.slurm +21 -0
- jobs/IRC_training/Delphes_training_t3_NoPID_augment.sh +24 -0
- jobs/IRC_training/Delphes_training_t3_NoPID_augment_IRC.sh +24 -0
- jobs/IRC_training/Delphes_training_t3_NoPID_augment_IRC_SN.sh +24 -0
- jobs/IRC_training/start_at_30k/Delphes_training_t3_NoPID_augment.sh +24 -0
- jobs/IRC_training/start_at_30k/Delphes_training_t3_NoPID_augment_IRC.sh +26 -0
- jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment.sh +24 -0
- jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRC.sh +25 -0
- jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRCSN.sh +25 -0
- jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRC_noaug.sh +34 -0
- jobs/IRC_training/start_at_50k/test.sh +32 -0
- jobs/base_training/gatr_training_NoPIDDelphes.sh +26 -0
- jobs/base_training/lgatr_training_NoPIDDelphes.sh +26 -0
- jobs/base_training/transformer_training_NoPIDDelphes.sh +24 -0
- jobs/base_training_different_datasets/aug/lgatr_700_07.sh +26 -0
- jobs/base_training_different_datasets/aug/lgatr_700_07_and_900_03.sh +25 -0
- jobs/base_training_different_datasets/aug/lgatr_700_07_and_900_03_and_QCD.sh +25 -0
- jobs/base_training_different_datasets/aug/lgatr_QCD.sh +25 -0
- jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07.sh +27 -0
- jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03.sh +26 -0
- jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03_and_QCD.sh +25 -0
- jobs/base_training_different_datasets/aug_IRC_S/lgatr_QCD.sh +26 -0
- jobs/base_training_different_datasets/aug_IRC_SN/lgatr_700_07.sh +27 -0
- jobs/base_training_different_datasets/aug_IRC_SN/lgatr_700_07_and_900_03.sh +26 -0
- jobs/base_training_different_datasets/aug_IRC_SN/lgatr_700_07_and_900_03_and_QCD.sh +25 -0
- jobs/base_training_different_datasets/aug_IRC_SN/lgatr_900_03.sh +25 -0
- jobs/base_training_different_datasets/aug_IRC_SN/lgatr_QCD.sh +26 -0
- jobs/base_training_different_datasets/lgatr_700_07.sh +26 -0
- jobs/base_training_different_datasets/lgatr_700_07_and_900_03.sh +25 -0
- jobs/base_training_different_datasets/lgatr_700_07_and_900_03_and_QCD.sh +25 -0
- jobs/base_training_different_datasets/lgatr_QCD.sh +25 -0
- jobs/clustering.slurm +52 -0
- jobs/clustering_503.slurm +16 -0
.env.example
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SVJ_CODE_ROOT=/work/gkrzmanc/jetclustering/code
|
| 2 |
+
SVJ_DATA_ROOT=/work/gkrzmanc/jetclustering/data
|
| 3 |
+
#SVJ_PREPROCESSED_DATA_ROOT=/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/preprocessed_data
|
| 4 |
+
SVJ_PREPROCESSED_DATA_ROOT=/work/gkrzmanc/jetclustering/preprocessed_data
|
| 5 |
+
SVJ_RESULTS_ROOT=/work/gkrzmanc/jetclustering/results
|
| 6 |
+
SVJ_RESULTS_ROOT_FALLBACK=/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/results
|
| 7 |
+
SVJ_WANDB_ENTITY=fcc_ml
|
| 8 |
+
WANDB_API_KEY=1a2b3c
|
.github/workflows/tests.yml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Tests
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches: [main]
|
| 6 |
+
pull_request:
|
| 7 |
+
branches: [main]
|
| 8 |
+
|
| 9 |
+
jobs:
|
| 10 |
+
test:
|
| 11 |
+
runs-on: ubuntu-latest
|
| 12 |
+
steps:
|
| 13 |
+
- uses: actions/checkout@v4
|
| 14 |
+
|
| 15 |
+
- name: Set up Python 3.10
|
| 16 |
+
uses: actions/setup-python@v5
|
| 17 |
+
with:
|
| 18 |
+
python-version: "3.10"
|
| 19 |
+
|
| 20 |
+
- name: Install dependencies
|
| 21 |
+
run: |
|
| 22 |
+
python -m pip install --upgrade pip
|
| 23 |
+
pip install numba==0.58.1
|
| 24 |
+
pip install torch==2.5.0 torchvision==0.20.0 torchaudio==2.5.0 --index-url https://download.pytorch.org/whl/cpu
|
| 25 |
+
pip install torch_geometric
|
| 26 |
+
pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.5.0+cpu.html
|
| 27 |
+
pip install xformers==0.0.29.post1 --no-deps
|
| 28 |
+
pip install pytorch-lightning yacs torchmetrics performer-pytorch tensorboardX ogb wandb seaborn dgl
|
| 29 |
+
pip install scipy pandas scikit-learn matplotlib tqdm PyYAML
|
| 30 |
+
pip install awkward0 uproot awkward vector lz4 xxhash tables tensorboard plotly
|
| 31 |
+
pip install fastjet gradio huggingface_hub hdbscan ruff
|
| 32 |
+
pip install --no-deps git+https://github.com/gregorkrz/lorentz-gatr.git
|
| 33 |
+
pip install pytest
|
| 34 |
+
|
| 35 |
+
- name: Lint with ruff
|
| 36 |
+
run: |
|
| 37 |
+
ruff check --select E9,F63,F7 --output-format=github tests/
|
| 38 |
+
|
| 39 |
+
- name: Run tests
|
| 40 |
+
run: |
|
| 41 |
+
pytest tests/ -v --tb=short
|
.gitignore
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
models/
|
| 2 |
+
demo_datasets/
|
| 3 |
+
.idea/
|
| 4 |
+
.env
|
.idea/.gitignore
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Default ignored files
|
| 2 |
+
/shelf/
|
| 3 |
+
/workspace.xml
|
| 4 |
+
# Editor-based HTTP Client requests
|
| 5 |
+
/httpRequests/
|
| 6 |
+
# Datasource local storage ignored files
|
| 7 |
+
/dataSources/
|
| 8 |
+
/dataSources.local.xml
|
AGENTS.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# AGENTS.md
|
| 2 |
+
|
| 3 |
+
## Cursor Cloud specific instructions
|
| 4 |
+
|
| 5 |
+
### Overview
|
| 6 |
+
This is a Python 3.10 ML framework for IRC-safe jet clustering using Lorentz Geometric Algebra Transformers (L-GATr). The main runnable service is a **Gradio demo web app** (`app.py`) on port 7860 that performs jet clustering inference using pre-trained models.
|
| 7 |
+
|
| 8 |
+
### Python version
|
| 9 |
+
The project requires **Python 3.10** (pinned by numba 0.58.1 and the Dockerfile). The VM needs `python3.10` installed via deadsnakes PPA. A virtualenv at `/workspace/.venv` is used.
|
| 10 |
+
|
| 11 |
+
### Key dependencies and install order
|
| 12 |
+
Dependencies must be installed in a specific order to avoid version conflicts:
|
| 13 |
+
1. `numba==0.58.1` (pins numpy < 1.27)
|
| 14 |
+
2. PyTorch 2.5.0 **CPU** from `https://download.pytorch.org/whl/cpu`
|
| 15 |
+
3. `torch_geometric` and PyG extensions (`pyg_lib`, `torch_scatter`, `torch_sparse`, `torch_cluster`, `torch_spline_conv`) from `https://data.pyg.org/whl/torch-2.5.0+cpu.html`
|
| 16 |
+
4. `xformers==0.0.29.post1` (must match torch 2.5.x; do NOT let lgatr upgrade torch)
|
| 17 |
+
5. L-GATr from `https://github.com/gregorkrz/lorentz-gatr` — install with `pip install --no-deps` to prevent it from upgrading torch
|
| 18 |
+
6. Remaining packages: `pytorch-lightning`, `fastjet`, `gradio`, `huggingface_hub`, `hdbscan`, `ruff`, etc.
|
| 19 |
+
|
| 20 |
+
### Gotcha: torch version conflicts
|
| 21 |
+
Installing `lgatr` from git will attempt to upgrade PyTorch to the latest CUDA version. Always install lgatr with `--no-deps` and manually install its dependencies first. After any dependency changes, verify `python -c "import torch; print(torch.__version__)"` shows `2.5.0+cpu`.
|
| 22 |
+
|
| 23 |
+
### Gotcha: xformers on CPU
|
| 24 |
+
xformers CUDA extensions won't load on CPU — the warning is expected. The demo uses `cpu_demo=True` which sets the attention mask to `None`, bypassing xformers attention. The import `from xformers.ops.fmha import BlockDiagonalMask` requires xformers >= 0.0.29.
|
| 25 |
+
|
| 26 |
+
### Gotcha: pytorch_cmspepr
|
| 27 |
+
`pytorch_cmspepr` requires CUDA to build and is NOT needed for the demo app. It's only used by `GravNetConv` layers for training.
|
| 28 |
+
|
| 29 |
+
### Running the demo app
|
| 30 |
+
```bash
|
| 31 |
+
source /workspace/.venv/bin/activate
|
| 32 |
+
cd /workspace
|
| 33 |
+
GRADIO_SERVER_NAME=0.0.0.0 python app.py
|
| 34 |
+
```
|
| 35 |
+
The app starts on port 7860. Pre-trained models must exist in `models/` and demo datasets in `demo_datasets/` (downloaded from HuggingFace Hub).
|
| 36 |
+
|
| 37 |
+
### Models and datasets
|
| 38 |
+
Downloaded from HuggingFace:
|
| 39 |
+
- Models: `huggingface_hub.snapshot_download(repo_id='gregorkrzmanc/jetclustering', local_dir='models/')`
|
| 40 |
+
- Demo datasets: `huggingface_hub.snapshot_download(repo_id='gregorkrzmanc/jetclustering_demo', local_dir='demo_datasets/', repo_type='dataset')`
|
| 41 |
+
|
| 42 |
+
### Linting
|
| 43 |
+
```bash
|
| 44 |
+
source /workspace/.venv/bin/activate
|
| 45 |
+
ruff check
|
| 46 |
+
```
|
| 47 |
+
The codebase has existing lint issues (research code); `ruff` is listed in `requirements.txt`.
|
| 48 |
+
|
| 49 |
+
### Testing
|
| 50 |
+
No automated test suite exists. The demo app can be tested via the Gradio API or browser UI. See README.md for project structure and usage.
|
Dockerfile
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
## gkrz/lgatr:v3
|
| 2 |
+
# docker build -t gkrz/lgatr:v4 .
|
| 3 |
+
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
# Set up a new user named "user" with user ID 1000
|
| 7 |
+
RUN useradd -m -u 1000 user
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
# Set home to the user's home directory
|
| 11 |
+
ENV HOME=/home/user \
|
| 12 |
+
PATH=/home/user/.local/bin:$PATH
|
| 13 |
+
|
| 14 |
+
# Set the working directory to the user's home directory
|
| 15 |
+
WORKDIR $HOME/app
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
SHELL ["/bin/bash", "-c"]
|
| 19 |
+
|
| 20 |
+
RUN apt update && \
|
| 21 |
+
DEBIAN_FRONTEND=noninteractive apt install --yes --no-install-recommends \
|
| 22 |
+
build-essential \
|
| 23 |
+
cmake \
|
| 24 |
+
ffmpeg \
|
| 25 |
+
git \
|
| 26 |
+
python-is-python3 \
|
| 27 |
+
python3-dev \
|
| 28 |
+
python3-pip \
|
| 29 |
+
&& \
|
| 30 |
+
rm -rf /var/lib/apt/lists/*
|
| 31 |
+
|
| 32 |
+
RUN python3.10 --version
|
| 33 |
+
RUN python3 --version
|
| 34 |
+
RUN python --version
|
| 35 |
+
|
| 36 |
+
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
| 37 |
+
#python3 -m pip install --no-cache-dir --upgrade --requirement requirements.txt
|
| 38 |
+
RUN python3 -m pip install numba==0.58.1
|
| 39 |
+
# packages without conda
|
| 40 |
+
# RUN python3 -m pip install --no-cache-dir torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
|
| 41 |
+
RUN python3 -m pip install torch==2.5.0 torchvision torchaudio
|
| 42 |
+
RUN python3 -m pip install torch_geometric
|
| 43 |
+
#RUN python3 -m pip install torch_scatter torch_sparse
|
| 44 |
+
#RUN python3 -m pip install torch-scatter -f https://data.pyg.org/whl/torch-2.5.1.html
|
| 45 |
+
#RUN python3 -m pip install torch-sparse -f https://data.pyg.org/whl/torch-2.5.1.html
|
| 46 |
+
#RUN python3 -m pip install torch-cluster -f https://data.pyg.org/whl/torch-2.5.1.html
|
| 47 |
+
RUN python3 -m pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv xformers==0.0.29.post1 -f https://data.pyg.org/whl/torch-2.5.0+cpu.html
|
| 48 |
+
|
| 49 |
+
RUN python3 -m pip install pytorch-lightning yacs torchmetrics
|
| 50 |
+
RUN python3 -m pip install performer-pytorch
|
| 51 |
+
RUN python3 -m pip install tensorboardX
|
| 52 |
+
RUN python3 -m pip install ogb
|
| 53 |
+
RUN python3 -m pip install wandb
|
| 54 |
+
RUN python3 -m pip install seaborn
|
| 55 |
+
RUN python3 -m pip install dgl
|
| 56 |
+
RUN python3 -m pip install numpy
|
| 57 |
+
RUN python3 -m pip install scipy
|
| 58 |
+
RUN python3 -m pip install pandas
|
| 59 |
+
RUN python3 -m pip install scikit-learn
|
| 60 |
+
RUN python3 -m pip install matplotlib
|
| 61 |
+
RUN python3 -m pip install tqdm
|
| 62 |
+
RUN python3 -m pip install PyYAML
|
| 63 |
+
RUN python3 -m pip install awkward0
|
| 64 |
+
RUN python3 -m pip install uproot
|
| 65 |
+
RUN python3 -m pip install awkward
|
| 66 |
+
RUN python3 -m pip install vector
|
| 67 |
+
RUN python3 -m pip install lz4
|
| 68 |
+
RUN python3 -m pip install xxhash
|
| 69 |
+
RUN python3 -m pip install tables
|
| 70 |
+
RUN python3 -m pip install tensorboard
|
| 71 |
+
RUN python3 -m pip install plotly
|
| 72 |
+
RUN python3 -m pip install fastjet
|
| 73 |
+
RUN python3 -m pip install gradio
|
| 74 |
+
RUN python3 -m pip install huggingface_hub
|
| 75 |
+
RUN python3 -m pip install hdbscan
|
| 76 |
+
#RUN python3 -m pip install lgatr # This doesn't work
|
| 77 |
+
RUN python3 -c "\
|
| 78 |
+
from huggingface_hub import snapshot_download; \
|
| 79 |
+
snapshot_download(repo_id='gregorkrzmanc/jetclustering', local_dir='models/'); \
|
| 80 |
+
snapshot_download(repo_id='gregorkrzmanc/jetclustering_demo', local_dir='demo_datasets/', repo_type='dataset')"
|
| 81 |
+
# remove pip cache
|
| 82 |
+
RUN python3 -m pip cache purge
|
| 83 |
+
|
| 84 |
+
# COPY docker/ext_packages /docker/ext_packages
|
| 85 |
+
# RUN python3 /docker/ext_packages/install_upstream_python_packages.py
|
| 86 |
+
RUN mkdir -p $HOME/opt/pepr
|
| 87 |
+
|
| 88 |
+
# Install GATr
|
| 89 |
+
#RUN cd /opt/pepr && git clone https://github.com/Qualcomm-AI-research/geometric-algebra-transformer.git geometric-algebra-transformer1
|
| 90 |
+
#RUN cd /opt/pepr/geometric-algebra-transformer1/ && python3 -m pip install .
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
# Install L-GATr - for some reason this only works if executed from the already-built container
|
| 94 |
+
RUN cd $HOME/opt/pepr && git clone https://github.com/gregorkrz/lorentz-gatr lgatr
|
| 95 |
+
RUN cd $HOME/opt/pepr/lgatr/ && python3 -m pip install .
|
| 96 |
+
RUN ls /usr/local/lib/python3.10/dist-packages/lgatr
|
| 97 |
+
RUN ls /usr/local/lib/python3.10/dist-packages/lgatr/layers
|
| 98 |
+
# Install torch_cmspepr
|
| 99 |
+
|
| 100 |
+
RUN cd $HOME/opt/pepr && git clone https://github.com/cms-pepr/pytorch_cmspepr
|
| 101 |
+
RUN cd $HOME/opt/pepr/pytorch_cmspepr/ && python3 -m pip install --no-build-isolation .
|
| 102 |
+
|
| 103 |
+
COPY --chown=user . $HOME/app
|
| 104 |
+
|
| 105 |
+
USER root
|
| 106 |
+
RUN chmod -R 777 $HOME
|
| 107 |
+
USER user
|
| 108 |
+
|
| 109 |
+
# entrypoint run app.py with python
|
| 110 |
+
EXPOSE 7860
|
| 111 |
+
ENV GRADIO_SERVER_NAME="0.0.0.0"
|
| 112 |
+
CMD ["python", "app.py"]
|
| 113 |
+
|
Dockerfile_training
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# gkrz/lgatr:v3
|
| 2 |
+
# docker build -t gkrz/lgatr:v4 .
|
| 3 |
+
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
|
| 4 |
+
|
| 5 |
+
SHELL ["/bin/bash", "-c"]
|
| 6 |
+
|
| 7 |
+
USER root
|
| 8 |
+
|
| 9 |
+
RUN apt update && \
|
| 10 |
+
DEBIAN_FRONTEND=noninteractive apt install --yes --no-install-recommends \
|
| 11 |
+
build-essential \
|
| 12 |
+
cmake \
|
| 13 |
+
ffmpeg \
|
| 14 |
+
git \
|
| 15 |
+
python-is-python3 \
|
| 16 |
+
python3-dev \
|
| 17 |
+
python3-pip \
|
| 18 |
+
&& \
|
| 19 |
+
rm -rf /var/lib/apt/lists/*
|
| 20 |
+
|
| 21 |
+
RUN python3.10 --version
|
| 22 |
+
RUN python3 --version
|
| 23 |
+
RUN python --version
|
| 24 |
+
|
| 25 |
+
RUN python3 -m pip install --no-cache-dir --upgrade pip
|
| 26 |
+
#python3 -m pip install --no-cache-dir --upgrade --requirement requirements.txt
|
| 27 |
+
RUN python3 -m pip install numba==0.58.1
|
| 28 |
+
# packages without conda
|
| 29 |
+
# RUN python3 -m pip install --no-cache-dir torch==1.13.1+cu117 torchvision==0.14.1+cu117 torchaudio==0.13.1 --extra-index-url https://download.pytorch.org/whl/cu117
|
| 30 |
+
RUN python3 -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
| 31 |
+
RUN python3 -m pip install torch_geometric
|
| 32 |
+
RUN python3 -m pip install pyg_lib torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.5.1+cu118.html
|
| 33 |
+
RUN python3 -m pip install pytorch-lightning yacs torchmetrics
|
| 34 |
+
RUN python3 -m pip install performer-pytorch
|
| 35 |
+
RUN python3 -m pip install tensorboardX
|
| 36 |
+
RUN python3 -m pip install ogb
|
| 37 |
+
RUN python3 -m pip install wandb
|
| 38 |
+
RUN python3 -m pip install seaborn
|
| 39 |
+
RUN python3 -m pip install dgl -f https://data.dgl.ai/wheels/cu118/repo.html
|
| 40 |
+
RUN python3 -m pip install numpy
|
| 41 |
+
RUN python3 -m pip install scipy
|
| 42 |
+
RUN python3 -m pip install pandas
|
| 43 |
+
RUN python3 -m pip install scikit-learn
|
| 44 |
+
RUN python3 -m pip install matplotlib
|
| 45 |
+
RUN python3 -m pip install tqdm
|
| 46 |
+
RUN python3 -m pip install PyYAML
|
| 47 |
+
RUN python3 -m pip install awkward0
|
| 48 |
+
RUN python3 -m pip install uproot
|
| 49 |
+
RUN python3 -m pip install awkward
|
| 50 |
+
RUN python3 -m pip install vector
|
| 51 |
+
RUN python3 -m pip install lz4
|
| 52 |
+
RUN python3 -m pip install xxhash
|
| 53 |
+
RUN python3 -m pip install tables
|
| 54 |
+
RUN python3 -m pip install tensorboard
|
| 55 |
+
RUN python3 -m pip install plotly
|
| 56 |
+
RUN python3 -m pip install xformers --index-url https://download.pytorch.org/whl/cu118
|
| 57 |
+
RUN python3 -m pip install fastjet
|
| 58 |
+
|
| 59 |
+
# remove pip cache
|
| 60 |
+
RUN python3 -m pip cache purge
|
| 61 |
+
|
| 62 |
+
# COPY docker/ext_packages /docker/ext_packages
|
| 63 |
+
# RUN python3 /docker/ext_packages/install_upstream_python_packages.py
|
| 64 |
+
RUN mkdir -p /opt/pepr
|
| 65 |
+
|
| 66 |
+
# Install GATr
|
| 67 |
+
RUN cd /opt/pepr && git clone https://github.com/Qualcomm-AI-research/geometric-algebra-transformer.git geometric-algebra-transformer1
|
| 68 |
+
RUN cd /opt/pepr/geometric-algebra-transformer1/ && python3 -m pip install .
|
| 69 |
+
|
| 70 |
+
# Install L-GATr - for some reason this only works if executed from the already-built container
|
| 71 |
+
#RUN cd /opt/pepr && git clone https://github.com/gregorkrz/lorentz-gatr lgatr
|
| 72 |
+
#RUN cd /opt/pepr/lgatr/ && python3 -m pip install .
|
| 73 |
+
|
| 74 |
+
# Install torch_cmspepr
|
| 75 |
+
|
| 76 |
+
RUN cd /opt/pepr && git clone https://github.com/cms-pepr/pytorch_cmspepr
|
| 77 |
+
RUN cd /opt/pepr/pytorch_cmspepr/ && python3 -m pip install --no-build-isolation .
|
README.md
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: JetClustering
|
| 3 |
+
emoji: ⚛️
|
| 4 |
+
colorFrom: "red"
|
| 5 |
+
colorTo: "blue"
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_file: app.py
|
| 8 |
+
pinned: false
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Learning IRC-Safe Jet Clustering with Geometric Algebra Transformers
|
| 12 |
+
|
| 13 |
+
Authors: Gregor Kržmanc, Roberto Seidita, Annapaola de Cosa
|
| 14 |
+
|
| 15 |
+
Paper at ML4PS Workshop at NeurIPS: https://ml4physicalsciences.github.io/2025/files/NeurIPS_ML4PS_2025_59.pdf
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
A machine learning framework for jet clustering in CMS events using Geometric Algebra Transformers. This repository provides tools for preprocessing, training, and evaluating jet clustering models on Delphes simulation data.
|
| 19 |
+
|
| 20 |
+
## 🚀 Quick Start
|
| 21 |
+
|
| 22 |
+
**Live Demo**: Try the interactive demo at [https://huggingface.co/spaces/gregorkrzmanc/jetclustering](https://huggingface.co/spaces/gregorkrzmanc/jetclustering)
|
| 23 |
+
|
| 24 |
+
The demo allows you to:
|
| 25 |
+
- Upload particle-level data for an event (CSV of pt, eta, phi, mass, charge)
|
| 26 |
+
- Select different model variants and training datasets
|
| 27 |
+
- Visualize clustering results compared to Anti-kt jets
|
| 28 |
+
- View detailed jet information in JSON format
|
| 29 |
+
|
| 30 |
+
> **Note**: The live demo runs on the free HuggingFace tier, and it's extremely slow (1-5 minutes per event). For faster local execution, see the [Local Demo Setup](#local-demo-setup) section below.
|
| 31 |
+
|
| 32 |
+
## 📋 Table of Contents
|
| 33 |
+
|
| 34 |
+
- [Overview](#overview)
|
| 35 |
+
- [Prerequisites](#prerequisites)
|
| 36 |
+
- [Installation](#installation)
|
| 37 |
+
- [Data Preparation](#data-preparation)
|
| 38 |
+
- [Training](#training)
|
| 39 |
+
- [Evaluation](#evaluation)
|
| 40 |
+
- [Visualization](#visualization)
|
| 41 |
+
- [Pre-trained Models](#pre-trained-models)
|
| 42 |
+
- [Project Structure](#project-structure)
|
| 43 |
+
|
| 44 |
+
## Overview
|
| 45 |
+
|
| 46 |
+
The repo has evolved from the [MLPF repository](https://github.com/selvaggi/mlpf) (we partially reuse the dataloader).
|
| 47 |
+
|
| 48 |
+
The framework supports:
|
| 49 |
+
- Multiple loss functions (GP, GP_IRC_S, GP_IRC_SN)
|
| 50 |
+
- Various training datasets (QCD, SVJ events with different parameters)
|
| 51 |
+
- Automated evaluation pipelines
|
| 52 |
+
- Comprehensive visualization tools
|
| 53 |
+
|
| 54 |
+
## Prerequisites
|
| 55 |
+
|
| 56 |
+
- Python 3.8+
|
| 57 |
+
- CUDA-capable GPU (for training)
|
| 58 |
+
- Singularity/Apptainer (for containerized training)
|
| 59 |
+
- Access to CERN/PSI computing infrastructure (for full workflow)
|
| 60 |
+
|
| 61 |
+
## Installation
|
| 62 |
+
|
| 63 |
+
### Environment Setup
|
| 64 |
+
|
| 65 |
+
This project uses a Docker container with pre-compiled packages. The container image is `gkrz/lgatr:v3`.
|
| 66 |
+
|
| 67 |
+
#### Option 1: Use Pre-built Container
|
| 68 |
+
|
| 69 |
+
```bash
|
| 70 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 71 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 72 |
+
singularity shell -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3
|
| 73 |
+
```
|
| 74 |
+
|
| 75 |
+
#### Option 2: Build from Dockerfile
|
| 76 |
+
|
| 77 |
+
Build the training container from scratch:
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
docker build -f Dockerfile_training -t gkrz/lgatr:v3 .
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
**Important**: Ensure consistent `APPTAINER_CACHEDIR` and `APPTAINER_TMPDIR` settings across sessions.
|
| 84 |
+
|
| 85 |
+
### Environment Variables
|
| 86 |
+
|
| 87 |
+
1. **Set up environment variables** by sourcing `env.sh`:
|
| 88 |
+
|
| 89 |
+
```bash
|
| 90 |
+
source env.sh
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
Or use the `.env` file for IDE integration (e.g., PyCharm).
|
| 94 |
+
|
| 95 |
+
2. **Configure paths**: Edit `env.sh` to set your local paths:
|
| 96 |
+
|
| 97 |
+
```bash
|
| 98 |
+
export SVJ_CODE_ROOT="/path/to/jetclustering/code"
|
| 99 |
+
export SVJ_DATA_ROOT="/path/to/jetclustering/data"
|
| 100 |
+
export SVJ_RESULTS_ROOT="/path/to/jetclustering/results"
|
| 101 |
+
export SVJ_PREPROCESSED_DATA_ROOT="/path/to/jetclustering/preprocessed_data"
|
| 102 |
+
export SVJ_RESULTS_ROOT_FALLBACK="/path/to/fallback/results" # Optional: for SE storage
|
| 103 |
+
export SVJ_WANDB_ENTITY="your_wandb_entity"
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
**Path Configuration Notes**:
|
| 107 |
+
- Use relative paths for portability across machines (lxplus, T3 work, T3 SE)
|
| 108 |
+
- Absolute paths starting with `/` are also supported
|
| 109 |
+
- `SVJ_RESULTS_ROOT_FALLBACK` is used when files aren't available in the primary results directory
|
| 110 |
+
|
| 111 |
+
### Local Demo Setup
|
| 112 |
+
|
| 113 |
+
For faster local execution, use Docker Compose:
|
| 114 |
+
|
| 115 |
+
```yaml
|
| 116 |
+
version: '3.8'
|
| 117 |
+
|
| 118 |
+
services:
|
| 119 |
+
jetclustering_demo:
|
| 120 |
+
image: gkrz/jetclustering_demo_cpu:v0
|
| 121 |
+
ports:
|
| 122 |
+
- "7860:7860"
|
| 123 |
+
```
|
| 124 |
+
|
| 125 |
+
Save as `docker-compose.yml` and run:
|
| 126 |
+
|
| 127 |
+
```bash
|
| 128 |
+
docker-compose up
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
## Data Preparation
|
| 132 |
+
|
| 133 |
+
### Generating Delphes Data
|
| 134 |
+
|
| 135 |
+
See the [jetclustering_sim repository](https://github.com/gregorkrz/jetclustering_sim) for instructions on generating Delphes simulation data.
|
| 136 |
+
|
| 137 |
+
### Preprocessing Delphes Data
|
| 138 |
+
|
| 139 |
+
Preprocess your Delphes data using the provided SLURM jobs:
|
| 140 |
+
|
| 141 |
+
```bash
|
| 142 |
+
# For QCD training data
|
| 143 |
+
sbatch jobs/preprocess_v3_Delphes_QCDtrain.slurm
|
| 144 |
+
|
| 145 |
+
# For QCD evaluation data
|
| 146 |
+
sbatch jobs/preprocess_v3_Delphes_QCDEval.slurm
|
| 147 |
+
|
| 148 |
+
# For pile-up (PU) data
|
| 149 |
+
sbatch jobs/preprocess_v3_Delphes_PU_PFfix_Train.slurm
|
| 150 |
+
sbatch jobs/preprocess_v3_Delphes_PU_PFfix.slurm
|
| 151 |
+
```
|
| 152 |
+
|
| 153 |
+
**Important**: Update your local `env.sh` file before running preprocessing jobs!
|
| 154 |
+
|
| 155 |
+
### Download Preprocessed Datasets
|
| 156 |
+
|
| 157 |
+
Preprocessed datasets are available at:
|
| 158 |
+
- **Hugging Face Datasets**: [https://huggingface.co/datasets/gregorkrzmanc/jetclustering](https://huggingface.co/datasets/gregorkrzmanc/jetclustering)
|
| 159 |
+
|
| 160 |
+
Download and place them in the `preprocessed_data/` folder.
|
| 161 |
+
|
| 162 |
+
### Storage Management
|
| 163 |
+
|
| 164 |
+
To copy results to Storage Element (SE) and free up local storage:
|
| 165 |
+
|
| 166 |
+
```bash
|
| 167 |
+
rsync -avz -e "ssh" /work/gkrzmanc/jetclustering/results/ /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/results
|
| 168 |
+
```
|
| 169 |
+
|
| 170 |
+
The system automatically falls back to `SVJ_RESULTS_ROOT_FALLBACK` when files aren't found in the primary location.
|
| 171 |
+
|
| 172 |
+
## Training
|
| 173 |
+
|
| 174 |
+
### Base Model Training
|
| 175 |
+
|
| 176 |
+
The base clustering model is trained on m=900 GeV, r_inv=0.3 for 50k steps:
|
| 177 |
+
|
| 178 |
+
```bash
|
| 179 |
+
# Training scripts are located in:
|
| 180 |
+
jobs/base_training/
|
| 181 |
+
```
|
| 182 |
+
|
| 183 |
+
### Extended Training
|
| 184 |
+
|
| 185 |
+
For models trained with additional steps (GP, GP_IRC_S, GP_IRC_SN variants with +25k steps):
|
| 186 |
+
|
| 187 |
+
```bash
|
| 188 |
+
jobs/base_training_different_datasets/
|
| 189 |
+
```
|
| 190 |
+
|
| 191 |
+
These scripts load the base model using `--load-model-weights` and continue training.
|
| 192 |
+
|
| 193 |
+
**Important Configuration Note**:
|
| 194 |
+
- Switch between `GP_IRC_SN` and `GP_IRC_S` by modifying line `if i % 2: # Every second one:` in `dataset/dataset.py`
|
| 195 |
+
- Set to `if i % 2:` for GP_IRC_SN
|
| 196 |
+
- Set to `if not (i % 2):` for GP_IRC_S
|
| 197 |
+
|
| 198 |
+
### Training on Different Datasets
|
| 199 |
+
|
| 200 |
+
Scripts for training on various dataset combinations:
|
| 201 |
+
|
| 202 |
+
```bash
|
| 203 |
+
jobs/base_training_different_datasets/aug/ # Augmented datasets
|
| 204 |
+
```
|
| 205 |
+
|
| 206 |
+
## Evaluation
|
| 207 |
+
|
| 208 |
+
### Automated Evaluation Pipeline
|
| 209 |
+
|
| 210 |
+
The evaluation process consists of two stages:
|
| 211 |
+
|
| 212 |
+
#### Stage 1: GPU Evaluation
|
| 213 |
+
|
| 214 |
+
Generate evaluation jobs for a specific checkpoint:
|
| 215 |
+
|
| 216 |
+
```bash
|
| 217 |
+
python -m scripts.generate_test_jobs \
|
| 218 |
+
-template t3 \
|
| 219 |
+
-run Transformer_training_40k_5_64_4_2025_01_22_15_55_39 \
|
| 220 |
+
-step 10000 \
|
| 221 |
+
-tag params_study
|
| 222 |
+
```
|
| 223 |
+
|
| 224 |
+
**Parameters**:
|
| 225 |
+
- `-template`: Job template (e.g., `t3`, `vega`)
|
| 226 |
+
- `-run`: Training run identifier
|
| 227 |
+
- `-step`: Checkpoint step (counts from training start)
|
| 228 |
+
- `-tag`: Study identifier for grouping evaluations
|
| 229 |
+
- `-os`: Path to objectness score checkpoint (optional, not used in final paper)
|
| 230 |
+
- `-pl`: Evaluate on parton-level particles
|
| 231 |
+
- `-gl`: Evaluate on gen-level particles
|
| 232 |
+
- `--steps-from-zero`: Disable automatic checkpoint detection from previous runs
|
| 233 |
+
|
| 234 |
+
**Checkpoint Resolution**:
|
| 235 |
+
- The script automatically detects if training was restarted from a checkpoint
|
| 236 |
+
- It loads the appropriate checkpoint from previous runs if needed
|
| 237 |
+
- Use `--steps-from-zero` to disable this behavior
|
| 238 |
+
|
| 239 |
+
**Helper Script**: Use `notebooks/gen_test_job_cmd_gen.py` to generate evaluation commands interactively.
|
| 240 |
+
|
| 241 |
+
#### Stage 2: CPU Evaluation and Analysis
|
| 242 |
+
|
| 243 |
+
After GPU evaluation completes, run analysis and plotting:
|
| 244 |
+
|
| 245 |
+
```bash
|
| 246 |
+
python -m scripts.test_plot_jobs \
|
| 247 |
+
--tag params_study \
|
| 248 |
+
--input <input_dataset>
|
| 249 |
+
```
|
| 250 |
+
|
| 251 |
+
**Additional Flags**:
|
| 252 |
+
- `--submit-AKX`: Spawn Anti-kt evaluation jobs
|
| 253 |
+
- `-pl`: For parton-level evaluation
|
| 254 |
+
- `-gl`: For gen-level evaluation
|
| 255 |
+
- `-ow`: Overwrite existing results
|
| 256 |
+
- `-pt <cutoff>`: Run pT cutoff studies (e.g., `-pt 90`)
|
| 257 |
+
|
| 258 |
+
**Evaluation Workflow**:
|
| 259 |
+
1. Run GPU evaluation for each dataset
|
| 260 |
+
2. Run CPU evaluation/analysis (4 times per dataset: 3 for AK variants + 1 for GPU results)
|
| 261 |
+
3. Results include `run_config.pkl` for later metric analysis
|
| 262 |
+
|
| 263 |
+
### pT Cutoff Studies
|
| 264 |
+
|
| 265 |
+
To study performance at different pT cutoffs:
|
| 266 |
+
|
| 267 |
+
```bash
|
| 268 |
+
python -m scripts.test_plot_jobs --tag params_study --input <dataset> -pt 90
|
| 269 |
+
```
|
| 270 |
+
|
| 271 |
+
This creates results with suffix `_pt_90.0`. Generate plots comparing metrics vs. pT cutoff:
|
| 272 |
+
|
| 273 |
+
```bash
|
| 274 |
+
python -m scripts/metrics_plots_vs_pt_cutoff.py
|
| 275 |
+
```
|
| 276 |
+
|
| 277 |
+
## Visualization
|
| 278 |
+
|
| 279 |
+
### Generating Evaluation Plots
|
| 280 |
+
|
| 281 |
+
Produce comprehensive evaluation plots:
|
| 282 |
+
|
| 283 |
+
```bash
|
| 284 |
+
python -m scripts.plot_eval_count_matched_quarks --input <input_directory>
|
| 285 |
+
```
|
| 286 |
+
|
| 287 |
+
**Input Directory**: Points to the directory produced by `test_plot_jobs` (named after the tag).
|
| 288 |
+
|
| 289 |
+
**Configuration**: Modify the dictionary around line 320 in the script to map training run IDs to standardized names (e.g., `LGATr_GP_IRC_SN`).
|
| 290 |
+
|
| 291 |
+
### Metric Analysis
|
| 292 |
+
|
| 293 |
+
Use scripts in `scripts/` to generate joint plots of:
|
| 294 |
+
- F1 score
|
| 295 |
+
- Precision
|
| 296 |
+
- Recall
|
| 297 |
+
- Other performance metrics
|
| 298 |
+
|
| 299 |
+
The `run_config.pkl` files generated during evaluation can be used to create plots comparing:
|
| 300 |
+
- Metrics vs. number of parameters
|
| 301 |
+
- Metrics vs. model architecture
|
| 302 |
+
- Metrics vs. training duration
|
| 303 |
+
|
| 304 |
+
## Pre-trained Models
|
| 305 |
+
|
| 306 |
+
### Model Weights
|
| 307 |
+
|
| 308 |
+
Pre-trained model weights are available at:
|
| 309 |
+
- **Hugging Face Model Hub**: [https://huggingface.co/gregorkrzmanc/jetclustering/tree/main](https://huggingface.co/gregorkrzmanc/jetclustering/tree/main)
|
| 310 |
+
|
| 311 |
+
### Weights & Biases Runs
|
| 312 |
+
|
| 313 |
+
Training runs and metrics are logged at:
|
| 314 |
+
- **WandB Project**: [https://wandb.ai/fcc_ml/svj_clustering](https://wandb.ai/fcc_ml/svj_clustering)
|
| 315 |
+
|
| 316 |
+
**Setup**: Add your WandB API key to `env.sh`:
|
| 317 |
+
|
| 318 |
+
```bash
|
| 319 |
+
export WANDB_API_KEY="your_api_key_here"
|
| 320 |
+
```
|
| 321 |
+
|
| 322 |
+
## Project Structure
|
| 323 |
+
|
| 324 |
+
```
|
| 325 |
+
jetclustering/
|
| 326 |
+
├── app.py # Gradio demo interface
|
| 327 |
+
├── Dockerfile # Demo container
|
| 328 |
+
├── Dockerfile_training # Training container
|
| 329 |
+
├── env.sh # Environment variables
|
| 330 |
+
├── requirements.txt # Python dependencies
|
| 331 |
+
├── config_files/ # Model and dataset configurations
|
| 332 |
+
├── jobs/ # SLURM job scripts
|
| 333 |
+
│ ├── base_training/ # Base model training
|
| 334 |
+
│ ├── base_training_different_datasets/ # Extended training
|
| 335 |
+
│ └── preprocess_*.slurm # Preprocessing jobs
|
| 336 |
+
├── notebooks/ # Jupyter notebooks and helper scripts
|
| 337 |
+
├── scripts/ # Evaluation and plotting scripts
|
| 338 |
+
│ ├── generate_test_jobs.py # Generate evaluation jobs
|
| 339 |
+
│ ├── test_plot_jobs.py # Run analysis and plotting
|
| 340 |
+
│ └── plot_eval_count_matched_quarks.py # Main plotting script
|
| 341 |
+
└── src/ # Source code
|
| 342 |
+
├── data/ # Data loading utilities
|
| 343 |
+
├── dataset/ # Dataset classes
|
| 344 |
+
├── evaluation/ # Evaluation metrics
|
| 345 |
+
├── jetfinder/ # Jet finding algorithms
|
| 346 |
+
├── layers/ # Neural network layers
|
| 347 |
+
├── models/ # Model architectures
|
| 348 |
+
├── plotting/ # Visualization utilities
|
| 349 |
+
├── preprocessing/ # Data preprocessing
|
| 350 |
+
├── train.py # Training script
|
| 351 |
+
└── utils/ # Utility functions
|
| 352 |
+
```
|
app.py
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
import matplotlib.pyplot as plt
|
| 3 |
+
import numpy as np
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
from src.model_wrapper_gradio import inference
|
| 7 |
+
|
| 8 |
+
# === Dummy file-based prefill function ===
|
| 9 |
+
def prefill_event(subdataset, event_idx):
|
| 10 |
+
base_path = f"demo_datasets/{subdataset}/{event_idx}"
|
| 11 |
+
try:
|
| 12 |
+
with open(f"{base_path}.txt", "r") as f:
|
| 13 |
+
particles_data = f.read()
|
| 14 |
+
except FileNotFoundError:
|
| 15 |
+
particles_data = "pt eta phi mass charge\n"
|
| 16 |
+
|
| 17 |
+
try:
|
| 18 |
+
with open(f"{base_path}_quarks.txt", "r") as f:
|
| 19 |
+
quarks_data = f.read()
|
| 20 |
+
except FileNotFoundError:
|
| 21 |
+
quarks_data = "pt eta phi\n"
|
| 22 |
+
|
| 23 |
+
return particles_data, quarks_data
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
#from huggingface_hub import snapshot_download
|
| 27 |
+
#snapshot_download(repo_id="gregorkrzmanc/jetclustering", local_dir="models/")
|
| 28 |
+
#snapshot_download(repo_id="gregorkrzmanc/jetclustering_demo", local_dir="demo_datasets/", repo_type="dataset")
|
| 29 |
+
|
| 30 |
+
# === Interface layout ===
|
| 31 |
+
def gradio_ui():
|
| 32 |
+
with gr.Blocks() as demo:
|
| 33 |
+
gr.Markdown("## Jet Clustering Demo")
|
| 34 |
+
# now put a short text explaining that the demo is very slow and if you want to run it on your machine, you can use the following docker-compose file:
|
| 35 |
+
# version: '3.8'
|
| 36 |
+
#
|
| 37 |
+
# services:
|
| 38 |
+
# jetclustering_demo:
|
| 39 |
+
# image: gkrz/jetclustering_demo_cpu:v0
|
| 40 |
+
# ports:
|
| 41 |
+
# - "7860:7860"
|
| 42 |
+
gr.Markdown("The live demo is very slow (usually takes 1-5 minutes for a single event). If you want to run it on your machine, you can use the following docker-compose file:\n\n```yaml\nversion: '3.8'\n\nservices:\n jetclustering_demo:\n image: gkrz/jetclustering_demo_cpu:v0\n ports:\n - '7860:7860'\n```")
|
| 43 |
+
with gr.Row():
|
| 44 |
+
loss_dropdown = gr.Dropdown(choices=["GP_IRC_SN", "GP_IRC_S", "GP", "base"], label="Loss Function", value="GP_IRC_SN")
|
| 45 |
+
train_dataset_dropdown = gr.Dropdown(choices=["QCD", "900_03", "900_03+700_07", "700_07", "900_03+700_07+QCD"], label="Training Dataset", value="QCD")
|
| 46 |
+
|
| 47 |
+
with gr.Row():
|
| 48 |
+
subdataset_dropdown = gr.Dropdown(choices=[x for x in os.listdir("demo_datasets") if not x.startswith(".")], label="Subdataset", value="QCD")
|
| 49 |
+
event_idx_dropdown = gr.Dropdown(choices=list(range(20)), label="Event Index", value=15)
|
| 50 |
+
prefill_btn = gr.Button("Load Event from Dataset")
|
| 51 |
+
|
| 52 |
+
particles_text = gr.Textbox(label="Particles CSV (pt eta phi mass charge)", lines=6, interactive=True)
|
| 53 |
+
quarks_text = gr.Textbox(label="Quarks CSV (pt eta phi) - optional", lines=3, interactive=True)
|
| 54 |
+
|
| 55 |
+
process_btn = gr.Button("Run Jet Clustering")
|
| 56 |
+
gr.Markdown("### Outputs")
|
| 57 |
+
gr.Markdown("The jets with transverse momentum above 100 GeV are circled (green for AK8, blue for the model). The dark quarks are marked with red triangles. The particles are colored based on their jet (only jets with pT > 30 GeV are colored). The json objects contain the jets with pT > 30 GeV.")
|
| 58 |
+
|
| 59 |
+
image_output = gr.Plot(label="Output")
|
| 60 |
+
model_jets_output = gr.JSON(label="Model Jets")
|
| 61 |
+
antikt_jets_output = gr.JSON(label="Anti-kt Jets")
|
| 62 |
+
model_coords_output = gr.JSON(label="Model Coordinates")
|
| 63 |
+
prefill_btn.click(fn=prefill_event,
|
| 64 |
+
inputs=[subdataset_dropdown, event_idx_dropdown],
|
| 65 |
+
outputs=[particles_text, quarks_text])
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
process_btn.click(fn=inference,
|
| 69 |
+
inputs=[loss_dropdown, train_dataset_dropdown, particles_text, quarks_text],
|
| 70 |
+
outputs=[model_jets_output, antikt_jets_output, image_output, model_coords_output])
|
| 71 |
+
|
| 72 |
+
return demo
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
demo = gradio_ui()
|
| 76 |
+
demo.launch()
|
| 77 |
+
|
config_files/config_jets.yaml
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
treename: mmtree/Events;1
|
| 2 |
+
selection:
|
| 3 |
+
### use `&`, `|`, `~` for logical operations on numpy arrays
|
| 4 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 5 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7!=0)
|
| 6 |
+
#(recojet_e>=5)
|
| 7 |
+
|
| 8 |
+
test_time_selection:
|
| 9 |
+
### selection to apply at test time (i.e., when running w/ --predict)
|
| 10 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7==0)
|
| 11 |
+
#(recojet_e<5)
|
| 12 |
+
|
| 13 |
+
new_variables:
|
| 14 |
+
### [format] name: formula
|
| 15 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 16 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_etarel)
|
| 17 |
+
#sv_mask: awkward.JaggedArray.ones_like(sv_etarel)
|
| 18 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_e)
|
| 19 |
+
|
| 20 |
+
preprocess:
|
| 21 |
+
### method: [manual, auto] - whether to use manually specified parameters for variable standardization
|
| 22 |
+
### [note]: `[var]_mask` will not be transformed even if `method=auto`
|
| 23 |
+
|
| 24 |
+
inputs:
|
| 25 |
+
n_fat_jets:
|
| 26 |
+
pad_mode: wrap
|
| 27 |
+
length: 1
|
| 28 |
+
vars:
|
| 29 |
+
- [nFatJet, null]
|
| 30 |
+
# - [nJetId, null]
|
| 31 |
+
fat_jets:
|
| 32 |
+
pad_mode: wrap
|
| 33 |
+
length: 50
|
| 34 |
+
vars:
|
| 35 |
+
- [FatJet_pt, null]
|
| 36 |
+
- [FatJet_eta, null]
|
| 37 |
+
- [FatJet_phi, null]
|
| 38 |
+
- [FatJet_mass, null]
|
| 39 |
+
n_jets:
|
| 40 |
+
pad_mode: wrap
|
| 41 |
+
length: 1
|
| 42 |
+
vars:
|
| 43 |
+
- [ nJet, null ]
|
| 44 |
+
jets:
|
| 45 |
+
pad_mode: wrap
|
| 46 |
+
length: 50
|
| 47 |
+
vars:
|
| 48 |
+
- [ Jet_pt, null ]
|
| 49 |
+
- [ Jet_eta, null ]
|
| 50 |
+
- [ Jet_phi, null ]
|
| 51 |
+
- [ Jet_mass, null ]
|
| 52 |
+
n_genjets:
|
| 53 |
+
pad_mode: wrap
|
| 54 |
+
length: 1
|
| 55 |
+
vars:
|
| 56 |
+
- [n_genjet, null]
|
| 57 |
+
genjets:
|
| 58 |
+
pad_mode: wrap
|
| 59 |
+
length: 50
|
| 60 |
+
vars:
|
| 61 |
+
- [GenFatJet_pt, null]
|
| 62 |
+
- [GenFatJet_eta, null]
|
| 63 |
+
- [GenFatJet_phi, null]
|
| 64 |
+
- [GenFatJet_mass, null]
|
| 65 |
+
n_pfcands:
|
| 66 |
+
pad_mode: wrap
|
| 67 |
+
length: 1
|
| 68 |
+
vars:
|
| 69 |
+
- [ nPFCands, null ]
|
| 70 |
+
pfcands:
|
| 71 |
+
pad_mode: wrap
|
| 72 |
+
length: 750
|
| 73 |
+
vars:
|
| 74 |
+
- [PFCands_pt, null]
|
| 75 |
+
- [PFCands_eta, null]
|
| 76 |
+
- [PFCands_phi, null]
|
| 77 |
+
- [PFCands_mass, null]
|
| 78 |
+
- [PFCands_charge, null]
|
| 79 |
+
- [PFCands_pdgId, null]
|
| 80 |
+
|
| 81 |
+
pfcands_jet_mapping:
|
| 82 |
+
pad_mode: wrap
|
| 83 |
+
length: 750
|
| 84 |
+
vars:
|
| 85 |
+
- [ FatJetPFCands_jetIdx, null ]
|
| 86 |
+
- [ FatJetPFCands_pFCandsIdx, null ]
|
| 87 |
+
#n_offline_pfcands:
|
| 88 |
+
# pad_mode: wrap
|
| 89 |
+
# length: 1
|
| 90 |
+
# vars:
|
| 91 |
+
# - [ nOfflinePFCands, null ]
|
| 92 |
+
#offline_pfcands:
|
| 93 |
+
# pad_mode: wrap
|
| 94 |
+
# length: 750
|
| 95 |
+
# vars:
|
| 96 |
+
# - [ OfflinePFCands_pt, null ]
|
| 97 |
+
# - [ OfflinePFCands_eta, null ]
|
| 98 |
+
# - [ OfflinePFCands_phi, null ]
|
| 99 |
+
# - [ OfflinePFCands_mass, null ]
|
| 100 |
+
# - [ OfflinePFCands_charge, null ]
|
| 101 |
+
# - [ OfflinePFCands_pdgId, null ]
|
| 102 |
+
#offline_pfcands_jet_mapping:
|
| 103 |
+
# pad_mode: wrap
|
| 104 |
+
# length: 750
|
| 105 |
+
# vars:
|
| 106 |
+
# - [ OfflineFatJetPFCands_jetIdx, null ]
|
| 107 |
+
# - [ OfflineFatJetPFCands_pFCandsIdx, null ]
|
| 108 |
+
MET:
|
| 109 |
+
pad_mode: wrap
|
| 110 |
+
length: 1
|
| 111 |
+
vars:
|
| 112 |
+
- [ MET_pt, null ]
|
| 113 |
+
- [ MET_phi, null ]
|
| 114 |
+
- [ scouting_trig, null]
|
| 115 |
+
- [ offline_trig, null]
|
| 116 |
+
- [ veto_trig, null ]
|
| 117 |
+
n_electrons:
|
| 118 |
+
pad_mode: wrap
|
| 119 |
+
length: 1
|
| 120 |
+
vars:
|
| 121 |
+
- [ nElectron, null ]
|
| 122 |
+
n_photons:
|
| 123 |
+
pad_mode: wrap
|
| 124 |
+
length: 1
|
| 125 |
+
vars:
|
| 126 |
+
- [ nPhotons, null ]
|
| 127 |
+
n_muons:
|
| 128 |
+
pad_mode: wrap
|
| 129 |
+
length: 1
|
| 130 |
+
vars:
|
| 131 |
+
- [ nMuons, null ]
|
| 132 |
+
electrons:
|
| 133 |
+
pad_mode: wrap
|
| 134 |
+
length: 10
|
| 135 |
+
vars:
|
| 136 |
+
- [ Electron_pt, null ]
|
| 137 |
+
- [ Electron_eta, null ]
|
| 138 |
+
- [ Electron_phi, null ]
|
| 139 |
+
- [ Electron_charge, null ]
|
| 140 |
+
muons:
|
| 141 |
+
pad_mode: wrap
|
| 142 |
+
length: 10
|
| 143 |
+
vars:
|
| 144 |
+
- [ Muon_pt, null ]
|
| 145 |
+
- [ Muon_eta, null ]
|
| 146 |
+
- [ Muon_phi, null ]
|
| 147 |
+
- [ Muon_charge, null ]
|
| 148 |
+
photons:
|
| 149 |
+
pad_mode: wrap
|
| 150 |
+
length: 10
|
| 151 |
+
vars:
|
| 152 |
+
- [ Photon_pt, null ]
|
| 153 |
+
- [ Photon_eta, null ]
|
| 154 |
+
- [ Photon_phi, null ]
|
| 155 |
+
matrix_element_gen_particles:
|
| 156 |
+
pad_mode: wrap
|
| 157 |
+
length: 2
|
| 158 |
+
vars:
|
| 159 |
+
- [MatrixElementGenParticle_pt, null]
|
| 160 |
+
- [MatrixElementGenParticle_eta, null]
|
| 161 |
+
- [MatrixElementGenParticle_phi, null]
|
| 162 |
+
- [MatrixElementGenParticle_mass, null]
|
| 163 |
+
- [MatrixElementGenParticle_pdgId, null]
|
| 164 |
+
labels:
|
| 165 |
+
|
| 166 |
+
observers:
|
| 167 |
+
#- recojet_e
|
| 168 |
+
#- recojet_theta
|
| 169 |
+
#- recojet_phi
|
| 170 |
+
#- recojet_m
|
| 171 |
+
#- n_pfcand
|
| 172 |
+
|
config_files/config_jets_1.yaml
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
treename: null
|
| 2 |
+
selection:
|
| 3 |
+
### use `&`, `|`, `~` for logical operations on numpy arrays
|
| 4 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 5 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7!=0)
|
| 6 |
+
#(recojet_e>=5)
|
| 7 |
+
|
| 8 |
+
test_time_selection:
|
| 9 |
+
### selection to apply at test time (i.e., when running w/ --predict)
|
| 10 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7==0)
|
| 11 |
+
#(recojet_e<5)
|
| 12 |
+
|
| 13 |
+
new_variables:
|
| 14 |
+
### [format] name: formula
|
| 15 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 16 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_etarel)
|
| 17 |
+
#sv_mask: awkward.JaggedArray.ones_like(sv_etarel)
|
| 18 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_e)
|
| 19 |
+
|
| 20 |
+
preprocess:
|
| 21 |
+
### method: [manual, auto] - whether to use manually specified parameters for variable standardization
|
| 22 |
+
### [note]: `[var]_mask` will not be transformed even if `method=auto`
|
| 23 |
+
|
| 24 |
+
inputs:
|
| 25 |
+
n_fat_jets:
|
| 26 |
+
pad_mode: wrap
|
| 27 |
+
length: 1
|
| 28 |
+
vars:
|
| 29 |
+
- [nFatJet, null]
|
| 30 |
+
# - [nJetId, null]
|
| 31 |
+
fat_jets:
|
| 32 |
+
pad_mode: wrap
|
| 33 |
+
length: 50
|
| 34 |
+
vars:
|
| 35 |
+
- [FatJet_pt, null]
|
| 36 |
+
- [FatJet_eta, null]
|
| 37 |
+
- [FatJet_phi, null]
|
| 38 |
+
- [FatJet_mass, null]
|
| 39 |
+
n_jets:
|
| 40 |
+
pad_mode: wrap
|
| 41 |
+
length: 1
|
| 42 |
+
vars:
|
| 43 |
+
- [ nJet, null ]
|
| 44 |
+
jets:
|
| 45 |
+
pad_mode: wrap
|
| 46 |
+
length: 50
|
| 47 |
+
vars:
|
| 48 |
+
- [ Jet_pt, null ]
|
| 49 |
+
- [ Jet_eta, null ]
|
| 50 |
+
- [ Jet_phi, null ]
|
| 51 |
+
- [ Jet_mass, null ]
|
| 52 |
+
n_genjets:
|
| 53 |
+
pad_mode: wrap
|
| 54 |
+
length: 1
|
| 55 |
+
vars:
|
| 56 |
+
- [n_genjet, null]
|
| 57 |
+
genjets:
|
| 58 |
+
pad_mode: wrap
|
| 59 |
+
length: 50
|
| 60 |
+
vars:
|
| 61 |
+
- [GenFatJet_pt, null]
|
| 62 |
+
- [GenFatJet_eta, null]
|
| 63 |
+
- [GenFatJet_phi, null]
|
| 64 |
+
- [GenFatJet_mass, null]
|
| 65 |
+
n_pfcands:
|
| 66 |
+
pad_mode: wrap
|
| 67 |
+
length: 1
|
| 68 |
+
vars:
|
| 69 |
+
- [ nPFCands, null ]
|
| 70 |
+
pfcands:
|
| 71 |
+
pad_mode: wrap
|
| 72 |
+
length: 750
|
| 73 |
+
vars:
|
| 74 |
+
- [PFCands_pt, null]
|
| 75 |
+
- [PFCands_eta, null]
|
| 76 |
+
- [PFCands_phi, null]
|
| 77 |
+
- [PFCands_mass, null]
|
| 78 |
+
- [PFCands_charge, null]
|
| 79 |
+
- [PFCands_pdgId, null]
|
| 80 |
+
|
| 81 |
+
pfcands_jet_mapping:
|
| 82 |
+
pad_mode: wrap
|
| 83 |
+
length: 750
|
| 84 |
+
vars:
|
| 85 |
+
- [ FatJetPFCands_jetIdx, null ]
|
| 86 |
+
- [ FatJetPFCands_pFCandsIdx, null ]
|
| 87 |
+
#n_offline_pfcands:
|
| 88 |
+
# pad_mode: wrap
|
| 89 |
+
# length: 1
|
| 90 |
+
# vars:
|
| 91 |
+
# - [ nOfflinePFCands, null ]
|
| 92 |
+
#offline_pfcands:
|
| 93 |
+
# pad_mode: wrap
|
| 94 |
+
# length: 750
|
| 95 |
+
# vars:
|
| 96 |
+
# - [ OfflinePFCands_pt, null ]
|
| 97 |
+
# - [ OfflinePFCands_eta, null ]
|
| 98 |
+
# - [ OfflinePFCands_phi, null ]
|
| 99 |
+
# - [ OfflinePFCands_mass, null ]
|
| 100 |
+
# - [ OfflinePFCands_charge, null ]
|
| 101 |
+
# - [ OfflinePFCands_pdgId, null ]
|
| 102 |
+
#offline_pfcands_jet_mapping:
|
| 103 |
+
# pad_mode: wrap
|
| 104 |
+
# length: 750
|
| 105 |
+
# vars:
|
| 106 |
+
# - [ OfflineFatJetPFCands_jetIdx, null ]
|
| 107 |
+
# - [ OfflineFatJetPFCands_pFCandsIdx, null ]
|
| 108 |
+
MET:
|
| 109 |
+
pad_mode: wrap
|
| 110 |
+
length: 1
|
| 111 |
+
vars:
|
| 112 |
+
- [ MET_pt, null ]
|
| 113 |
+
- [ MET_phi, null ]
|
| 114 |
+
- [ scouting_trig, null]
|
| 115 |
+
- [ offline_trig, null]
|
| 116 |
+
- [ veto_trig, null ]
|
| 117 |
+
n_electrons:
|
| 118 |
+
pad_mode: wrap
|
| 119 |
+
length: 1
|
| 120 |
+
vars:
|
| 121 |
+
- [ nElectron, null ]
|
| 122 |
+
n_photons:
|
| 123 |
+
pad_mode: wrap
|
| 124 |
+
length: 1
|
| 125 |
+
vars:
|
| 126 |
+
- [ nPhotons, null ]
|
| 127 |
+
n_muons:
|
| 128 |
+
pad_mode: wrap
|
| 129 |
+
length: 1
|
| 130 |
+
vars:
|
| 131 |
+
- [ nMuons, null ]
|
| 132 |
+
electrons:
|
| 133 |
+
pad_mode: wrap
|
| 134 |
+
length: 10
|
| 135 |
+
vars:
|
| 136 |
+
- [ Electron_pt, null ]
|
| 137 |
+
- [ Electron_eta, null ]
|
| 138 |
+
- [ Electron_phi, null ]
|
| 139 |
+
- [ Electron_charge, null ]
|
| 140 |
+
muons:
|
| 141 |
+
pad_mode: wrap
|
| 142 |
+
length: 10
|
| 143 |
+
vars:
|
| 144 |
+
- [ Muon_pt, null ]
|
| 145 |
+
- [ Muon_eta, null ]
|
| 146 |
+
- [ Muon_phi, null ]
|
| 147 |
+
- [ Muon_charge, null ]
|
| 148 |
+
photons:
|
| 149 |
+
pad_mode: wrap
|
| 150 |
+
length: 10
|
| 151 |
+
vars:
|
| 152 |
+
- [ Photon_pt, null ]
|
| 153 |
+
- [ Photon_eta, null ]
|
| 154 |
+
- [ Photon_phi, null ]
|
| 155 |
+
matrix_element_gen_particles:
|
| 156 |
+
pad_mode: wrap
|
| 157 |
+
length: 2
|
| 158 |
+
vars:
|
| 159 |
+
- [MatrixElementGenParticle_pt, null]
|
| 160 |
+
- [MatrixElementGenParticle_eta, null]
|
| 161 |
+
- [MatrixElementGenParticle_phi, null]
|
| 162 |
+
- [MatrixElementGenParticle_mass, null]
|
| 163 |
+
- [MatrixElementGenParticle_pdgId, null]
|
| 164 |
+
final_gen_particles:
|
| 165 |
+
pad_mode: wrap
|
| 166 |
+
length: 2000
|
| 167 |
+
vars:
|
| 168 |
+
- [FinalGenParticle_pt, null]
|
| 169 |
+
- [FinalGenParticle_eta, null]
|
| 170 |
+
- [FinalGenParticle_phi, null]
|
| 171 |
+
- [FinalGenParticle_mass, null]
|
| 172 |
+
- [FinalGenParticle_pdgId, null]
|
| 173 |
+
- [FinalGenParticle_status, null]
|
| 174 |
+
final_parton_level_particles:
|
| 175 |
+
pad_mode: wrap
|
| 176 |
+
length: 400
|
| 177 |
+
vars:
|
| 178 |
+
- [FinalPartonLevelParticle_pt, null]
|
| 179 |
+
- [FinalPartonLevelParticle_eta, null]
|
| 180 |
+
- [FinalPartonLevelParticle_phi, null]
|
| 181 |
+
- [FinalPartonLevelParticle_mass, null]
|
| 182 |
+
- [FinalPartonLevelParticle_pdgId, null]
|
| 183 |
+
- [FinalPartonLevelParticle_status, null]
|
| 184 |
+
|
| 185 |
+
observers:
|
| 186 |
+
#- recojet_e
|
| 187 |
+
#- recojet_theta
|
| 188 |
+
#- recojet_phi
|
| 189 |
+
#- recojet_m
|
| 190 |
+
#- n_pfcand
|
| 191 |
+
|
config_files/config_jets_1_delphes.yaml
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
treename: Delphes;1
|
| 2 |
+
selection:
|
| 3 |
+
### use `&`, `|`, `~` for logical operations on numpy arrays
|
| 4 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 5 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7!=0)
|
| 6 |
+
#(recojet_e>=5)
|
| 7 |
+
|
| 8 |
+
test_time_selection:
|
| 9 |
+
### selection to apply at test time (i.e., when running w/ --predict)
|
| 10 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7==0)
|
| 11 |
+
#(recojet_e<5)
|
| 12 |
+
|
| 13 |
+
new_variables:
|
| 14 |
+
### [format] name: formula
|
| 15 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 16 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_etarel)
|
| 17 |
+
#sv_mask: awkward.JaggedArray.ones_like(sv_etarel)
|
| 18 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_e)
|
| 19 |
+
|
| 20 |
+
preprocess:
|
| 21 |
+
### method: [manual, auto] - whether to use manually specified parameters for variable standardization
|
| 22 |
+
### [note]: `[var]_mask` will not be transformed even if `method=auto`
|
| 23 |
+
|
| 24 |
+
inputs:
|
| 25 |
+
n_CH:
|
| 26 |
+
pad_mode: wrap
|
| 27 |
+
length: 1
|
| 28 |
+
vars:
|
| 29 |
+
- [ EFlowTrack_size, null ]
|
| 30 |
+
n_NH:
|
| 31 |
+
pad_mode: wrap
|
| 32 |
+
length: 1
|
| 33 |
+
vars:
|
| 34 |
+
- [ EFlowNeutralHadron_size, null ]
|
| 35 |
+
n_photon:
|
| 36 |
+
pad_mode: wrap
|
| 37 |
+
length: 1
|
| 38 |
+
vars:
|
| 39 |
+
- [ EFlowPhoton_size, null ]
|
| 40 |
+
CH:
|
| 41 |
+
pad_mode: wrap
|
| 42 |
+
length: 1500
|
| 43 |
+
vars:
|
| 44 |
+
- [EFlowTrack.Eta, null]
|
| 45 |
+
- [EFlowTrack.Phi, null]
|
| 46 |
+
- [EFlowTrack.PT, null]
|
| 47 |
+
- [EFlowTrack.Mass, null]
|
| 48 |
+
- [EFlowTrack.Charge, null]
|
| 49 |
+
NH:
|
| 50 |
+
pad_mode: wrap
|
| 51 |
+
length: 1500
|
| 52 |
+
vars:
|
| 53 |
+
- [EFlowNeutralHadron.Eta, null]
|
| 54 |
+
- [EFlowNeutralHadron.Phi, null]
|
| 55 |
+
- [EFlowNeutralHadron.ET, null]
|
| 56 |
+
EFlowPhoton:
|
| 57 |
+
pad_mode: wrap
|
| 58 |
+
length: 1500
|
| 59 |
+
vars:
|
| 60 |
+
- [EFlowPhoton.Eta, null]
|
| 61 |
+
- [EFlowPhoton.Phi, null]
|
| 62 |
+
- [EFlowPhoton.ET, null]
|
| 63 |
+
GenParticles:
|
| 64 |
+
pad_mode: wrap
|
| 65 |
+
length: 7500
|
| 66 |
+
vars:
|
| 67 |
+
- [Particle.Eta, null]
|
| 68 |
+
- [Particle.Phi, null]
|
| 69 |
+
- [Particle.PT, null]
|
| 70 |
+
- [Particle.Charge, null]
|
| 71 |
+
- [Particle.Mass, null]
|
| 72 |
+
- [Particle.PID, null]
|
| 73 |
+
- [Particle.Status, null]
|
| 74 |
+
NParticles:
|
| 75 |
+
pad_mode: wrap
|
| 76 |
+
length: 1
|
| 77 |
+
vars:
|
| 78 |
+
- [Particle_size, null]
|
| 79 |
+
observers:
|
| 80 |
+
#- recojet_e
|
| 81 |
+
#- recojet_theta
|
| 82 |
+
#- recojet_phi
|
| 83 |
+
#- recojet_m
|
| 84 |
+
#- n_pfcand
|
| 85 |
+
|
| 86 |
+
|
config_files/config_jets_2_delphes.yaml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
treename: Delphes;1
|
| 2 |
+
selection:
|
| 3 |
+
### use `&`, `|`, `~` for logical operations on numpy arrays
|
| 4 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 5 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7!=0)
|
| 6 |
+
#(recojet_e>=5)
|
| 7 |
+
|
| 8 |
+
test_time_selection:
|
| 9 |
+
### selection to apply at test time (i.e., when running w/ --predict)
|
| 10 |
+
#(jet_tightId==1) & (jet_no<2) & (fj_pt>200) & (fj_pt<2500) & (((sample_isQCD==0) & (fj_isQCD==0)) | ((sample_isQCD==1) & (fj_isQCD==1))) & (event_no%7==0)
|
| 11 |
+
#(recojet_e<5)
|
| 12 |
+
|
| 13 |
+
new_variables:
|
| 14 |
+
### [format] name: formula
|
| 15 |
+
### can use functions from `math`, `np` (numpy), and `awkward` in the expression
|
| 16 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_etarel)
|
| 17 |
+
#sv_mask: awkward.JaggedArray.ones_like(sv_etarel)
|
| 18 |
+
#pfcand_mask: awkward.JaggedArray.ones_like(pfcand_e)
|
| 19 |
+
|
| 20 |
+
preprocess:
|
| 21 |
+
### method: [manual, auto] - whether to use manually specified parameters for variable standardization
|
| 22 |
+
### [note]: `[var]_mask` will not be transformed even if `method=auto`
|
| 23 |
+
|
| 24 |
+
inputs:
|
| 25 |
+
n_PFCands:
|
| 26 |
+
pad_mode: wrap
|
| 27 |
+
length: 1
|
| 28 |
+
vars:
|
| 29 |
+
- [ ParticleFlowCandidate_size, null ]
|
| 30 |
+
PFCands:
|
| 31 |
+
pad_mode: wrap
|
| 32 |
+
length: 1500
|
| 33 |
+
vars:
|
| 34 |
+
- [ParticleFlowCandidate.Eta, null]
|
| 35 |
+
- [ParticleFlowCandidate.Phi, null]
|
| 36 |
+
- [ParticleFlowCandidate.PT, null]
|
| 37 |
+
- [ParticleFlowCandidate.Mass, null]
|
| 38 |
+
- [ParticleFlowCandidate.Charge, null]
|
| 39 |
+
- [ParticleFlowCandidate.PID, null]
|
| 40 |
+
GenParticles:
|
| 41 |
+
pad_mode: wrap
|
| 42 |
+
length: 7500
|
| 43 |
+
vars:
|
| 44 |
+
- [Particle.Eta, null]
|
| 45 |
+
- [Particle.Phi, null]
|
| 46 |
+
- [Particle.PT, null]
|
| 47 |
+
- [Particle.Charge, null]
|
| 48 |
+
- [Particle.Mass, null]
|
| 49 |
+
- [Particle.PID, null]
|
| 50 |
+
- [Particle.Status, null]
|
| 51 |
+
NParticles:
|
| 52 |
+
pad_mode: wrap
|
| 53 |
+
length: 1
|
| 54 |
+
vars:
|
| 55 |
+
- [Particle_size, null]
|
| 56 |
+
observers:
|
| 57 |
+
#- recojet_e
|
| 58 |
+
#- recojet_theta
|
| 59 |
+
#- recojet_phi
|
| 60 |
+
#- recojet_m
|
| 61 |
+
#- n_pfcand
|
| 62 |
+
|
| 63 |
+
|
container_shell.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 2 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 3 |
+
singularity shell -B /work/gkrzmanc/ --nv docker://dologarcia/gatr:v0
|
| 4 |
+
|
docker-compose.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
app:
|
| 5 |
+
image: gkrz/jetclustering_demo:v0
|
| 6 |
+
ports:
|
| 7 |
+
- "7860:7860"
|
env.sh
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# For CERN machines
|
| 2 |
+
#export SVJ_CODE_ROOT="/eos/home-g/gkrzmanc/jetclustering/code"
|
| 3 |
+
#export SVJ_DATA_ROOT="/eos/home-g/gkrzmanc/jetclustering/data"
|
| 4 |
+
#export SVJ_RESULTS_ROOT="/eos/home-g/gkrzmanc/jetclustering/results"
|
| 5 |
+
#export SVJ_PREPROCESSED_DATA_ROOT="/eos/home-g/gkrzmanc/jetclustering/preprocessed_data"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
# For PSI T3
|
| 9 |
+
export SVJ_CODE_ROOT="/work/gkrzmanc/jetclustering/code"
|
| 10 |
+
#export SVJ_DATA_ROOT="/work/gkrzmanc/jetclustering/data"
|
| 11 |
+
export SVJ_DATA_ROOT="/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/data"
|
| 12 |
+
export SVJ_RESULTS_ROOT="/work/gkrzmanc/jetclustering/results"
|
| 13 |
+
export SVJ_PREPROCESSED_DATA_ROOT="/work/gkrzmanc/jetclustering/preprocessed_data"
|
| 14 |
+
#export SVJ_PREPROCESSED_DATA_ROOT="/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/preprocessed_data"
|
| 15 |
+
export SVJ_WANDB_ENTITY="fcc_ml"
|
| 16 |
+
export SVJ_RESULTS_ROOT_FALLBACK="/pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc/jetclustering/results"
|
| 17 |
+
|
jobs/BigTraining_2_spatial_part_only_t3.slurm
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --partition=qgpu # Specify the partition
|
| 3 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 4 |
+
#SBATCH --mem=3000 # Request 10GB of memory
|
| 5 |
+
#SBATCH --time=00:10:00
|
| 6 |
+
#SBATCH --job-name=SVJtr3 # Name the job
|
| 7 |
+
#SBATCH --output=jobs/BigTraining_output.log # Redirect stdout to a log file
|
| 8 |
+
#SBATCH --error=jobs/BigTraining_error.log # Redirect stderr to a log file
|
| 9 |
+
#SBATCH --gres=gpu:1
|
| 10 |
+
source env.sh
|
| 11 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 12 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 13 |
+
nvidia-smi
|
| 14 |
+
|
| 15 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m src.train -train scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1100_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1500_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1100_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1500_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1100_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1500_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1200_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-700_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1200_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-700_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1200_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-700_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1300_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-800_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1300_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-800_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1300_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-800_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1400_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-900_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1400_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-900_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1400_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-900_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 -val scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1000_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1500_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-900_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1000_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1500_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-800_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-900_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1000_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-800_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-900_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1500_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-800_mDark-20_rinv-0.7 -net src/models/LGATr/lgatr.py -bs 64 --gpus 0 --run-name Train_LGATr_SB_spatial_part_only --val-dataset-size 4000 --num-epochs 1000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --spatial-part-only --validation-steps 2000 --num-workers 0
|
jobs/BigTraining_2_spatial_part_only_vega.slurm
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --job-name="SVJtrAll"
|
| 3 |
+
#SBATCH --time=48:00:00
|
| 4 |
+
#SBATCH --nodes=1
|
| 5 |
+
#SBATCH --gres=gpu:1
|
| 6 |
+
#SBATCH --ntasks-per-core=1
|
| 7 |
+
#SBATCH --ntasks-per-node=1
|
| 8 |
+
#SBATCH --cpus-per-task=2
|
| 9 |
+
#SBATCH --partition=gpu
|
| 10 |
+
#SBATCH --mem=25GB
|
| 11 |
+
#SBATCH --output=jobs/big_training_2_output1.log
|
| 12 |
+
#SBATCH --error=jobs/big_training_2_error1.log
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
source env.sh
|
| 16 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 17 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 18 |
+
nvidia-smi
|
| 19 |
+
srun singularity exec -B /ceph/hpc/home/krzmancg --nv docker://gkrz/lgatr:v3 python -m src.train -train scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1100_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1500_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1100_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1500_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1100_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1500_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1200_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-700_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1200_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-700_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1200_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-700_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1300_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-800_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1300_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-800_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1300_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-800_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1400_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-900_mDark-20_rinv-0.3_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1400_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-900_mDark-20_rinv-0.5_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-1400_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 scouting_PFNano_signals2/SVJ_hadronic_std3/s-channel_mMed-900_mDark-20_rinv-0.7_alpha-peak_13TeV-pythia8_n-2000 -val scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1000_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1500_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-900_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1000_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1500_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-800_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-900_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1000_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-800_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-900_mDark-20_rinv-0.7 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-1500_mDark-20_rinv-0.3 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.5 scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-800_mDark-20_rinv-0.7 -net src/models/LGATr/lgatr.py -bs 256 --gpus 0 --run-name Train_LGATr_SB_All_data_CONT --val-dataset-size 4000 --num-epochs 1000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --spatial-part-only --validation-steps 1000 --load-model-weights train/Train_LGATr_SB_All_data_2025_01_14_13_19_34/step_5000_epoch_1.ckpt
|
| 20 |
+
|
| 21 |
+
# sbatch jobs/BigTraining_2_spatial_part_only_vega.slurm
|
jobs/IRC_training/Delphes_training_t3_NoPID_augment.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.7 -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name LGATr_Aug --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_10_16_64_0.8_2025_05_03_18_35_53_134/step_70000_epoch_16.ckpt --num-workers 0
|
| 19 |
+
|
| 20 |
+
exit 0
|
| 21 |
+
EOT
|
| 22 |
+
|
| 23 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 24 |
+
# bash jobs/IRC_training/Delphes_training_t3_NoPID_augment.sh
|
jobs/IRC_training/Delphes_training_t3_NoPID_augment_IRC.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_Aug_IRCSplit_CONT --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/Delphes_Aug_IRCSplit_2025_05_06_10_09_00_567/step_8820_epoch_1.ckpt --num-workers 0 -irc
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
exit 0
|
| 21 |
+
EOT
|
| 22 |
+
|
| 23 |
+
# bash jobs/IRC_training/Delphes_training_t3_NoPID_augment_IRC.sh
|
| 24 |
+
|
jobs/IRC_training/Delphes_training_t3_NoPID_augment_IRC_SN.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_Aug_IRC_Split_and_Noise_CONT --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --num-workers 0 -irc --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_10_16_64_0.8_2025_05_03_18_35_53_134/step_70000_epoch_16.ckpt
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
exit 0
|
| 21 |
+
EOT
|
| 22 |
+
|
| 23 |
+
# bash jobs/IRC_training/Delphes_training_t3_NoPID_augment_IRC_SN.sh
|
| 24 |
+
|
jobs/IRC_training/start_at_30k/Delphes_training_t3_NoPID_augment.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.7 -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name LGATr_Aug_30k --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_10_16_64_0.8_2025_05_03_18_35_53_134/step_30000_epoch_7.ckpt --num-workers 0
|
| 19 |
+
|
| 20 |
+
exit 0
|
| 21 |
+
EOT
|
| 22 |
+
|
| 23 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 24 |
+
# bash jobs/IRC_training/start_at_30k/Delphes_training_t3_NoPID_augment.sh
|
jobs/IRC_training/start_at_30k/Delphes_training_t3_NoPID_augment_IRC.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_Aug_IRCSplit_30k_from10k --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_10_16_64_0.8_2025_05_03_18_35_53_134/step_30000_epoch_7.ckpt --num-workers 0 -irc
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
exit 0
|
| 23 |
+
EOT
|
| 24 |
+
|
| 25 |
+
# bash jobs/IRC_training/start_at_30k/Delphes_training_t3_NoPID_augment_IRC.sh
|
| 26 |
+
####
|
jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val scouting_PFNano_signals2/SVJ_hadronic_std2/s-channel_mMed-700_mDark-20_rinv-0.7 -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name LGATr_Aug_50k --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_10_16_64_0.8_2025_05_03_18_35_53_134/step_50000_epoch_12.ckpt --num-workers 0
|
| 19 |
+
|
| 20 |
+
exit 0
|
| 21 |
+
EOT
|
| 22 |
+
|
| 23 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 24 |
+
# bash jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment.sh
|
jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRC.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_Aug_IRCSplit_50k --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_10_16_64_0.8_2025_05_03_18_35_53_134/step_50000_epoch_12.ckpt --num-workers 0 -irc
|
| 18 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_Aug_IRCSplit_50k_from10k --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/Delphes_Aug_IRCSplit_50k_2025_05_09_15_22_38_956/step_13620_epoch_2.ckpt --num-workers 0 -irc
|
| 19 |
+
|
| 20 |
+
-irc
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# bash jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRC.sh
|
| 25 |
+
####
|
jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRCSN.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_Aug_IRCSplit_50k_SN_from3kFT --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/Delphes_Aug_IRCSplit_50k_SN_2025_05_12_13_57_45_477/step_3060_epoch_1.ckpt --num-workers 0 -irc
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# bash jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRCSN.sh
|
| 25 |
+
####
|
jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRC_noaug.sh
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_augGPU.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_augGPU.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
export PATH=/t3home/gkrzmanc/.local/lib/site-packages:$PATH
|
| 17 |
+
nvidia-smi
|
| 18 |
+
env
|
| 19 |
+
echo " ---- end env ---- "
|
| 20 |
+
|
| 21 |
+
srun singularity exec -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -B /t3home/gkrzmanc -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -c "import fastjet"
|
| 22 |
+
echo "Hello"
|
| 23 |
+
srun singularity exec -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -B /t3home/gkrzmanc -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_NOAug_IRCSplit_50k_cont --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --load-model-weights train/Delphes_NOAug_IRCSplit_50k__2025_05_13_09_56_39_345/step_2460_epoch_1.ckpt --num-workers 0 -irc
|
| 24 |
+
|
| 25 |
+
exit 0
|
| 26 |
+
EOT
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
# bash jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRC_noaug.sh
|
| 31 |
+
####
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
jobs/IRC_training/start_at_50k/test.sh
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=short # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=00:01:00
|
| 7 |
+
#SBATCH --job-name=test1 # Name the job
|
| 8 |
+
#SBATCH --account=t3 # Specify the account
|
| 9 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 10 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 11 |
+
|
| 12 |
+
source env.sh
|
| 13 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 14 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 15 |
+
|
| 16 |
+
nvidia-smi
|
| 17 |
+
env
|
| 18 |
+
echo " ---- end env ---- "
|
| 19 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m pip install --no-input fastjet
|
| 20 |
+
|
| 21 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -c "import fastjet"
|
| 22 |
+
echo "Hello"
|
| 23 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_NOAug_IRCSplit_50k_cont --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --load-model-weights train/Delphes_NOAug_IRCSplit_50k__2025_05_13_09_56_39_345/step_2460_epoch_1.ckpt --num-workers 0 -irc
|
| 24 |
+
|
| 25 |
+
exit 0
|
| 26 |
+
EOT
|
| 27 |
+
|
| 28 |
+
# bash jobs/IRC_training/start_at_50k/test.sh
|
| 29 |
+
####
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
|
jobs/base_training/gatr_training_NoPIDDelphes.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
srun singularity exec -B /work -B /pnfs -B /t3home --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/GATr/Gatr.py -bs 20 --gpus 0 --run-name GATr_training_NoPID_Delphes_PU_CoordFix_CONT_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --load-model-weights train/GATr_training_NoPID_Delphes_PU_CoordFix_10_16_64_0.8_2025_05_05_13_06_27_898/step_50000_epoch_12.ckpt
|
| 19 |
+
|
| 20 |
+
exit 0
|
| 21 |
+
EOT
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training/gatr_training_NoPIDDelphes.sh 10 16 64 0.8
|
| 26 |
+
|
jobs/base_training/lgatr_training_NoPIDDelphes.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name LGATr_training_NoPID_Delphes_PU_PFfix_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training/lgatr_700_07.sh 10 16 64 0.8
|
| 26 |
+
|
jobs/base_training/transformer_training_NoPIDDelphes.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
srun singularity exec -B /work -B /pnfs -B /t3home --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/transformer/transformer.py -bs 20 --gpus 0 --run-name Transformer_training_NoPID_Delphes_PU_CoordFix_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid
|
| 19 |
+
|
| 20 |
+
exit 0
|
| 21 |
+
EOT
|
| 22 |
+
|
| 23 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 24 |
+
# bash jobs/vega/transformer_training_NoPIDDelphes.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/aug/lgatr_700_07.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name GP_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_10_16_64_0.8_2025_05_16_19_44_46_795/step_50000_epoch_12.ckpt
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug/lgatr_700_07.sh 10 16 64 0.8
|
| 26 |
+
|
jobs/base_training_different_datasets/aug/lgatr_700_07_and_900_03.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name GP_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_10_16_64_0.8_2025_05_16_21_04_26_991/step_50000_epoch_6.ckpt
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug/lgatr_700_07_and_900_03.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/aug/lgatr_700_07_and_900_03_and_QCD.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name GP_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_AND_QCD_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_AND_QCD_10_16_64_0.8_2025_05_16_21_04_26_937/step_50000_epoch_4.ckpt
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug/lgatr_700_07_and_900_03_and_QCD.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/aug/lgatr_QCD.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val QCDtrain_part0/qcd_test_9 -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name GP_LGATr_training_NoPID_Delphes_PU_PFfix_QCD_events_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_QCD_events_10_16_64_0.8_2025_05_16_19_46_57_48/step_50000_epoch_12.ckpt
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug/lgatr_QCD.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07.sh
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/7DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/7DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_S_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_10_16_64_0.8_2025_05_16_19_44_46_795/step_50000_epoch_12.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07.sh 10 16 64 0.8
|
| 26 |
+
|
| 27 |
+
|
jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/700and900_DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/700and900_DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_S_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_10_16_64_0.8_2025_05_16_21_04_26_991/step_50000_epoch_6.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03.sh 10 16 64 0.8
|
| 26 |
+
|
jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03_and_QCD.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Train_SB1_DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/Train_SB1_DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_S_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_AND_QCD_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_AND_QCD_10_16_64_0.8_2025_05_16_21_04_26_937/step_50000_epoch_4.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03_and_QCD.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/aug_IRC_S/lgatr_QCD.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/QCDDTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/QCDDTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val QCDtrain_part0/qcd_test_9 -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_S_LGATr_training_NoPID_Delphes_PU_PFfix_QCD_events_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_QCD_events_10_16_64_0.8_2025_05_16_19_46_57_48/step_50000_epoch_12.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 26 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_QCD.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/aug_IRC_SN/lgatr_700_07.sh
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/7DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/7DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_SN_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_10_16_64_0.8_2025_05_16_19_44_46_795/step_50000_epoch_12.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07.sh 10 16 64 0.8
|
| 26 |
+
|
| 27 |
+
|
jobs/base_training_different_datasets/aug_IRC_SN/lgatr_700_07_and_900_03.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/700and900_DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/700and900_DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_SN_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_10_16_64_0.8_2025_05_16_21_04_26_991/step_50000_epoch_6.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03.sh 10 16 64 0.8
|
| 26 |
+
|
jobs/base_training_different_datasets/aug_IRC_SN/lgatr_700_07_and_900_03_and_QCD.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Train_SB1_DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/Train_SB1_DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_SN_LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_AND_QCD_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_AND_QCD_10_16_64_0.8_2025_05_16_21_04_26_937/step_50000_epoch_4.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_700_07_and_900_03_and_QCD.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/aug_IRC_SN/lgatr_900_03.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesTrainSVJ # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/Dtr_lgatr_aug.out
|
| 11 |
+
#SBATCH --error=jobs/vega/Dtr_lgatr_aug.err
|
| 12 |
+
|
| 13 |
+
source env.sh
|
| 14 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 15 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 16 |
+
nvidia-smi
|
| 17 |
+
|
| 18 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ -B /pnfs/psi.ch/cms/trivcat/store/user/gkrzmanc -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train2_PU_PFfix_part9/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name Delphes_Aug_IRCSplit_50k_SN_from3kFT --val-dataset-size 150 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius 0.8 --num-blocks 10 -mv-ch 16 -s-ch 64 --spatial-part-only --validation-steps 60 --no-pid --augment-soft-particles --load-model-weights train/Delphes_Aug_IRCSplit_50k_SN_2025_05_12_13_57_45_477/step_3060_epoch_1.ckpt --num-workers 0 -irc
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# bash jobs/IRC_training/start_at_50k/Delphes_training_t3_NoPID_augment_IRCSN.sh
|
| 25 |
+
####
|
jobs/base_training_different_datasets/aug_IRC_SN/lgatr_QCD.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/QCDDTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/QCDDTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val QCDtrain_part0/qcd_test_9 -net src/models/LGATr/lgatr.py -bs 8 --gpus 0 --run-name GP_IRC_SN_LGATr_training_NoPID_Delphes_PU_PFfix_QCD_events_$1_$2_$3_$4 --val-dataset-size 10 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid --augment-soft-particles --load-model-weights train/LGATr_training_NoPID_Delphes_PU_PFfix_QCD_events_10_16_64_0.8_2025_05_16_19_46_57_48/step_50000_epoch_12.ckpt -irc
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 26 |
+
# bash jobs/base_training_different_datasets/aug_IRC_S/lgatr_QCD.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/lgatr_700_07.sh
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name LGATr_training_NoPID_Delphes_PU_PFfix_700_07_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/lgatr_700_07.sh 10 16 64 0.8
|
| 26 |
+
|
jobs/base_training_different_datasets/lgatr_700_07_and_900_03.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/lgatr_700_07_and_900_03.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/lgatr_700_07_and_900_03_and_QCD.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train Delphes_020425_train3_PU_PFfix_part0/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part1/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part2/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part3/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part4/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part5/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part6/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part7/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train3_PU_PFfix_part8/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak Delphes_020425_train2_PU_PFfix_part0/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part1/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part2/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part3/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part4/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part5/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part6/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part7/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak Delphes_020425_train2_PU_PFfix_part8/SVJ_mZprime-900_mDark-20_rinv-0.3_alpha-peak QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val Delphes_020425_train3_PU_PFfix_part9/SVJ_mZprime-700_mDark-20_rinv-0.7_alpha-peak -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name LGATr_training_NoPID_Delphes_PU_PFfix_700_07_AND_900_03_AND_QCD_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/lgatr_700_07_and_900_03_and_QCD.sh 10 16 64 0.8
|
jobs/base_training_different_datasets/lgatr_QCD.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
sbatch <<EOT
|
| 3 |
+
#!/bin/bash
|
| 4 |
+
#SBATCH --partition=gpu # Specify the partition
|
| 5 |
+
#SBATCH --mem=25000 # Request 10GB of memory
|
| 6 |
+
#SBATCH --time=48:00:00
|
| 7 |
+
#SBATCH --job-name=DelphesSVJTrain # Name the job
|
| 8 |
+
#SBATCH --gres=gpu:1
|
| 9 |
+
#SBATCH --account=gpu_gres # Specify the account
|
| 10 |
+
#SBATCH --output=jobs/vega/DTrLGATr_out_$1_$2_$3_R$4.log
|
| 11 |
+
#SBATCH --error=jobs/vega/DTrLGATr_err_$1_$2_$3_R$4.log
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
source env.sh
|
| 15 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 16 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 17 |
+
nvidia-smi
|
| 18 |
+
|
| 19 |
+
srun singularity exec -B /work -B /pnfs -B /t3home -H /t3home/gkrzmanc --nv docker://gkrz/lgatr:v3 python -m src.train -train QCDtrain_part0/qcd_test_0 QCDtrain_part0/qcd_test_1 QCDtrain_part0/qcd_test_2 QCDtrain_part0/qcd_test_3 QCDtrain_part0/qcd_test_4 QCDtrain_part0/qcd_test_5 QCDtrain_part0/qcd_test_6 QCDtrain_part0/qcd_test_7 QCDtrain_part0/qcd_test_8 -val QCDtrain_part0/qcd_test_9 -net src/models/LGATr/lgatr.py -bs 20 --gpus 0 --run-name LGATr_training_NoPID_Delphes_PU_PFfix_QCD_events_$1_$2_$3_$4 --val-dataset-size 1000 --num-steps 200000 --attr-loss-weight 0.1 --coord-loss-weight 0.1 --beta-type pt+bc --gt-radius $4 --num-blocks $1 -mv-ch $2 -s-ch $3 --spatial-part-only --validation-steps 2000 --no-pid
|
| 20 |
+
|
| 21 |
+
exit 0
|
| 22 |
+
EOT
|
| 23 |
+
|
| 24 |
+
# Args: n_blocks mv_channels s_channels radius (default: 10, 16, 64, 0.8)
|
| 25 |
+
# bash jobs/base_training_different_datasets/lgatr_QCD.sh 10 16 64 0.8
|
jobs/clustering.slurm
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --partition=standard # Specify the partition
|
| 3 |
+
#SBATCH --account=t3 # Specify the account
|
| 4 |
+
#SBATCH --mem=10000 # Request 10GB of memory
|
| 5 |
+
#SBATCH --time=05:00:00 # Set the time limit to 1 hour
|
| 6 |
+
#SBATCH --job-name=SVJ_clustering # Name the job
|
| 7 |
+
#SBATCH --output=jobs/clustering_out.log # Redirect stdout to a log file
|
| 8 |
+
#SBATCH --error=jobs/clustering_err.log # Redirect stderr to a log file
|
| 9 |
+
source env.sh
|
| 10 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 11 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 12 |
+
#singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Test_betaPt_BC_all_datasets_2025_01_07_17_50_45 --output-suffix 1010 --min-cluster-size 10 --min-samples 10
|
| 13 |
+
|
| 14 |
+
# Eval of the model trained on m=900 rinv=0.7
|
| 15 |
+
#singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Test_betaPt_BC_all_datasets_2025_01_08_10_54_58 --output-suffix 1010 --min-cluster-size 10 --min-samples 10
|
| 16 |
+
|
| 17 |
+
# Clustering eval on the L-GATr
|
| 18 |
+
#singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Test_LGATr_all_datasets_2025_01_08_19_27_54
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
# Finetuned parameters for L-GATr_m_900_rinv_0.3
|
| 22 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_LGATr_SB_spatial_part_only_1_step_13k_2025_01_13_17_28_03 --output-suffix FT --min-cluster-size 11 --min-samples 18 --epsilon 0.48
|
| 23 |
+
|
| 24 |
+
# Finetuned parameters for Identity
|
| 25 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_Identity_2025_01_13_17_08_48 --output-suffix FT --min-cluster-size 9 --min-samples 2 --epsilon 0.051
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
# Finetuned parameters for L-GATr_m_900_rinv_0.3 ran on the model at 40k+ steps (not 13k) Eval_LGATr_SB_spatial_part_only_1_2025_01_13_14_31_58
|
| 29 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_LGATr_SB_spatial_part_only_1_2025_01_13_14_31_58 --output-suffix FT --min-cluster-size 11 --min-samples 18 --epsilon 0.48
|
| 30 |
+
|
| 31 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_GT_R_lgatr_R14_2025_01_18_13_28_47 --output-suffix SP1 --min-cluster-size 11 --min-samples 18 --epsilon 0.48 --spatial-part-only
|
| 32 |
+
|
| 33 |
+
# Run
|
| 34 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_Quark_dist_loss_2025_01_18_13_11_16 --output-suffix FT1 --min-cluster-size 8 --min-samples 3 --epsilon 0.09 --spatial-part-only
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
# No coords loss
|
| 38 |
+
# {'min_cluster_size': 5, 'min_samples': 19, 'epsilon': 0.17149658495077644}
|
| 39 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_11_13_28_127 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 40 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_11_13_23_90 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 41 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_11_13_20_253 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 42 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_11_13_18_71 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 43 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_10_32_06_532 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 44 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_10_32_03_809 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 45 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_10_32_00_500 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 46 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_10_31_57_566 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 47 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_10_31_53_462 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 48 |
+
#srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.compute_clustering --input train/Eval_eval_19March2025_pt1e-2_500particles_NoQMinReprod_2025_04_04_10_31_51_450 --output-suffix FT1 --min-cluster-size 2 --min-samples 1 --epsilon 0.3 --spatial-part-only
|
| 49 |
+
|
| 50 |
+
# Run the job:
|
| 51 |
+
|
| 52 |
+
# sbatch jobs/clustering.slurm
|
jobs/clustering_503.slurm
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
#SBATCH --partition=short # Specify the partition
|
| 3 |
+
#SBATCH --account=t3 # Specify the account
|
| 4 |
+
#SBATCH --mem=10000 # Request 10GB of memory
|
| 5 |
+
#SBATCH --time=01:00:00 # Set the time limit to 1 hour
|
| 6 |
+
#SBATCH --job-name=SVJ_clustering # Name the job
|
| 7 |
+
#SBATCH --output=jobs/clustering_out.log # Redirect stdout to a log file
|
| 8 |
+
#SBATCH --error=jobs/clustering_err.log # Redirect stderr to a log file
|
| 9 |
+
source env.sh
|
| 10 |
+
export APPTAINER_TMPDIR=/work/gkrzmanc/singularity_tmp
|
| 11 |
+
export APPTAINER_CACHEDIR=/work/gkrzmanc/singularity_cache
|
| 12 |
+
|
| 13 |
+
srun singularity exec -B /t3home/gkrzmanc/ -B /work/gkrzmanc/ --nv docker://gkrz/lgatr:v3 python -m scripts.plot_multiple_models_clustering
|
| 14 |
+
|
| 15 |
+
# Run the job:
|
| 16 |
+
# sbatch jobs/clustering_503.slurm
|