IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
cfcf544 verified
raw
history blame
12.5 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.2.2",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "image-classification",
"model": "google/vit-base-patch16-224",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"no_weights": true,
"device_map": null,
"torch_dtype": null,
"eval_mode": true,
"to_bettertransformer": false,
"low_cpu_mem_usage": null,
"attn_implementation": null,
"cache_implementation": null,
"autocast_enabled": false,
"autocast_dtype": null,
"torch_compile": false,
"torch_compile_target": "forward",
"torch_compile_config": {},
"quantization_scheme": null,
"quantization_config": {},
"deepspeed_inference": false,
"deepspeed_inference_config": {},
"peft_type": null,
"peft_config": {}
},
"scenario": {
"name": "inference",
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
"iterations": 1,
"duration": 1,
"warmup_runs": 1,
"input_shapes": {
"batch_size": 1,
"num_choices": 2,
"sequence_length": 2
},
"new_tokens": null,
"latency": true,
"memory": true,
"energy": true,
"forward_kwargs": {},
"generate_kwargs": {
"max_new_tokens": 2,
"min_new_tokens": 2
},
"call_kwargs": {
"num_inference_steps": 2
}
},
"launcher": {
"name": "process",
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
"device_isolation": true,
"device_isolation_action": "error",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.0",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 904.613888,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 180,
"total": 0.9955206079483032,
"mean": 0.00553067004415724,
"stdev": 0.0002306452633059222,
"p50": 0.005603328227996827,
"p90": 0.005745868921279908,
"p95": 0.005811712145805358,
"p99": 0.006046156888008121,
"values": [
0.006325247764587402,
0.005606400012969971,
0.005609568119049072,
0.00566374397277832,
0.005708799839019775,
0.0057077760696411135,
0.005693439960479736,
0.005740543842315674,
0.005650432109832764,
0.00572211217880249,
0.005643263816833496,
0.005846015930175781,
0.005637119770050049,
0.005647359848022461,
0.005672959804534912,
0.005755904197692871,
0.005718016147613526,
0.005650432109832764,
0.0056555519104003905,
0.005560319900512695,
0.005700607776641845,
0.005811200141906738,
0.005665791988372803,
0.0057077760696411135,
0.005747712135314941,
0.005808127880096436,
0.005649407863616943,
0.005683199882507324,
0.005675007820129394,
0.005603328227996827,
0.005645311832427978,
0.00556441593170166,
0.005709824085235596,
0.005658624172210694,
0.005661695957183838,
0.005757952213287353,
0.0057077760696411135,
0.005745664119720459,
0.005708799839019775,
0.00566374397277832,
0.005563392162322998,
0.005669888019561768,
0.0057077760696411135,
0.005644320011138916,
0.00568832015991211,
0.00561356782913208,
0.005536767959594726,
0.005512191772460938,
0.005655519962310791,
0.005570559978485107,
0.005586912155151367,
0.005559296131134033,
0.005566463947296142,
0.005609471797943116,
0.005643263816833496,
0.0055797758102417,
0.005656576156616211,
0.005633024215698243,
0.005631999969482422,
0.005710847854614258,
0.00566476821899414,
0.005710912227630615,
0.005657599925994873,
0.005606400012969971,
0.005576704025268555,
0.005624832153320313,
0.0058429441452026365,
0.005604383945465088,
0.005654528141021729,
0.005619711875915527,
0.00561356782913208,
0.005554175853729248,
0.005530623912811279,
0.005653503894805908,
0.0055797758102417,
0.005606400012969971,
0.00586348819732666,
0.005724160194396972,
0.005595136165618897,
0.005544960021972656,
0.005603328227996827,
0.0055807681083679195,
0.0055848960876464845,
0.00561356782913208,
0.005603328227996827,
0.005601280212402344,
0.0055552000999450684,
0.0055920639038085935,
0.00567193603515625,
0.0057292799949646,
0.005777376174926758,
0.005677055835723877,
0.005745664119720459,
0.005837823867797852,
0.005670911788940429,
0.0056483840942382815,
0.005606400012969971,
0.005971968173980713,
0.0057712321281433105,
0.005866496086120605,
0.005766143798828125,
0.006393856048583985,
0.0057415680885314945,
0.005672959804534912,
0.005623807907104492,
0.00582144021987915,
0.005661695957183838,
0.005518335819244385,
0.005568511962890625,
0.00553984022140503,
0.005603263854980469,
0.005560319900512695,
0.005604351997375488,
0.0055808000564575196,
0.005605375766754151,
0.005777408123016357,
0.00572211217880249,
0.005618688106536865,
0.005469183921813964,
0.005467135906219483,
0.0055316481590271,
0.005653503894805908,
0.00551423978805542,
0.005533696174621582,
0.005402624130249023,
0.005433343887329102,
0.0054579200744628905,
0.005356544017791748,
0.005264383792877197,
0.005182464122772217,
0.005505023956298828,
0.005459968090057373,
0.005198847770690918,
0.005179391860961914,
0.00521727991104126,
0.005172224044799805,
0.0052705278396606445,
0.005285888195037842,
0.005250048160552978,
0.005262335777282715,
0.005440512180328369,
0.005261312007904053,
0.005246975898742676,
0.005243904113769531,
0.00526035213470459,
0.005230591773986816,
0.005249023914337158,
0.005278719902038574,
0.005251071929931641,
0.005187583923339844,
0.005214176177978516,
0.005194752216339111,
0.005193727970123291,
0.005212160110473632,
0.0051588802337646485,
0.005158912181854248,
0.005195775985717774,
0.005195775985717774,
0.005189631938934326,
0.005178368091583252,
0.005202943801879883,
0.005174272060394287,
0.005179391860961914,
0.00520908784866333,
0.005171199798583984,
0.005172224044799805,
0.005199903964996338,
0.005164031982421875,
0.005157887935638428,
0.005175295829772949,
0.005213183879852295,
0.005157887935638428,
0.005184512138366699,
0.005192704200744629,
0.005171199798583984,
0.005150720119476319,
0.005188608169555664,
0.0051701760292053225,
0.005180416107177735,
0.005145599842071533
]
},
"throughput": {
"unit": "samples/s",
"value": 180.80991851184993
},
"energy": {
"unit": "kWh",
"cpu": 6.423169249170894e-08,
"ram": 3.511774607358274e-08,
"gpu": 3.3701228162176934e-07,
"total": 4.36361720187061e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2291676.729964573
}
}
}
}