IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
302dba0 verified
raw
history blame
14.5 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.3.1+cu121",
"_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.293824,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.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.3.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 757.272576,
"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.22912060546875,
"mean": 7.22912060546875,
"stdev": 0.0,
"p50": 7.22912060546875,
"p90": 7.22912060546875,
"p95": 7.22912060546875,
"p99": 7.22912060546875,
"values": [
7.22912060546875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.6017716791894702e-06,
"ram": 8.619921118185894e-07,
"gpu": 1.7600014080004084e-06,
"total": 4.2237651990084676e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 888.487936,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 201,
"total": 1.0033634219169614,
"mean": 0.004991857820482396,
"stdev": 0.00014580239615959596,
"p50": 0.0049090561866760255,
"p90": 0.005186560153961181,
"p95": 0.0052367358207702636,
"p99": 0.0053534722328186036,
"values": [
0.005299200057983398,
0.005258240222930908,
0.005221375942230225,
0.005262335777282715,
0.00517632007598877,
0.004965375900268554,
0.004933631896972656,
0.004977663993835449,
0.004901887893676758,
0.004865024089813232,
0.005029888153076172,
0.005213183879852295,
0.005143583774566651,
0.0050954241752624516,
0.005280767917633057,
0.005183487892150879,
0.00516096019744873,
0.0050124797821044925,
0.004977663993835449,
0.004983808040618896,
0.005048319816589355,
0.005431295871734619,
0.005186560153961181,
0.005165056228637695,
0.0053534722328186036,
0.0052367358207702636,
0.005161983966827393,
0.005152768135070801,
0.005071872234344482,
0.00505241584777832,
0.005149695873260498,
0.005167103767395019,
0.005171135902404785,
0.005158912181854248,
0.0051578559875488286,
0.005206016063690186,
0.0051825280189514164,
0.005149695873260498,
0.0050841598510742185,
0.0051660799980163576,
0.005194752216339111,
0.005172224044799805,
0.005173247814178467,
0.005144576072692871,
0.0050094079971313476,
0.005059584140777588,
0.0051066880226135255,
0.005028863906860351,
0.00506879997253418,
0.005054463863372802,
0.005029888153076172,
0.005044223785400391,
0.005057536125183106,
0.0051476478576660155,
0.005187583923339844,
0.005174272060394287,
0.005190656185150146,
0.00515993595123291,
0.004911168098449707,
0.004928512096405029,
0.004866047859191895,
0.004872191905975342,
0.004865024089813232,
0.004863999843597412,
0.004869120121002197,
0.004893695831298828,
0.004893695831298828,
0.004881408214569092,
0.00486195182800293,
0.005396480083465576,
0.004996096134185791,
0.005071872234344482,
0.0050165758132934574,
0.005114880084991455,
0.005071872234344482,
0.005082111835479736,
0.005276671886444092,
0.005313536167144775,
0.005078015804290771,
0.005148672103881836,
0.005101568222045898,
0.005115903854370117,
0.00506879997253418,
0.00511897611618042,
0.005139455795288086,
0.005057536125183106,
0.005081088066101074,
0.005238783836364746,
0.0051773438453674315,
0.005167103767395019,
0.0052111358642578124,
0.005197824001312256,
0.0051435518264770505,
0.005146592140197754,
0.00516812801361084,
0.005130239963531494,
0.005134335994720459,
0.0050657281875610355,
0.00501145601272583,
0.005142528057098389,
0.005055488109588623,
0.004996096134185791,
0.004992000102996826,
0.004851712226867676,
0.004850687980651855,
0.004850687980651855,
0.005067776203155518,
0.0049530878067016604,
0.00486297607421875,
0.0049090561866760255,
0.004865024089813232,
0.004863999843597412,
0.00486297607421875,
0.004866047859191895,
0.00486195182800293,
0.004921343803405762,
0.004890624046325683,
0.004898816108703613,
0.00501043176651001,
0.005085184097290039,
0.00520908784866333,
0.0049500160217285155,
0.004863999843597412,
0.004865024089813232,
0.004860928058624267,
0.004866047859191895,
0.005040128231048584,
0.0048865280151367185,
0.004866047859191895,
0.004863999843597412,
0.004863999843597412,
0.004859903812408447,
0.004860928058624267,
0.004865024089813232,
0.00486195182800293,
0.00486195182800293,
0.00486297607421875,
0.004860928058624267,
0.0048578882217407224,
0.004863999843597412,
0.004863999843597412,
0.004866047859191895,
0.004863999843597412,
0.00486195182800293,
0.004860928058624267,
0.004863999843597412,
0.004859903812408447,
0.00486195182800293,
0.004859903812408447,
0.004863999843597412,
0.00486297607421875,
0.004865024089813232,
0.004865056037902832,
0.004865024089813232,
0.004865024089813232,
0.004863999843597412,
0.00486195182800293,
0.004858880043029785,
0.004866047859191895,
0.00486297607421875,
0.004863999843597412,
0.004858880043029785,
0.00486297607421875,
0.004860928058624267,
0.00486297607421875,
0.004865024089813232,
0.00486297607421875,
0.004866047859191895,
0.00486297607421875,
0.004865024089813232,
0.004863999843597412,
0.00486195182800293,
0.004860928058624267,
0.00486297607421875,
0.00486195182800293,
0.004860928058624267,
0.004865024089813232,
0.00486297607421875,
0.004863999843597412,
0.00486195182800293,
0.004867072105407715,
0.00486297607421875,
0.004867072105407715,
0.00486297607421875,
0.004859903812408447,
0.004865024089813232,
0.004863999843597412,
0.00486297607421875,
0.004863999843597412,
0.00486297607421875,
0.004865024089813232,
0.004863999843597412,
0.004867072105407715,
0.004860928058624267,
0.00486297607421875,
0.004866047859191895,
0.00486297607421875,
0.004865024089813232,
0.00486297607421875,
0.00486297607421875,
0.00486297607421875
]
},
"throughput": {
"unit": "samples/s",
"value": 200.32621840646965
},
"energy": {
"unit": "kWh",
"cpu": 5.7841247323313916e-08,
"ram": 3.1559990119409156e-08,
"gpu": 3.5687890582938163e-07,
"total": 4.4628014327210466e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2240745.000815066
}
}
}
}