IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
c637e9b verified
raw
history blame
13.9 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.929152,
"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.45155810546875,
"mean": 7.45155810546875,
"stdev": 0.0,
"p50": 7.45155810546875,
"p90": 7.45155810546875,
"p95": 7.45155810546875,
"p99": 7.45155810546875,
"values": [
7.45155810546875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.4980363756932668e-06,
"ram": 8.04391892943241e-07,
"gpu": 1.6969458019999023e-06,
"total": 3.99937407063641e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1036.283904,
"max_global_vram": 1049.100288,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.853824
},
"latency": {
"unit": "s",
"count": 188,
"total": 0.9987033615112301,
"mean": 0.005312251922932077,
"stdev": 0.00028381364911027004,
"p50": 0.00530944013595581,
"p90": 0.005678307008743286,
"p95": 0.005777971172332764,
"p99": 0.006404851927757263,
"values": [
0.005780479907989502,
0.005419007778167725,
0.005407743930816651,
0.005361663818359375,
0.005407743930816651,
0.00535859203338623,
0.005362688064575195,
0.00587775993347168,
0.005676032066345215,
0.005694464206695556,
0.005681151866912842,
0.00537395191192627,
0.0053637118339538575,
0.005311488151550293,
0.005362688064575195,
0.005389311790466309,
0.005341184139251709,
0.005258240222930908,
0.005172224044799805,
0.00516812801361084,
0.0053340158462524415,
0.005368832111358642,
0.005282815933227539,
0.0053340158462524415,
0.0054282240867614745,
0.005355519771575928,
0.005359615802764893,
0.00537395191192627,
0.005336063861846924,
0.005256192207336426,
0.005187583923339844,
0.005345280170440674,
0.005395455837249756,
0.005412864208221436,
0.005390336036682129,
0.005500927925109863,
0.00537497615814209,
0.005346303939819336,
0.005414912223815918,
0.0052899842262268066,
0.00526643180847168,
0.005321728229522705,
0.005319680213928223,
0.00531763219833374,
0.005414912223815918,
0.00538316822052002,
0.005221375942230225,
0.005194752216339111,
0.005182464122772217,
0.00516096019744873,
0.005221375942230225,
0.005216256141662597,
0.005239808082580567,
0.005257215976715088,
0.005260287761688232,
0.005261312007904053,
0.0053002238273620605,
0.005307392120361328,
0.005343232154846191,
0.005437439918518067,
0.0053340158462524415,
0.0053647360801696775,
0.005432320117950439,
0.005328896045684814,
0.0052705278396606445,
0.005252096176147461,
0.006096896171569824,
0.0054241280555725096,
0.005451776027679443,
0.005434368133544922,
0.005337152004241943,
0.00535756778717041,
0.005380095958709717,
0.0053637118339538575,
0.0052070398330688475,
0.005250048160552978,
0.0053012480735778805,
0.005307392120361328,
0.0053043198585510255,
0.005386240005493164,
0.005386240005493164,
0.005287936210632324,
0.005256192207336426,
0.005295104026794434,
0.005362688064575195,
0.005322751998901368,
0.005299200057983398,
0.005264383792877197,
0.005464064121246338,
0.005601280212402344,
0.005648320198059082,
0.005726208209991455,
0.005700672149658203,
0.005773312091827393,
0.005677087783813477,
0.005732351779937744,
0.005697535991668701,
0.005738495826721191,
0.005647359848022461,
0.005747712135314941,
0.005643263816833496,
0.005581823825836182,
0.005502943992614746,
0.005636096000671387,
0.005575679779052735,
0.005482495784759522,
0.005534719944000244,
0.005484543800354004,
0.005339136123657226,
0.005352447986602784,
0.005550079822540284,
0.005535744190216065,
0.005355519771575928,
0.005245952129364013,
0.005258240222930908,
0.005303296089172363,
0.0052408318519592285,
0.0060702719688415525,
0.0064236159324646,
0.006474751949310303,
0.006402048110961914,
0.005789696216583252,
0.005671999931335449,
0.005948416233062744,
0.005583871841430664,
0.005441535949707031,
0.005378047943115235,
0.005873663902282715,
0.005319680213928223,
0.005030911922454834,
0.005047296047210693,
0.005025792121887207,
0.005067776203155518,
0.005029888153076172,
0.005035007953643799,
0.005050303936004638,
0.005088191986083984,
0.005021696090698242,
0.005037055969238281,
0.005051392078399658,
0.005057536125183106,
0.005021696090698242,
0.005030911922454834,
0.00502784013748169,
0.005083199977874756,
0.00501964807510376,
0.005022719860076904,
0.005028863906860351,
0.005022719860076904,
0.004998144149780274,
0.0050124797821044925,
0.005026815891265869,
0.005005311965942383,
0.005004288196563721,
0.00501043176651001,
0.0049909758567810054,
0.004986879825592041,
0.004983808040618896,
0.004994048118591309,
0.0049797120094299315,
0.004986944198608398,
0.004974592208862305,
0.005004288196563721,
0.00502784013748169,
0.00499507188796997,
0.004999167919158935,
0.0049725441932678225,
0.004993023872375488,
0.004997119903564453,
0.005311488151550293,
0.005049344062805176,
0.004998144149780274,
0.0049909758567810054,
0.0050135040283203125,
0.004973567962646484,
0.005015552043914795,
0.004997119903564453,
0.005001215934753418,
0.004977663993835449,
0.004997119903564453,
0.004976640224456787,
0.005021696090698242,
0.004993023872375488,
0.00501043176651001,
0.004985856056213379,
0.004987967967987061,
0.004967423915863037,
0.004993023872375488
]
},
"throughput": {
"unit": "samples/s",
"value": 188.24408452527868
},
"energy": {
"unit": "kWh",
"cpu": 6.109518839131967e-08,
"ram": 3.340432917075698e-08,
"gpu": 3.391526195463952e-07,
"total": 4.336521371084719e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2305995.7842427613
}
}
}
}