IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
c688857 verified
raw
history blame
13.4 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": "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": {},
"hub_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,
"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",
"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.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.0",
"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": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 876.376064,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 203,
"total": 1.0092379508018496,
"mean": 0.004971615521191376,
"stdev": 0.000149283356579529,
"p50": 0.00487014389038086,
"p90": 0.005191679954528809,
"p95": 0.005277286291122436,
"p99": 0.005355499296188355,
"values": [
0.005436416149139404,
0.0052367358207702636,
0.005286911964416504,
0.005192704200744629,
0.005288959980010987,
0.005488639831542969,
0.005198847770690918,
0.005255167961120606,
0.005191679954528809,
0.005190656185150146,
0.005250048160552978,
0.005341184139251709,
0.005184512138366699,
0.005264383792877197,
0.0053227200508117675,
0.005164031982421875,
0.00521014404296875,
0.0050769920349121095,
0.00501964807510376,
0.005127168178558349,
0.005181439876556396,
0.005191679954528809,
0.005158912181854248,
0.005195775985717774,
0.005184447765350342,
0.005123072147369385,
0.005108736038208008,
0.005121024131774903,
0.00516096019744873,
0.004939775943756103,
0.00491315221786499,
0.00496127986907959,
0.004930560111999512,
0.004929535865783692,
0.004872191905975342,
0.005337088108062744,
0.005355519771575928,
0.00516812801361084,
0.005354496002197265,
0.005071872234344482,
0.004987904071807861,
0.0050432000160217285,
0.005112832069396973,
0.0050728960037231445,
0.005031936168670655,
0.005138432025909424,
0.005126143932342529,
0.005119999885559082,
0.005180416107177735,
0.005278719902038574,
0.005178368091583252,
0.005179391860961914,
0.005188608169555664,
0.0051660799980163576,
0.005149695873260498,
0.0051946878433227536,
0.005174272060394287,
0.005282815933227539,
0.004899839878082276,
0.0050657281875610355,
0.004867072105407715,
0.004867072105407715,
0.004866047859191895,
0.004866047859191895,
0.004868095874786377,
0.004858880043029785,
0.004866047859191895,
0.0048895998001098635,
0.005127168178558349,
0.0051333122253417966,
0.005115903854370117,
0.00510975980758667,
0.005091328144073487,
0.0050954241752624516,
0.004868095874786377,
0.004925439834594727,
0.0050462718009948735,
0.00496127986907959,
0.004955135822296143,
0.005078015804290771,
0.0049459199905395506,
0.0050094079971313476,
0.0050135040283203125,
0.004867072105407715,
0.00487116813659668,
0.004865024089813232,
0.004866047859191895,
0.00487116813659668,
0.004866047859191895,
0.004869120121002197,
0.004863999843597412,
0.004869120121002197,
0.004866047859191895,
0.004863999843597412,
0.004865024089813232,
0.004869120121002197,
0.004868095874786377,
0.004869120121002197,
0.004866047859191895,
0.004874239921569825,
0.00487014389038086,
0.00495411205291748,
0.00486297607421875,
0.004866047859191895,
0.004867072105407715,
0.0049428482055664065,
0.004869120121002197,
0.004869120121002197,
0.004863999843597412,
0.004866047859191895,
0.004866047859191895,
0.00486297607421875,
0.004860928058624267,
0.004863999843597412,
0.004868095874786377,
0.00487014389038086,
0.004868095874786377,
0.00487116813659668,
0.00486297607421875,
0.004867072105407715,
0.00487014389038086,
0.004868095874786377,
0.004869120121002197,
0.00487014389038086,
0.004868095874786377,
0.004865024089813232,
0.004976640224456787,
0.004868095874786377,
0.004866047859191895,
0.0049489917755126955,
0.004865024089813232,
0.004867072105407715,
0.004874239921569825,
0.004867072105407715,
0.00487116813659668,
0.004866047859191895,
0.004867072105407715,
0.004868095874786377,
0.004868095874786377,
0.004868095874786377,
0.00487014389038086,
0.00487014389038086,
0.004867072105407715,
0.00487116813659668,
0.004868095874786377,
0.004867072105407715,
0.004869120121002197,
0.00487116813659668,
0.004867072105407715,
0.0049725441932678225,
0.004868095874786377,
0.004869120121002197,
0.004867072105407715,
0.004869120121002197,
0.004868095874786377,
0.005005311965942383,
0.00487014389038086,
0.004869120121002197,
0.00487116813659668,
0.004866047859191895,
0.00487014389038086,
0.004869120121002197,
0.004868095874786377,
0.004863999843597412,
0.00487116813659668,
0.004863999843597412,
0.004865024089813232,
0.00487014389038086,
0.00487014389038086,
0.004868095874786377,
0.004863999843597412,
0.004869120121002197,
0.004869120121002197,
0.004866047859191895,
0.004872191905975342,
0.004981760025024414,
0.004869120121002197,
0.004982848167419434,
0.00486195182800293,
0.004863999843597412,
0.004867072105407715,
0.004863999843597412,
0.004866047859191895,
0.00486297607421875,
0.004867072105407715,
0.00487014389038086,
0.004869120121002197,
0.004898816108703613,
0.004899839878082276,
0.0048793601989746095,
0.004869120121002197,
0.004866047859191895,
0.004866047859191895,
0.00486297607421875,
0.004867072105407715,
0.004868095874786377,
0.004869120121002197,
0.0050135040283203125,
0.004868095874786377,
0.004960256099700928,
0.00487014389038086,
0.00487014389038086,
0.004866047859191895
]
},
"throughput": {
"unit": "samples/s",
"value": 201.1418613803757
},
"energy": {
"unit": "kWh",
"cpu": 5.7938893479130793e-08,
"ram": 3.167145823666722e-08,
"gpu": 3.794184183317551e-07,
"total": 4.6902877004755317e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2132065.3739398834
}
}
}
}