IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
d71b33b verified
raw
history blame
14.6 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.4.0+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.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": 800.37888,
"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.49574853515625,
"mean": 7.49574853515625,
"stdev": 0.0,
"p50": 7.49574853515625,
"p90": 7.49574853515625,
"p95": 7.49574853515625,
"p99": 7.49574853515625,
"values": [
7.49574853515625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.5764107791663978e-06,
"ram": 8.457047071794783e-07,
"gpu": 3.7619474540003667e-06,
"total": 6.184062940346243e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 933.490688,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 203,
"total": 1.0086052203178395,
"mean": 0.004968498622255372,
"stdev": 0.00014436652492265267,
"p50": 0.004926464080810547,
"p90": 0.005143756866455078,
"p95": 0.005175193452835083,
"p99": 0.005501890726089477,
"values": [
0.005175295829772949,
0.0049808001518249516,
0.005035039901733399,
0.005087232112884522,
0.00506060791015625,
0.005067776203155518,
0.005099520206451416,
0.0050728960037231445,
0.005051392078399658,
0.005017600059509277,
0.005127168178558349,
0.005025792121887207,
0.005025792121887207,
0.00499721622467041,
0.004941823959350586,
0.004968448162078858,
0.004974592208862305,
0.00501145601272583,
0.005045248031616211,
0.004866047859191895,
0.0049489917755126955,
0.004857855796813965,
0.004908031940460205,
0.005023744106292725,
0.004968448162078858,
0.005064703941345215,
0.005096447944641113,
0.005078015804290771,
0.004999167919158935,
0.005049344062805176,
0.005098495960235596,
0.004926464080810547,
0.00485587215423584,
0.004867072105407715,
0.005041152000427246,
0.0050432000160217285,
0.0050421757698059086,
0.005082111835479736,
0.005101568222045898,
0.004991168022155761,
0.004968448162078858,
0.0050032639503479,
0.004933631896972656,
0.004956160068511963,
0.005121024131774903,
0.0050063362121582035,
0.005144576072692871,
0.005049344062805176,
0.005078015804290771,
0.004904960155487061,
0.0048865280151367185,
0.005111807823181152,
0.0054988799095153805,
0.005501952171325684,
0.005145599842071533,
0.005155839920043945,
0.005201920032501221,
0.005117951869964599,
0.005165056228637695,
0.005231616020202637,
0.005250048160552978,
0.005504000186920166,
0.005479423999786377,
0.005246975898742676,
0.005146560192108155,
0.0050503678321838375,
0.005761023998260498,
0.004940800189971924,
0.00495411205291748,
0.0050657281875610355,
0.005053440093994141,
0.005037055969238281,
0.005174272060394287,
0.005112832069396973,
0.005057536125183106,
0.005059584140777588,
0.004902912139892578,
0.004897791862487793,
0.004905983924865722,
0.005008384227752686,
0.004986879825592041,
0.004968448162078858,
0.005066751956939697,
0.0050462718009948735,
0.004892672061920166,
0.005014527797698975,
0.004936704158782959,
0.004986879825592041,
0.004969471931457519,
0.005104640007019043,
0.004894720077514648,
0.0049192957878112795,
0.004996096134185791,
0.0051476478576660155,
0.005173247814178467,
0.005187647819519043,
0.005168992042541504,
0.005007359981536865,
0.005045248031616211,
0.005100543975830078,
0.0050462718009948735,
0.004984831809997559,
0.004943871974945068,
0.005023744106292725,
0.00501145601272583,
0.004960256099700928,
0.004846591949462891,
0.004989952087402344,
0.005024831771850586,
0.0048895998001098635,
0.004847616195678711,
0.0048527359962463375,
0.004853759765625,
0.0048496642112731934,
0.004853759765625,
0.0048496642112731934,
0.004850687980651855,
0.0048558077812194825,
0.004851712226867676,
0.0048455681800842285,
0.00485478401184082,
0.004851712226867676,
0.004850687980651855,
0.0048496642112731934,
0.0048527359962463375,
0.0048558077812194825,
0.004857855796813965,
0.005079040050506592,
0.005090303897857666,
0.0051404800415039064,
0.0051485438346862795,
0.004932608127593994,
0.004857855796813965,
0.00491212797164917,
0.004956160068511963,
0.0048865280151367185,
0.004848639965057373,
0.0048865280151367185,
0.0048876161575317385,
0.004958208084106445,
0.004911104202270508,
0.00486195182800293,
0.004847712039947509,
0.004853759765625,
0.0048527359962463375,
0.0048568320274353025,
0.004853759765625,
0.004848639965057373,
0.004847616195678711,
0.004844543933868409,
0.004850687980651855,
0.004893695831298828,
0.004866047859191895,
0.00488047981262207,
0.0048455681800842285,
0.004845600128173828,
0.0048496642112731934,
0.004851712226867676,
0.004848639965057373,
0.004849760055541992,
0.004848703861236572,
0.004848768234252929,
0.004845632076263428,
0.00484768009185791,
0.0048496642112731934,
0.004848639965057373,
0.004846591949462891,
0.004846591949462891,
0.0048527359962463375,
0.0048527359962463375,
0.004853824138641358,
0.0048527359962463375,
0.004850687980651855,
0.004847616195678711,
0.0048496642112731934,
0.004851712226867676,
0.0048496642112731934,
0.004848639965057373,
0.0048496642112731934,
0.004847616195678711,
0.004853759765625,
0.004845632076263428,
0.004850687980651855,
0.004847616195678711,
0.004848639965057373,
0.004851712226867676,
0.004853759765625,
0.00485478401184082,
0.0048568320274353025,
0.004851712226867676,
0.0048496642112731934,
0.0048496642112731934,
0.004848639965057373,
0.004851712226867676,
0.004851712226867676,
0.004851712226867676,
0.004853759765625,
0.004850687980651855,
0.004850687980651855,
0.004851712226867676,
0.0048527359962463375,
0.0048527359962463375,
0.0048527359962463375
]
},
"throughput": {
"unit": "samples/s",
"value": 201.26804413725804
},
"energy": {
"unit": "kWh",
"cpu": 5.770589350391432e-08,
"ram": 3.150143817970404e-08,
"gpu": 3.308686573592247e-07,
"total": 4.2007598904284313e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2380521.6819902817
}
}
}
}