cuda
/
cuda_inference_transformers_image-classification_google
/vit-base-patch16-224
/benchmark.json

IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_image-classification_google/vit-base-patch16-224/benchmark.json with huggingface_hub
8677b4e
verified
{ | |
"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", | |
"model": "google/vit-base-patch16-224", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"forward": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 911.91296, | |
"max_global_vram": 1057.488896, | |
"max_process_vram": 0.0, | |
"max_reserved": 406.847488, | |
"max_allocated": 364.432384 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 172, | |
"total": 0.9999154911041255, | |
"mean": 0.005813462157582128, | |
"stdev": 0.0002542731342428204, | |
"p50": 0.005748736143112183, | |
"p90": 0.005971865749359131, | |
"p95": 0.006220799922943115, | |
"p99": 0.0069975960683822626, | |
"values": [ | |
0.006500383853912353, | |
0.006149119853973388, | |
0.006220799922943115, | |
0.006145023822784424, | |
0.006281216144561768, | |
0.006121471881866455, | |
0.006211584091186524, | |
0.005882880210876465, | |
0.0059238080978393556, | |
0.005797952175140381, | |
0.006148096084594727, | |
0.006367231845855713, | |
0.005827583789825439, | |
0.0058009600639343266, | |
0.005831679821014404, | |
0.005786623954772949, | |
0.005688352108001709, | |
0.005698560237884521, | |
0.0057292799949646, | |
0.005767168045043946, | |
0.0057825279235839844, | |
0.005848063945770264, | |
0.005786623954772949, | |
0.005838784217834472, | |
0.005846015930175781, | |
0.005823488235473633, | |
0.005753824234008789, | |
0.005783552169799804, | |
0.0058009600639343266, | |
0.005832704067230224, | |
0.005843967914581299, | |
0.00582860803604126, | |
0.005790719985961914, | |
0.00581324815750122, | |
0.0057712640762329105, | |
0.005731264114379883, | |
0.005792768001556397, | |
0.005855231761932373, | |
0.005855231761932373, | |
0.005796927928924561, | |
0.005723135948181152, | |
0.0056442880630493165, | |
0.005659647941589355, | |
0.005692416191101074, | |
0.0057497601509094234, | |
0.00572211217880249, | |
0.005702655792236328, | |
0.0057825279235839844, | |
0.005745664119720459, | |
0.005961728096008301, | |
0.0060631041526794435, | |
0.005914656162261963, | |
0.005844031810760498, | |
0.005895167827606201, | |
0.005837823867797852, | |
0.005805056095123291, | |
0.005763072013854981, | |
0.005731328010559082, | |
0.005823488235473633, | |
0.0058091521263122555, | |
0.005882880210876465, | |
0.005970943927764893, | |
0.005979167938232422, | |
0.0057794561386108395, | |
0.005734399795532226, | |
0.005742591857910156, | |
0.005794816017150879, | |
0.005751808166503906, | |
0.005781504154205322, | |
0.005863423824310303, | |
0.005815296173095703, | |
0.00570470380783081, | |
0.005696512222290039, | |
0.005764095783233642, | |
0.005758975982666016, | |
0.005756927967071533, | |
0.005799935817718506, | |
0.005747712135314941, | |
0.005753856182098388, | |
0.005747712135314941, | |
0.005809088230133056, | |
0.005834752082824707, | |
0.005971968173980713, | |
0.005847040176391601, | |
0.005898240089416504, | |
0.005823488235473633, | |
0.00582860803604126, | |
0.005810175895690918, | |
0.005807104110717773, | |
0.005708799839019775, | |
0.00581324815750122, | |
0.005743616104125977, | |
0.0056852478981018065, | |
0.005629951953887939, | |
0.005518335819244385, | |
0.005540863990783691, | |
0.005699584007263184, | |
0.005670911788940429, | |
0.005488639831542969, | |
0.005448703765869141, | |
0.0055244798660278325, | |
0.005447679996490478, | |
0.005477375984191894, | |
0.005512191772460938, | |
0.006878176212310791, | |
0.006965248107910156, | |
0.007049215793609619, | |
0.007128064155578613, | |
0.006976511955261231, | |
0.006220799922943115, | |
0.005944320201873779, | |
0.005910528182983398, | |
0.005844992160797119, | |
0.005791744232177734, | |
0.005780479907989502, | |
0.005844992160797119, | |
0.005731328010559082, | |
0.005692416191101074, | |
0.005708799839019775, | |
0.005716991901397705, | |
0.00571289587020874, | |
0.005716991901397705, | |
0.005745664119720459, | |
0.005728256225585937, | |
0.005695487976074219, | |
0.005692416191101074, | |
0.0057497601509094234, | |
0.005698560237884521, | |
0.005732351779937744, | |
0.005691391944885254, | |
0.005715968132019043, | |
0.00577839994430542, | |
0.005661695957183838, | |
0.005709824085235596, | |
0.005682176113128662, | |
0.005698560237884521, | |
0.005697535991668701, | |
0.005683199882507324, | |
0.005703680038452149, | |
0.005662720203399658, | |
0.005694464206695556, | |
0.005653503894805908, | |
0.005709760189056397, | |
0.005667840003967285, | |
0.005697535991668701, | |
0.00568012809753418, | |
0.005668863773345947, | |
0.005693439960479736, | |
0.005700607776641845, | |
0.005702655792236328, | |
0.005716991901397705, | |
0.005687295913696289, | |
0.00572211217880249, | |
0.00567190408706665, | |
0.005716991901397705, | |
0.005694464206695556, | |
0.005702655792236328, | |
0.005692416191101074, | |
0.005691391944885254, | |
0.005691391944885254, | |
0.005713920116424561, | |
0.005692416191101074, | |
0.005692416191101074, | |
0.005710847854614258, | |
0.00572108793258667, | |
0.0057149438858032225, | |
0.005709824085235596, | |
0.005675007820129394, | |
0.005703680038452149, | |
0.005686272144317627, | |
0.005710847854614258, | |
0.005692480087280273 | |
] | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 172.01453675857573 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.456846362294782e-08, | |
"ram": 3.530268417426155e-08, | |
"gpu": 3.543662255217411e-07, | |
"total": 4.542373733189505e-07 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 2201492.1244664583 | |
} | |
} | |
} | |
} |