IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
f782152 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.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.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.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 827.12576,
"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.35356494140625,
"mean": 7.35356494140625,
"stdev": 0.0,
"p50": 7.35356494140625,
"p90": 7.35356494140625,
"p95": 7.35356494140625,
"p99": 7.35356494140625,
"values": [
7.35356494140625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 1.4474752944452343e-06,
"ram": 7.772460733315623e-07,
"gpu": 1.7466680640003396e-06,
"total": 3.971389431777136e-06
},
"efficiency": null
},
"forward": {
"memory": {
"unit": "MB",
"max_ram": 1035.706368,
"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.9998550357818609,
"mean": 0.005318377849903512,
"stdev": 0.0003389986043676002,
"p50": 0.00550707197189331,
"p90": 0.005643878221511841,
"p95": 0.005690470337867737,
"p99": 0.005853255634307861,
"values": [
0.00567193603515625,
0.005695487976074219,
0.005681151866912842,
0.005697535991668701,
0.005785568237304688,
0.005677120208740234,
0.0057149438858032225,
0.005609471797943116,
0.005599232196807862,
0.0056483840942382815,
0.005581823825836182,
0.0055316481590271,
0.005559296131134033,
0.005575679779052735,
0.005533696174621582,
0.005669888019561768,
0.005553152084350586,
0.005401599884033203,
0.005409791946411133,
0.005505023956298828,
0.005544960021972656,
0.005582848072052002,
0.005583871841430664,
0.005629951953887939,
0.005616640090942383,
0.005604351997375488,
0.005631999969482422,
0.005552127838134766,
0.005541888236999512,
0.005565440177917481,
0.005623807907104492,
0.005588992118835449,
0.005636096000671387,
0.0055848960876464845,
0.005549056053161621,
0.005601280212402344,
0.0055244798660278325,
0.005582848072052002,
0.005566463947296142,
0.005535744190216065,
0.005602367877960205,
0.005544960021972656,
0.0054436478614807125,
0.00551423978805542,
0.005430240154266358,
0.005819392204284668,
0.005590015888214111,
0.005643263816833496,
0.005544960021972656,
0.005511168003082275,
0.005517312049865723,
0.005534719944000244,
0.0055623679161071774,
0.005645311832427978,
0.005639167785644531,
0.005673984050750733,
0.005620736122131348,
0.005607359886169434,
0.005547008037567139,
0.00552345609664917,
0.0055203838348388675,
0.005591040134429932,
0.005610496044158936,
0.005559296131134033,
0.005496831893920898,
0.005583871841430664,
0.005725183963775635,
0.005615615844726562,
0.005478400230407715,
0.005442560195922852,
0.005848063945770264,
0.005545983791351319,
0.005543935775756836,
0.005632991790771484,
0.005529600143432617,
0.005470208168029785,
0.005536767959594726,
0.005518335819244385,
0.005529600143432617,
0.005517312049865723,
0.0055203838348388675,
0.00552243185043335,
0.005560319900512695,
0.005588992118835449,
0.0055920639038085935,
0.0056514558792114256,
0.005641215801239013,
0.005656576156616211,
0.005615615844726562,
0.005602303981781006,
0.005578752040863037,
0.005550079822540284,
0.005631999969482422,
0.005578752040863037,
0.005442560195922852,
0.005550079822540284,
0.005560319900512695,
0.005484543800354004,
0.005888000011444092,
0.005509119987487793,
0.005390336036682129,
0.005261312007904053,
0.005409791946411133,
0.005492735862731934,
0.0053350400924682614,
0.0052326078414916995,
0.005272575855255127,
0.005181439876556396,
0.005241856098175048,
0.00534009599685669,
0.005471231937408447,
0.005537856101989746,
0.005497824192047119,
0.005496831893920898,
0.005553152084350586,
0.005549056053161621,
0.005703680038452149,
0.0054917120933532714,
0.005338111877441406,
0.005319680213928223,
0.005307360172271729,
0.005307392120361328,
0.005900288105010986,
0.005161983966827393,
0.004957183837890625,
0.004968448162078858,
0.004899839878082276,
0.004874239921569825,
0.004865024089813232,
0.0048455681800842285,
0.004907008171081543,
0.0048558077812194825,
0.00486297607421875,
0.0048568320274353025,
0.004891647815704346,
0.00486195182800293,
0.0048568320274353025,
0.0048261117935180665,
0.0048261117935180665,
0.0048230400085449215,
0.004825088024139404,
0.0048261117935180665,
0.0048261117935180665,
0.004828159809112549,
0.0048558077812194825,
0.0048895998001098635,
0.004898816108703613,
0.0049090561866760255,
0.004830207824707031,
0.004840447902679444,
0.004827136039733886,
0.0048261117935180665,
0.004825088024139404,
0.0048261117935180665,
0.004830207824707031,
0.0048261117935180665,
0.004827136039733886,
0.004830207824707031,
0.004825088024139404,
0.004825088024139404,
0.004824063777923584,
0.0048261117935180665,
0.004829184055328369,
0.005295104026794434,
0.004890624046325683,
0.004869120121002197,
0.004872191905975342,
0.004903935909271241,
0.004883456230163574,
0.0048895998001098635,
0.00486195182800293,
0.004874239921569825,
0.004896768093109131,
0.004868095874786377,
0.00487014389038086,
0.004877312183380127,
0.004888576030731201,
0.004868095874786377,
0.004899839878082276,
0.0048855037689208985,
0.004895743846893311,
0.004910079956054687,
0.004903935909271241,
0.004865024089813232,
0.004836351871490479,
0.004837376117706299,
0.00496127986907959,
0.00491315221786499
]
},
"throughput": {
"unit": "samples/s",
"value": 188.0272572243325
},
"energy": {
"unit": "kWh",
"cpu": 5.7275399265293465e-08,
"ram": 3.131388275321049e-08,
"gpu": 3.285966128502461e-07,
"total": 4.1718589486875005e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2397012.9678392117
}
}
}
}