IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
6788dba verified
raw
history blame
12.6 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.289728,
"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.1",
"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.62208,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 182,
"total": 0.9957264957427978,
"mean": 0.005471024701883503,
"stdev": 0.00013841328447755744,
"p50": 0.005513216018676758,
"p90": 0.0055808000564575196,
"p95": 0.005702553391456604,
"p99": 0.005847682952880858,
"values": [
0.006029407978057861,
0.005739520072937012,
0.0057497601509094234,
0.005793791770935058,
0.005805056095123291,
0.005772287845611572,
0.005732351779937744,
0.005700607776641845,
0.006136832237243653,
0.005407743930816651,
0.005311488151550293,
0.005505023956298828,
0.0053043198585510255,
0.005319680213928223,
0.005348320007324219,
0.00531657600402832,
0.005325823783874512,
0.005346303939819336,
0.0052930560111999515,
0.005343232154846191,
0.005339136123657226,
0.00530841588973999,
0.005336063861846924,
0.005344255924224854,
0.00531763219833374,
0.005354496002197265,
0.005348351955413819,
0.005302271842956543,
0.005340159893035889,
0.005338111877441406,
0.005285888195037842,
0.005420032024383545,
0.005339136123657226,
0.005391359806060791,
0.005299200057983398,
0.005312511920928955,
0.005342207908630371,
0.005315584182739258,
0.005320703983306885,
0.00530944013595581,
0.00531660795211792,
0.005331967830657959,
0.005350399971008301,
0.005327871799468994,
0.005344255924224854,
0.005327871799468994,
0.005347328186035156,
0.005341184139251709,
0.005338111877441406,
0.0054917120933532714,
0.0054241280555725096,
0.005341184139251709,
0.005310463905334473,
0.005345280170440674,
0.005379072189331055,
0.005329919815063477,
0.005327871799468994,
0.005340159893035889,
0.005312511920928955,
0.0053350400924682614,
0.005321728229522705,
0.005332992076873779,
0.00530944013595581,
0.005371903896331787,
0.005328896045684814,
0.0053043198585510255,
0.00536678409576416,
0.005416959762573242,
0.005319680213928223,
0.005347328186035156,
0.005327871799468994,
0.00532480001449585,
0.005341184139251709,
0.005306367874145508,
0.005305344104766845,
0.005354496002197265,
0.005318655967712403,
0.005336063861846924,
0.0053534722328186036,
0.005315584182739258,
0.005328896045684814,
0.005337088108062744,
0.005320735931396484,
0.00532480001449585,
0.005325856208801269,
0.005286911964416504,
0.005313536167144775,
0.005529600143432617,
0.005505023956298828,
0.005545983791351319,
0.00555728006362915,
0.005553152084350586,
0.005567488193511963,
0.005563392162322998,
0.005568511962890625,
0.005576704025268555,
0.005538815975189209,
0.005526527881622314,
0.005549056053161621,
0.005557248115539551,
0.005533696174621582,
0.0055214080810546875,
0.005544960021972656,
0.005525504112243652,
0.00555622386932373,
0.005518335819244385,
0.005526527881622314,
0.0055511040687561035,
0.00552345609664917,
0.005527552127838135,
0.005560383796691894,
0.0055285758972167965,
0.005702655792236328,
0.005724160194396972,
0.0055808000564575196,
0.005527552127838135,
0.0055244798660278325,
0.0055623679161071774,
0.005526527881622314,
0.005552127838134766,
0.00552243185043335,
0.005553152084350586,
0.005544000148773194,
0.005631999969482422,
0.005583871841430664,
0.005552127838134766,
0.0055203838348388675,
0.0056145920753479005,
0.0055316481590271,
0.00556441593170166,
0.005534719944000244,
0.005505023956298828,
0.005526432037353516,
0.005546976089477539,
0.0054988799095153805,
0.005550079822540284,
0.005509119987487793,
0.0055552000999450684,
0.00552243185043335,
0.005545983791351319,
0.005566463947296142,
0.0055316481590271,
0.005569536209106446,
0.005529600143432617,
0.005506048202514649,
0.005597184181213379,
0.005509119987487793,
0.0055623679161071774,
0.005513216018676758,
0.00552953577041626,
0.005559232234954834,
0.0055808000564575196,
0.005578752040863037,
0.005569536209106446,
0.005497856140136719,
0.005533696174621582,
0.005548031806945801,
0.005501952171325684,
0.00551423978805542,
0.005546016216278076,
0.005552127838134766,
0.00555622386932373,
0.005640192031860352,
0.005566463947296142,
0.00551423978805542,
0.005593088150024414,
0.005518335819244385,
0.0055316481590271,
0.005560319900512695,
0.005516287803649903,
0.00552243185043335,
0.005538815975189209,
0.005511168003082275,
0.005527552127838135,
0.005532671928405761,
0.005513216018676758,
0.0055368318557739256,
0.005505023956298828,
0.00550707197189331,
0.005608448028564453,
0.005492735862731934,
0.005515327930450439
]
},
"throughput": {
"unit": "samples/s",
"value": 182.78111587683586
},
"energy": {
"unit": "kWh",
"cpu": 6.545560937079173e-08,
"ram": 3.574592068888491e-08,
"gpu": 3.383488665274714e-07,
"total": 4.3955039658714804e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2275051.9798512654
}
}
}
}