IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
038fe12 verified
raw
history blame
14 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.4.0+cu124",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "image-classification",
"library": "transformers",
"model_type": "vit",
"model": "google/vit-base-patch16-224",
"processor": "google/vit-base-patch16-224",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"model_kwargs": {},
"processor_kwargs": {},
"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,
"memory": true,
"latency": 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",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.25696,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.220-209.869.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 826.753024,
"max_global_vram": 1030.22592,
"max_process_vram": 0.0,
"max_reserved": 400.556032,
"max_allocated": 346.271744
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.468353515625,
"mean": 7.468353515625,
"stdev": 0.0,
"p50": 7.468353515625,
"p90": 7.468353515625,
"p95": 7.468353515625,
"p99": 7.468353515625,
"values": [
7.468353515625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.5294516555562787e-06,
"ram": 8.224203608928781e-07,
"gpu": 1.6175012939999983e-06,
"total": 3.969373310449155e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1035.804672,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 190,
"total": 0.9975602211952208,
"mean": 0.005250316953659058,
"stdev": 0.0001587478679146647,
"p50": 0.005229056119918823,
"p90": 0.0053664258003234865,
"p95": 0.005569689440727233,
"p99": 0.005856921534538267,
"values": [
0.005600255966186523,
0.005590015888214111,
0.005611519813537597,
0.005616576194763184,
0.005575679779052735,
0.005289919853210449,
0.005274623870849609,
0.005224448204040527,
0.0052705278396606445,
0.005252096176147461,
0.005232672214508057,
0.00522441577911377,
0.005203968048095703,
0.005275648117065429,
0.0052633600234985355,
0.005250048160552978,
0.0051701760292053225,
0.005111807823181152,
0.005073919773101807,
0.005178368091583252,
0.005177279949188232,
0.005180416107177735,
0.00526643180847168,
0.005306367874145508,
0.005257215976715088,
0.005285888195037842,
0.005248000144958496,
0.005214208126068115,
0.005156864166259765,
0.005149695873260498,
0.005197824001312256,
0.005277664184570313,
0.005245952129364013,
0.005272575855255127,
0.005228544235229492,
0.005287936210632324,
0.005242879867553711,
0.0052705278396606445,
0.005242879867553711,
0.0053309440612792965,
0.005292064189910889,
0.005262335777282715,
0.005231616020202637,
0.0052336640357971195,
0.00515174388885498,
0.005188543796539307,
0.005070847988128662,
0.005075967788696289,
0.005070847988128662,
0.005182464122772217,
0.005130239963531494,
0.005204991817474365,
0.005167103767395019,
0.005165056228637695,
0.005175295829772949,
0.005224448204040527,
0.005253119945526123,
0.0053647360801696775,
0.005253215789794922,
0.005281727790832519,
0.005346303939819336,
0.005255231857299805,
0.005149695873260498,
0.005171199798583984,
0.0051701760292053225,
0.0052715520858764645,
0.0062494721412658695,
0.005215231895446777,
0.005214208126068115,
0.005238783836364746,
0.005213183879852295,
0.005137407779693603,
0.005111807823181152,
0.005117951869964599,
0.005152768135070801,
0.005126143932342529,
0.0052111358642578124,
0.0052971520423889164,
0.005182464122772217,
0.0051690878868103024,
0.005145599842071533,
0.0057794561386108395,
0.005485568046569824,
0.005173312187194824,
0.005281792163848877,
0.005328896045684814,
0.0051435518264770505,
0.005139455795288086,
0.0052408318519592285,
0.005311488151550293,
0.005302271842956543,
0.0055623679161071774,
0.005286911964416504,
0.0053043198585510255,
0.00530944013595581,
0.005224448204040527,
0.005204991817474365,
0.0052408318519592285,
0.005212160110473632,
0.005114880084991455,
0.005121056079864502,
0.005241856098175048,
0.005189631938934326,
0.005280767917633057,
0.005123072147369385,
0.005111807823181152,
0.005000192165374756,
0.004926464080810547,
0.005124095916748047,
0.0051036162376403805,
0.005058559894561767,
0.005178368091583252,
0.0049192957878112795,
0.004891647815704346,
0.004887551784515381,
0.004935679912567138,
0.004955135822296143,
0.005361663818359375,
0.005419040203094482,
0.0052899842262268066,
0.005353439807891846,
0.005496895790100097,
0.005633024215698243,
0.005371840000152588,
0.0052930560111999515,
0.005261312007904053,
0.005237760066986084,
0.005333055973052978,
0.005843967914581299,
0.005961728096008301,
0.00537497615814209,
0.00530944013595581,
0.005281792163848877,
0.005262335777282715,
0.005458943843841553,
0.0052490558624267575,
0.005205984115600586,
0.0051773438453674315,
0.005215231895446777,
0.005189568042755127,
0.005242879867553711,
0.0052295680046081545,
0.005269504070281982,
0.005206016063690186,
0.0052367358207702636,
0.005191679954528809,
0.005239808082580567,
0.005174240112304687,
0.005244927883148193,
0.00522649621963501,
0.00520908784866333,
0.005224448204040527,
0.005250048160552978,
0.005224448204040527,
0.005276735782623291,
0.005194752216339111,
0.005258240222930908,
0.00521830415725708,
0.005214208126068115,
0.005227519989013672,
0.005249023914337158,
0.005261312007904053,
0.005208064079284668,
0.0052633600234985355,
0.0053658242225646975,
0.005416959762573242,
0.005484543800354004,
0.005338111877441406,
0.005192704200744629,
0.005208064079284668,
0.005213151931762696,
0.005262335777282715,
0.005198847770690918,
0.0052377920150756836,
0.0052008957862854,
0.005187583923339844,
0.005219327926635742,
0.00521727991104126,
0.005222400188446045,
0.005231552124023438,
0.005197824001312256,
0.005195775985717774,
0.0052674560546875,
0.005361663818359375,
0.005234687805175781,
0.005227519989013672,
0.005201920032501221,
0.005190656185150146,
0.005202943801879883,
0.0052070398330688475
]
},
"throughput": {
"unit": "samples/s",
"value": 190.46469171791213
},
"energy": {
"unit": "kWh",
"cpu": 6.030205757895924e-08,
"ram": 3.2968789867495494e-08,
"gpu": 3.3903721426396003e-07,
"total": 4.323080617104148e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2313165.2832092186
}
}
}
}