IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
2a7bbec verified
raw
history blame
12.9 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.2.1",
"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.474368,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 189,
"total": 0.998604764938354,
"mean": 0.0052836230949119285,
"stdev": 0.00011808383631781168,
"p50": 0.005287936210632324,
"p90": 0.005356134223937988,
"p95": 0.005430681705474854,
"p99": 0.005665750827789308,
"values": [
0.005637119770050049,
0.005401599884033203,
0.0055244798660278325,
0.005440512180328369,
0.005497824192047119,
0.00542310380935669,
0.0054282240867614745,
0.005443583965301513,
0.005416959762573242,
0.0058757119178771975,
0.005237760066986084,
0.0051476478576660155,
0.005203968048095703,
0.005074944019317627,
0.005037055969238281,
0.00501043176651001,
0.005017600059509277,
0.005035007953643799,
0.005004288196563721,
0.00501043176651001,
0.0050206718444824215,
0.005048319816589355,
0.0050165758132934574,
0.004997119903564453,
0.005007359981536865,
0.00502784013748169,
0.005000192165374756,
0.005078015804290771,
0.005098495960235596,
0.0053043198585510255,
0.0052899842262268066,
0.005327871799468994,
0.005288959980010987,
0.005278719902038574,
0.005305344104766845,
0.005291007995605469,
0.00530944013595581,
0.005355519771575928,
0.005292031764984131,
0.00530841588973999,
0.005344255924224854,
0.005202943801879883,
0.005251071929931641,
0.0052715520858764645,
0.00522547197341919,
0.005208064079284668,
0.005201920032501221,
0.005256192207336426,
0.0051998720169067385,
0.005204991817474365,
0.0052367358207702636,
0.005197824001312256,
0.00521830415725708,
0.005255167961120606,
0.00516812801361084,
0.0052070398330688475,
0.005232639789581299,
0.0051968002319335935,
0.005251071929931641,
0.00531660795211792,
0.005281792163848877,
0.005276671886444092,
0.00527455997467041,
0.005335008144378662,
0.0052674560546875,
0.005298175811767578,
0.005312511920928955,
0.005281792163848877,
0.005306367874145508,
0.00531660795211792,
0.005291007995605469,
0.005285888195037842,
0.005281792163848877,
0.005287936210632324,
0.005274623870849609,
0.00530841588973999,
0.005294079780578613,
0.005279744148254394,
0.005313536167144775,
0.005272575855255127,
0.005307424068450928,
0.00532480001449585,
0.005287871837615967,
0.00531763219833374,
0.005310463905334473,
0.005272575855255127,
0.005298175811767578,
0.00531660795211792,
0.005282815933227539,
0.006014976024627685,
0.005307424068450928,
0.00530944013595581,
0.0053350400924682614,
0.005340159893035889,
0.005348351955413819,
0.005325823783874512,
0.005296127796173096,
0.0053012480735778805,
0.005306335926055908,
0.005265408039093018,
0.005305344104766845,
0.005323775768280029,
0.005282815933227539,
0.005285888195037842,
0.00530841588973999,
0.005258304119110107,
0.005499904155731201,
0.005378047943115235,
0.00532480001449585,
0.005307360172271729,
0.00535859203338623,
0.005312511920928955,
0.0053340158462524415,
0.005362688064575195,
0.005285888195037842,
0.0053043198585510255,
0.005336063861846924,
0.005288959980010987,
0.0052930560111999515,
0.005347328186035156,
0.005280767917633057,
0.005303296089172363,
0.005369855880737305,
0.0053043198585510255,
0.005311488151550293,
0.005345280170440674,
0.005282815933227539,
0.005280767917633057,
0.005346303939819336,
0.005276671886444092,
0.005269504070281982,
0.005280767917633057,
0.005257215976715088,
0.005286911964416504,
0.005294079780578613,
0.00526643180847168,
0.005295104026794434,
0.005269504070281982,
0.005354496002197265,
0.0052930560111999515,
0.00531660795211792,
0.005279744148254394,
0.005298175811767578,
0.005287936210632324,
0.005268479824066162,
0.005287936210632324,
0.005279744148254394,
0.00526643180847168,
0.005274623870849609,
0.005291007995605469,
0.005245952129364013,
0.005254144191741943,
0.005303296089172363,
0.0052408318519592285,
0.005255167961120606,
0.005296127796173096,
0.0052674241065979,
0.0052633600234985355,
0.005245952129364013,
0.005249023914337158,
0.005256192207336426,
0.00526643180847168,
0.0052971520423889164,
0.005291007995605469,
0.005307456016540527,
0.005307392120361328,
0.005282847881317138,
0.005296127796173096,
0.005284863948822022,
0.00526643180847168,
0.005400576114654541,
0.005311488151550293,
0.005275648117065429,
0.005279744148254394,
0.005299200057983398,
0.005273600101470947,
0.005298175811767578,
0.005312511920928955,
0.005269504070281982,
0.0052726402282714845,
0.005306367874145508,
0.005264383792877197,
0.005287936210632324,
0.005289951801300049,
0.0052674560546875,
0.005496831893920898,
0.005432320117950439,
0.005295104026794434,
0.005306367874145508
]
},
"throughput": {
"unit": "samples/s",
"value": 189.26406786339265
},
"energy": {
"unit": "kWh",
"cpu": 6.233818088358606e-08,
"ram": 3.408229211127914e-08,
"gpu": 3.4674589143158216e-07,
"total": 4.431663644264473e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2256488.9402069473
}
}
}
}