Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timing the ONNX model, retrain CMS-GNNLSH-TF #229

Merged
merged 5 commits into from
Oct 6, 2023
Merged

Timing the ONNX model, retrain CMS-GNNLSH-TF #229

merged 5 commits into from
Oct 6, 2023

Conversation

jpata
Copy link
Owner

@jpata jpata commented Oct 3, 2023

Overview

  • added a simple timing script based on ONNX
  • added some timing benchmarks based on the current CLIC v1.6 model
  • include the new cms_pf_multi_particle_gun dataset
  • include new smaller versions of the CLIC hit-based datasets: clic_edm_ttbar_hits_pf10k, clic_edm_qq_hits_pf10k

Timing tests

https://github.com/jpata/particleflow/blob/timing/timing.md
Tested on RTX2070S 8192MiB.

batch_size=20 bin_size=256 num_features=17 use_gpu=True num_threads=1
Nelem=256 mean_time=1.96 ms stddev_time=0.52 ms mem_used=782 MB
Nelem=512 mean_time=3.21 ms stddev_time=0.15 ms mem_used=916 MB
Nelem=2560 mean_time=21.48 ms stddev_time=0.14 ms mem_used=1721 MB
Nelem=5120 mean_time=50.09 ms stddev_time=0.19 ms mem_used=2795 MB
Nelem=10240 mean_time=106.15 ms stddev_time=0.63 ms mem_used=4943 MB

@jpata jpata changed the title Timing the ONNX model Timing the ONNX model, retrain CMS-GNNLSH-TF Oct 5, 2023
@jpata
Copy link
Owner Author

jpata commented Oct 5, 2023

Training the CMS model, reverting the pt and energy regression to Huber loss (red curve) from MeanSquaredLogError (blue curve), jet and MET performance are much, much, much better.

Screenshot 2023-10-05 at 15 21 35 Screenshot 2023-10-05 at 15 22 28

Jet and MET response on a small sample of cms_pf_qcd_high_pt:
jet_res
met_res

@jpata jpata merged commit 0547572 into main Oct 6, 2023
10 checks passed
@jpata jpata deleted the timing branch October 25, 2023 11:56
farakiko pushed a commit to farakiko/particleflow that referenced this pull request Jan 23, 2024
  * timing code, retrain CMS-GNNLSH-TF, new multi-particle gun dataset, small hit-based datasets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant