tinygrad/examples/mlperf
David Hou 1dbf3b2b19
Benchmarks for individual resnet layers (#4182)
* resnet individual layer benchmarks!

* small

* 1 and 2

* mem_used

* no ci

* better conv print

* defaults

* prints

* adjust

* adjust

* adjust

* benchmark only one layer example

* tensor.training, zero_grad, sum instead of mean, last mem, last kernel count

* default jitcnt=1

* scale flops/kernels with jitcnt

* add note about jitcnt memory

* touchup
2024-04-16 13:53:18 -04:00
..
dataloader.py MLPerf Resnet (cleaned up) (#3573) 2024-03-14 00:53:41 -04:00
helpers.py support MOCKDATA=1 for resnet (#4090) 2024-04-05 17:19:18 -07:00
initializers.py Benchmarks for individual resnet layers (#4182) 2024-04-16 13:53:18 -04:00
lr_schedulers.py fp16 resnet (without expand backwards sum in float, doesn't work) (#3816) 2024-03-28 01:25:37 -04:00
metrics.py Add MLPerf UNet3D model (#775) 2023-05-28 20:38:19 -07:00
model_eval.py move GlobalCounter to helpers (#4002) 2024-03-30 00:30:30 -04:00
model_spec.py move globalcounters to ops (#2960) 2024-01-01 14:21:02 -08:00
model_train.py log resnet TRAIN_BEAM / EVAL_BEAM (#4181) 2024-04-15 19:29:08 -04:00
README start on mlperf models 2023-05-10 16:30:49 -07:00

Each model should be a clean single file.
They are imported from the top level `models` directory

It should be capable of loading weights from the reference imp.

We will focus on these 5 models:

# Resnet50-v1.5 (classic) -- 8.2 GOPS/input
# Retinanet
# 3D UNET (upconvs)
# RNNT
# BERT-large (transformer)

They are used in both the training and inference benchmark:
https://mlcommons.org/en/training-normal-21/
https://mlcommons.org/en/inference-edge-30/
And we will submit to both.

NOTE: we are Edge since we don't have ECC RAM