IlyasMoutawwakil's picture
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
4a66a94 verified
raw
history blame
12.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",
"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.0",
"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.950976,
"max_global_vram": 1057.488896,
"max_process_vram": 0.0,
"max_reserved": 406.847488,
"max_allocated": 364.432384
},
"latency": {
"unit": "s",
"count": 179,
"total": 0.9978222723007203,
"mean": 0.005574426102238661,
"stdev": 0.00037754035240790504,
"p50": 0.005438464164733887,
"p90": 0.0057083902359008785,
"p95": 0.005748428678512573,
"p99": 0.007953132829666138,
"values": [
0.008453120231628418,
0.00799232006072998,
0.007942080020904541,
0.006780928134918213,
0.005932032108306885,
0.005925888061523437,
0.005929984092712402,
0.006358016014099121,
0.00557260799407959,
0.005430272102355957,
0.005444608211517334,
0.005425151824951172,
0.005583871841430664,
0.005478400230407715,
0.005440512180328369,
0.005464064121246338,
0.005440512180328369,
0.00542310380935669,
0.005447679996490478,
0.005419007778167725,
0.005448703765869141,
0.005447679996490478,
0.0054282240867614745,
0.005438464164733887,
0.005451776027679443,
0.005471231937408447,
0.0054271998405456545,
0.005430272102355957,
0.005445631980895996,
0.005431359767913819,
0.00541593599319458,
0.005432320117950439,
0.005449728012084961,
0.005416959762573242,
0.005438464164733887,
0.005429247856140137,
0.005436416149139404,
0.005432320117950439,
0.0054241280555725096,
0.00542406415939331,
0.005450751781463623,
0.005398528099060058,
0.0054282240867614745,
0.005435391902923584,
0.005411839962005615,
0.0054158720970153805,
0.005414912223815918,
0.005396480083465576,
0.005448703765869141,
0.005403647899627686,
0.0054282240867614745,
0.005436416149139404,
0.00541593599319458,
0.005431295871734619,
0.005441535949707031,
0.005421055793762207,
0.0054271998405456545,
0.005417984008789062,
0.00540169620513916,
0.00541593599319458,
0.005407743930816651,
0.005405695915222168,
0.005422080039978027,
0.005406720161437988,
0.005431295871734619,
0.0054876160621643065,
0.005464064121246338,
0.005410816192626953,
0.0054271998405456545,
0.005398528099060058,
0.005408768177032471,
0.005444608211517334,
0.005417984008789062,
0.005443583965301513,
0.00541593599319458,
0.0054282240867614745,
0.005440480232238769,
0.005416959762573242,
0.005408768177032471,
0.0054057278633117675,
0.005408768177032471,
0.005411839962005615,
0.005430272102355957,
0.005410816192626953,
0.0054241280555725096,
0.005405695915222168,
0.005411839962005615,
0.005406752109527588,
0.005408768177032471,
0.005399551868438721,
0.005403647899627686,
0.0053975038528442385,
0.005402624130249023,
0.005416959762573242,
0.005403647899627686,
0.005378047943115235,
0.005413887977600097,
0.005403647899627686,
0.005399551868438721,
0.005389311790466309,
0.005402624130249023,
0.005421055793762207,
0.0053944320678710935,
0.005404672145843506,
0.005408768177032471,
0.005391359806060791,
0.005431263923645019,
0.005421055793762207,
0.005419007778167725,
0.005413887977600097,
0.005425151824951172,
0.005426176071166992,
0.005417984008789062,
0.005400576114654541,
0.005430272102355957,
0.005413919925689697,
0.005387263774871826,
0.00542406415939331,
0.005435391902923584,
0.005408768177032471,
0.005422080039978027,
0.0056483840942382815,
0.005686272144317627,
0.0057825279235839844,
0.005659584045410156,
0.005703680038452149,
0.005666751861572266,
0.00568012809753418,
0.005715936183929443,
0.005690368175506591,
0.0057149438858032225,
0.005689343929290771,
0.005718016147613526,
0.00568832015991211,
0.005682176113128662,
0.005681151866912842,
0.005667840003967285,
0.0057292799949646,
0.005691391944885254,
0.005700607776641845,
0.005669888019561768,
0.005693439960479736,
0.00573747205734253,
0.005693439960479736,
0.005715968132019043,
0.005706751823425293,
0.005715968132019043,
0.00567193603515625,
0.005744639873504639,
0.005656576156616211,
0.005673984050750733,
0.005686272144317627,
0.005666816234588623,
0.005689343929290771,
0.005677055835723877,
0.005668863773345947,
0.005683199882507324,
0.0056780800819396975,
0.005700607776641845,
0.005670911788940429,
0.005723135948181152,
0.00567193603515625,
0.005700607776641845,
0.005684288024902344,
0.005676032066345215,
0.005684224128723145,
0.005689343929290771,
0.005688223838806152,
0.005662720203399658,
0.005681151866912842,
0.005687359809875488,
0.005628928184509278,
0.005636096000671387,
0.0055848960876464845,
0.005641215801239013,
0.005610496044158936,
0.005606400012969971,
0.00561356782913208,
0.005587967872619629
]
},
"throughput": {
"unit": "samples/s",
"value": 179.39066401802424
},
"energy": {
"unit": "kWh",
"cpu": 6.464095651239588e-08,
"ram": 3.532313313351789e-08,
"gpu": 3.6939190179347745e-07,
"total": 4.6935599143939117e-07
},
"efficiency": {
"unit": "samples/kWh",
"value": 2130578.95976413
}
}
}
}