IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
2c92166 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.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",
"numactl": false,
"numactl_kwargs": {},
"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.41.0",
"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": 875.102208,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 202,
"total": 1.0083379416465754,
"mean": 0.004991771988349386,
"stdev": 0.00016860046067463286,
"p50": 0.004860928058624267,
"p90": 0.0051968002319335935,
"p95": 0.005295872044563293,
"p99": 0.005480744976997376,
"values": [
0.005610496044158936,
0.005163008213043213,
0.005149695873260498,
0.005204991817474365,
0.0051660799980163576,
0.005256127834320068,
0.005242879867553711,
0.005189631938934326,
0.005173247814178467,
0.005155839920043945,
0.0052715520858764645,
0.0052971520423889164,
0.005132287979125977,
0.005310463905334473,
0.00515174388885498,
0.005132287979125977,
0.005108736038208008,
0.0050165758132934574,
0.004933631896972656,
0.005231616020202637,
0.005181439876556396,
0.005344255924224854,
0.005171199798583984,
0.005606400012969971,
0.005180416107177735,
0.0051968002319335935,
0.005071904182434082,
0.005138432025909424,
0.0050800638198852536,
0.005145599842071533,
0.005191679954528809,
0.005163008213043213,
0.005164031982421875,
0.005325823783874512,
0.005122047901153564,
0.005082111835479736,
0.0051363840103149415,
0.005182464122772217,
0.00515174388885498,
0.005070847988128662,
0.0049797120094299315,
0.004984831809997559,
0.004957183837890625,
0.005138432025909424,
0.005008384227752686,
0.005142528057098389,
0.0050841598510742185,
0.005101568222045898,
0.005326848030090332,
0.005312511920928955,
0.005172224044799805,
0.005202943801879883,
0.0051968002319335935,
0.005146624088287354,
0.005104640007019043,
0.005087232112884522,
0.005157887935638428,
0.005481472015380859,
0.005349376201629639,
0.005171199798583984,
0.005408768177032471,
0.005161983966827393,
0.005053440093994141,
0.005104640007019043,
0.005169151782989502,
0.00516096019744873,
0.005161983966827393,
0.005024767875671386,
0.005081088066101074,
0.005139455795288086,
0.005067776203155518,
0.00506060791015625,
0.005148672103881836,
0.005040128231048584,
0.0050165758132934574,
0.005064703941345215,
0.005222400188446045,
0.005250048160552978,
0.00520908784866333,
0.00515993595123291,
0.005135359764099121,
0.005082111835479736,
0.005182464122772217,
0.005096447944641113,
0.005067776203155518,
0.005116928100585938,
0.0050063362121582035,
0.004944896221160889,
0.004921343803405762,
0.00486195182800293,
0.004859903812408447,
0.004907008171081543,
0.005063680171966553,
0.004859903812408447,
0.0048568320274353025,
0.0048558077812194825,
0.004857855796813965,
0.004853759765625,
0.004857855796813965,
0.004857855796813965,
0.004860928058624267,
0.0048568320274353025,
0.004857855796813965,
0.004859903812408447,
0.00486297607421875,
0.0048752641677856446,
0.005051392078399658,
0.0048558077812194825,
0.0048568320274353025,
0.004853759765625,
0.004858880043029785,
0.0048568320274353025,
0.0048527359962463375,
0.00485478401184082,
0.0048568320274353025,
0.0048568320274353025,
0.0048558077812194825,
0.004853759765625,
0.004860928058624267,
0.0048568320274353025,
0.0048558077812194825,
0.00485478401184082,
0.0048558077812194825,
0.004858880043029785,
0.0048558077812194825,
0.004857855796813965,
0.004858911991119385,
0.0048568320274353025,
0.0048558077812194825,
0.0048568320274353025,
0.0048558077812194825,
0.0048558077812194825,
0.004860928058624267,
0.004857855796813965,
0.0048558077812194825,
0.004860928058624267,
0.0048568320274353025,
0.004857855796813965,
0.004859903812408447,
0.0048568320274353025,
0.0048558077812194825,
0.004860928058624267,
0.004857855796813965,
0.0048558077812194825,
0.00486195182800293,
0.004858880043029785,
0.0048558077812194825,
0.004857855796813965,
0.0048558077812194825,
0.004857855796813965,
0.004859903812408447,
0.00485478401184082,
0.004858880043029785,
0.0048558077812194825,
0.004863999843597412,
0.0048568320274353025,
0.004857855796813965,
0.004858880043029785,
0.00485478401184082,
0.004858880043029785,
0.004857855796813965,
0.004853759765625,
0.00485478401184082,
0.0048568320274353025,
0.004858880043029785,
0.004857855796813965,
0.0048568639755249025,
0.00486195182800293,
0.0048568320274353025,
0.0048568320274353025,
0.00485478401184082,
0.00485478401184082,
0.004857855796813965,
0.0048568320274353025,
0.004859903812408447,
0.0048568320274353025,
0.004857855796813965,
0.004859903812408447,
0.004859903812408447,
0.004857855796813965,
0.004851712226867676,
0.004858880043029785,
0.004857855796813965,
0.0048558077812194825,
0.004859903812408447,
0.0048527359962463375,
0.004858880043029785,
0.004857855796813965,
0.004859903812408447,
0.004857855796813965,
0.0048568320274353025,
0.004858880043029785,
0.0048558077812194825,
0.004857855796813965,
0.0048568320274353025,
0.0048568320274353025,
0.004858880043029785,
0.004859903812408447,
0.0048568320274353025,
0.004859903812408447,
0.0048568320274353025,
0.004857855796813965
]
},
"throughput": {
"unit": "samples/s",
"value": 200.32966296015996
},
"energy": {
"unit": "kWh",
"cpu": 5.765119157497238e-08,
"ram": 3.1523281729775745e-08,
"gpu": 3.5041432645283074e-07,
"total": 4.395887997575788e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2274853.2277243473
}
}
}
}