IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
5d860e8 verified
raw
history blame
13.6 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.638784,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 363.85792
},
"latency": {
"unit": "s",
"count": 207,
"total": 1.0292172374725337,
"mean": 0.004972063949142677,
"stdev": 0.0001826264505206363,
"p50": 0.00486195182800293,
"p90": 0.005150720119476319,
"p95": 0.005173945617675781,
"p99": 0.005261148195266724,
"values": [
0.005477375984191894,
0.005017600059509277,
0.004987904071807861,
0.005039103984832764,
0.005067776203155518,
0.0051363840103149415,
0.004981760025024414,
0.005053440093994141,
0.005051392078399658,
0.005037055969238281,
0.0049797120094299315,
0.005150720119476319,
0.005022719860076904,
0.004980735778808594,
0.0050360321998596195,
0.004936704158782959,
0.00487116813659668,
0.00487014389038086,
0.004876287937164306,
0.0050954241752624516,
0.005025792121887207,
0.005150720119476319,
0.005149695873260498,
0.005174272060394287,
0.005075967788696289,
0.005122047901153564,
0.005088255882263183,
0.0050503678321838375,
0.005149695873260498,
0.005173183917999267,
0.005172224044799805,
0.005126143932342529,
0.005114880084991455,
0.005135359764099121,
0.005135359764099121,
0.005149695873260498,
0.0051363840103149415,
0.00516812801361084,
0.005212160110473632,
0.006841343879699707,
0.005150720119476319,
0.004975615978240967,
0.0050135040283203125,
0.004985856056213379,
0.00511078405380249,
0.005132287979125977,
0.005115903854370117,
0.005175295829772949,
0.005157887935638428,
0.005174272060394287,
0.00516099214553833,
0.00516096019744873,
0.0051066880226135255,
0.0050728960037231445,
0.005127168178558349,
0.005104640007019043,
0.005115903854370117,
0.005145599842071533,
0.005161983966827393,
0.005071872234344482,
0.005041152000427246,
0.0050360321998596195,
0.0050094079971313476,
0.004983808040618896,
0.005201920032501221,
0.005134335994720459,
0.00495411205291748,
0.005063680171966553,
0.0050954241752624516,
0.005092351913452148,
0.004984831809997559,
0.0050063362121582035,
0.005000192165374756,
0.005041152000427246,
0.005119999885559082,
0.00522649621963501,
0.005157887935638428,
0.005169151782989502,
0.005149695873260498,
0.005186560153961181,
0.0050769920349121095,
0.0049192957878112795,
0.0048752641677856446,
0.004858880043029785,
0.004872191905975342,
0.005029888153076172,
0.005032959938049316,
0.0050432000160217285,
0.004933631896972656,
0.005082111835479736,
0.0049797120094299315,
0.005053440093994141,
0.004963327884674072,
0.004860928058624267,
0.004859903812408447,
0.004857855796813965,
0.004857855796813965,
0.004853759765625,
0.0048558077812194825,
0.0048558077812194825,
0.0048558077812194825,
0.00486195182800293,
0.004857855796813965,
0.00506060791015625,
0.0052633600234985355,
0.005148672103881836,
0.004989952087402344,
0.004968448162078858,
0.004908031940460205,
0.004860928058624267,
0.004857855796813965,
0.005116928100585938,
0.0051968002319335935,
0.004857855796813965,
0.004860928058624267,
0.004859903812408447,
0.00486195182800293,
0.0048568320274353025,
0.004859903812408447,
0.004859903812408447,
0.004858880043029785,
0.004860928058624267,
0.0048568320274353025,
0.00485478401184082,
0.004860928058624267,
0.004857855796813965,
0.004857855796813965,
0.004857855796813965,
0.0048568320274353025,
0.004859903812408447,
0.0048558077812194825,
0.00485478401184082,
0.00486297607421875,
0.0048568320274353025,
0.00486195182800293,
0.004859903812408447,
0.0048568320274353025,
0.004857855796813965,
0.004859903812408447,
0.004853759765625,
0.004857855796813965,
0.004859903812408447,
0.004857855796813965,
0.004857855796813965,
0.0048568320274353025,
0.004857855796813965,
0.004858880043029785,
0.004859903812408447,
0.004857855796813965,
0.00486195182800293,
0.004857855796813965,
0.004857855796813965,
0.00486195182800293,
0.0048558077812194825,
0.004859903812408447,
0.0048558077812194825,
0.004857855796813965,
0.0048568320274353025,
0.0048568320274353025,
0.0048568320274353025,
0.004857855796813965,
0.0048568320274353025,
0.00485478401184082,
0.004858880043029785,
0.00485478401184082,
0.004859903812408447,
0.00485478401184082,
0.004857855796813965,
0.004859903812408447,
0.004858880043029785,
0.0048568320274353025,
0.0048558077812194825,
0.0048558077812194825,
0.004859903812408447,
0.004857855796813965,
0.0048558077812194825,
0.004857855796813965,
0.004860928058624267,
0.0048568320274353025,
0.0048568320274353025,
0.0048568320274353025,
0.004860928058624267,
0.00486195182800293,
0.0048568320274353025,
0.00486195182800293,
0.004857855796813965,
0.0048558077812194825,
0.0048558077812194825,
0.004857855796813965,
0.0048558077812194825,
0.0048527359962463375,
0.004858880043029785,
0.0048568320274353025,
0.00485478401184082,
0.00486195182800293,
0.004857855796813965,
0.004859903812408447,
0.0048568320274353025,
0.0048527359962463375,
0.0048496642112731934,
0.0048527359962463375,
0.00486195182800293,
0.004859903812408447,
0.004859903812408447,
0.00486195182800293,
0.0048558077812194825,
0.004860928058624267
]
},
"throughput": {
"unit": "samples/s",
"value": 201.12372049688298
},
"energy": {
"unit": "kWh",
"cpu": 5.766880977703591e-08,
"ram": 3.1511238599911316e-08,
"gpu": 3.5513131135849295e-07,
"total": 4.4431135973544016e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2250673.943145271
}
}
}
}