IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
09a16e4 verified
raw
history blame
12.1 kB
{
"config": {
"name": "cuda_inference_transformers_image-classification_google/vit-base-patch16-224",
"backend": {
"name": "pytorch",
"version": "2.3.0+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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.2.1",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"forward": {
"memory": {
"unit": "MB",
"max_ram": 909.860864,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 172,
"total": 0.9984098224639892,
"mean": 0.005804708270139472,
"stdev": 0.0002473221810960117,
"p50": 0.005710335969924927,
"p90": 0.0060628256797790525,
"p95": 0.006129868769645691,
"p99": 0.006453841910362243,
"values": [
0.006423552036285401,
0.006108191967010498,
0.006145023822784424,
0.0061224961280822755,
0.006118400096893311,
0.006138879776000977,
0.005848063945770264,
0.00603545618057251,
0.0060928001403808595,
0.006409215927124024,
0.00553984022140503,
0.005375999927520752,
0.005550079822540284,
0.005615615844726562,
0.005459968090057373,
0.005375999927520752,
0.005387231826782226,
0.005430272102355957,
0.005380095958709717,
0.005603328227996827,
0.005637119770050049,
0.005604351997375488,
0.005641215801239013,
0.005627903938293457,
0.005641215801239013,
0.005626880168914795,
0.0056145920753479005,
0.005631999969482422,
0.005604351997375488,
0.005643263816833496,
0.0056217598915100095,
0.0055920639038085935,
0.005633024215698243,
0.005601280212402344,
0.005669888019561768,
0.005837823867797852,
0.006038527965545654,
0.005773312091827393,
0.0059770879745483394,
0.006051839828491211,
0.006021120071411133,
0.007328767776489258,
0.005993472099304199,
0.00587775993347168,
0.00586956787109375,
0.006194176197052002,
0.006157343864440918,
0.006088704109191895,
0.005908480167388916,
0.005992447853088379,
0.005954559803009033,
0.006071296215057373,
0.006022143840789795,
0.006041600227355957,
0.006000639915466309,
0.00611737585067749,
0.005991424083709717,
0.006003712177276611,
0.005921728134155273,
0.006012959957122803,
0.005963776111602783,
0.006049791812896729,
0.005974016189575195,
0.006014976024627685,
0.005986303806304932,
0.005959616184234619,
0.005865471839904785,
0.005976064205169678,
0.005907455921173096,
0.005958559989929199,
0.0059361281394958495,
0.006063136100769043,
0.006203392028808594,
0.005921792030334472,
0.005883903980255127,
0.005951488018035888,
0.005945343971252442,
0.005924863815307617,
0.005925888061523437,
0.00591871976852417,
0.005909503936767578,
0.005980160236358643,
0.005975039958953857,
0.0060590081214904785,
0.0060293121337890625,
0.006041567802429199,
0.0059688959121704105,
0.006060031890869141,
0.005931007862091065,
0.005986303806304932,
0.005873663902282715,
0.005959680080413818,
0.005949440002441406,
0.005916672229766846,
0.00581324815750122,
0.005745664119720459,
0.0057190399169921875,
0.0058624639511108394,
0.005846015930175781,
0.005670911788940429,
0.00561356782913208,
0.005583871841430664,
0.005667840003967285,
0.005631999969482422,
0.0056769919395446775,
0.005903359889984131,
0.005863423824310303,
0.005925888061523437,
0.005898240089416504,
0.005971968173980713,
0.0059351038932800295,
0.005817344188690185,
0.005658624172210694,
0.005682176113128662,
0.005598176002502442,
0.005641215801239013,
0.005596159934997558,
0.005595136165618897,
0.005639167785644531,
0.005593088150024414,
0.005648320198059082,
0.0056145920753479005,
0.005624832153320313,
0.005636096000671387,
0.005638144016265869,
0.005660672187805176,
0.005646336078643799,
0.005628928184509278,
0.005615615844726562,
0.005606400012969971,
0.005666816234588623,
0.006527999877929688,
0.006022143840789795,
0.005673984050750733,
0.005760000228881836,
0.005634047985076904,
0.006107071876525879,
0.00603334379196167,
0.005701632022857666,
0.005606400012969971,
0.005616640090942383,
0.005623807907104492,
0.0055920639038085935,
0.0056258559226989744,
0.005610496044158936,
0.005637119770050049,
0.005585919857025146,
0.005560319900512695,
0.005608448028564453,
0.005556159973144531,
0.005602303981781006,
0.005597184181213379,
0.0055797758102417,
0.005619679927825928,
0.0055797758102417,
0.00562278413772583,
0.00559007978439331,
0.005593088150024414,
0.005690368175506591,
0.005583871841430664,
0.005645311832427978,
0.005594111919403076,
0.005627903938293457,
0.005598207950592041,
0.005605375766754151,
0.005662720203399658,
0.005631999969482422,
0.005617663860321045,
0.0055920639038085935,
0.0055920639038085935,
0.005620736122131348,
0.005571584224700928
]
},
"throughput": {
"unit": "samples/s",
"value": 172.27394615922233
},
"energy": {
"unit": "kWh",
"cpu": 6.624532922464155e-08,
"ram": 3.621930290284591e-08,
"gpu": 3.46448135631284e-07,
"total": 4.4891276775877147e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2227604.273749152
}
}
}
}