|
{ |
|
"config": { |
|
"name": "pytorch_generate", |
|
"backend": { |
|
"name": "pytorch", |
|
"version": "2.3.0+cu121", |
|
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", |
|
"task": "text-generation", |
|
"library": "transformers", |
|
"model": "google/gemma-2b", |
|
"processor": "google/gemma-2b", |
|
"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": "float16", |
|
"eval_mode": true, |
|
"to_bettertransformer": false, |
|
"low_cpu_mem_usage": null, |
|
"attn_implementation": null, |
|
"cache_implementation": "static", |
|
"autocast_enabled": false, |
|
"autocast_dtype": null, |
|
"torch_compile": true, |
|
"torch_compile_target": "forward", |
|
"torch_compile_config": { |
|
"backend": "inductor", |
|
"mode": "reduce-overhead", |
|
"fullgraph": true |
|
}, |
|
"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": 2, |
|
"duration": 0, |
|
"warmup_runs": 10, |
|
"input_shapes": { |
|
"batch_size": 1, |
|
"num_choices": 2, |
|
"sequence_length": 7 |
|
}, |
|
"new_tokens": null, |
|
"latency": true, |
|
"memory": true, |
|
"energy": false, |
|
"forward_kwargs": {}, |
|
"generate_kwargs": { |
|
"max_new_tokens": 128, |
|
"min_new_tokens": 128, |
|
"do_sample": false |
|
}, |
|
"call_kwargs": {} |
|
}, |
|
"launcher": { |
|
"name": "process", |
|
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", |
|
"device_isolation": true, |
|
"device_isolation_action": "warn", |
|
"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.217-205.860.amzn2.x86_64-x86_64-with-glibc2.29", |
|
"processor": "x86_64", |
|
"python_version": "3.8.10", |
|
"gpu": [ |
|
"NVIDIA A10G" |
|
], |
|
"gpu_count": 1, |
|
"gpu_vram_mb": 24146608128, |
|
"optimum_benchmark_version": "0.2.1", |
|
"optimum_benchmark_commit": null, |
|
"transformers_version": "4.42.0.dev0", |
|
"transformers_commit": "eed9ed679878ada2f6d2eefccdbda368cabc88b1", |
|
"accelerate_version": "0.32.0.dev0", |
|
"accelerate_commit": null, |
|
"diffusers_version": null, |
|
"diffusers_commit": null, |
|
"optimum_version": "1.21.0.dev0", |
|
"optimum_commit": null, |
|
"timm_version": "0.9.16", |
|
"timm_commit": null, |
|
"peft_version": "0.11.2.dev0", |
|
"peft_commit": null |
|
} |
|
}, |
|
"report": { |
|
"prefill": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1928.871936, |
|
"max_global_vram": 6094.848, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 5379.19488, |
|
"max_allocated": 5021.251584 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.028069279670715333, |
|
"mean": 0.014034639835357667, |
|
"stdev": 0.00011380815505981478, |
|
"p50": 0.014034639835357667, |
|
"p90": 0.014125686359405518, |
|
"p95": 0.014137067174911498, |
|
"p99": 0.014146171827316284, |
|
"values": [ |
|
0.01414844799041748, |
|
0.013920831680297851 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 498.76591648364223 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 2272.821248, |
|
"max_global_vram": 8907.128832, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 5379.19488, |
|
"max_allocated": 5027.089408 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 3.1459737548828124, |
|
"mean": 1.5729868774414062, |
|
"stdev": 0.017520202636718718, |
|
"p50": 1.5729868774414062, |
|
"p90": 1.5870030395507813, |
|
"p95": 1.588755059814453, |
|
"p99": 1.5901566760253905, |
|
"values": [ |
|
1.590507080078125, |
|
1.5554666748046875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 80.73811792160406 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 3.146998783111571, |
|
"mean": 0.012438730368029931, |
|
"stdev": 0.0009024142000934347, |
|
"p50": 0.01226035213470459, |
|
"p90": 0.012727705764770508, |
|
"p95": 0.012750642967224122, |
|
"p99": 0.012817571563720704, |
|
"values": [ |
|
0.012702848434448242, |
|
0.01272000026702881, |
|
0.01273855972290039, |
|
0.012786687850952149, |
|
0.01268019199371338, |
|
0.01277337646484375, |
|
0.012697600364685058, |
|
0.01276518440246582, |
|
0.012718079566955566, |
|
0.012714079856872559, |
|
0.012702624320983886, |
|
0.012748991966247559, |
|
0.012663616180419921, |
|
0.012716032028198243, |
|
0.012667903900146485, |
|
0.012751872062683106, |
|
0.012678144454956054, |
|
0.012725248336791992, |
|
0.012710911750793457, |
|
0.012755999565124512, |
|
0.012680159568786622, |
|
0.012722175598144531, |
|
0.012695551872253418, |
|
0.012761088371276855, |
|
0.01266585636138916, |
|
0.012809215545654297, |
|
0.012719103813171387, |
|
0.01274060821533203, |
|
0.012686528205871583, |
|
0.012731200218200683, |
|
0.01267404842376709, |
|
0.012793855667114258, |
|
0.012689408302307128, |
|
0.012774399757385254, |
|
0.012735487937927246, |
|
0.012826623916625977, |
|
0.012563455581665038, |
|
0.012733440399169921, |
|
0.012717056274414062, |
|
0.012746848106384278, |
|
0.012685215950012207, |
|
0.012676095962524414, |
|
0.012676095962524414, |
|
0.012728320121765137, |
|
0.012695551872253418, |
|
0.012716032028198243, |
|
0.012670975685119629, |
|
0.01273855972290039, |
|
0.01268019199371338, |
|
0.012930047988891602, |
|
0.012720128059387208, |
|
0.012720128059387208, |
|
0.012700672149658204, |
|
0.012706815719604492, |
|
0.01265561580657959, |
|
0.01273036766052246, |
|
0.012693504333496093, |
|
0.012698623657226562, |
|
0.012654591560363769, |
|
0.012670975685119629, |
|
0.012711935997009278, |
|
0.012749823570251465, |
|
0.012804096221923827, |
|
0.012733440399169921, |
|
0.012725248336791992, |
|
0.01273036766052246, |
|
0.012526592254638673, |
|
0.012608511924743653, |
|
0.012646400451660156, |
|
0.012578816413879394, |
|
0.012279808044433594, |
|
0.012463104248046876, |
|
0.012502016067504883, |
|
0.012577792167663575, |
|
0.01263923168182373, |
|
0.012444671630859374, |
|
0.012281951904296875, |
|
0.012396448135375977, |
|
0.012320768356323243, |
|
0.012432383537292481, |
|
0.012286975860595703, |
|
0.012257280349731446, |
|
0.012223487854003906, |
|
0.012266688346862793, |
|
0.012239680290222169, |
|
0.012272640228271485, |
|
0.012215295791625976, |
|
0.012274687767028808, |
|
0.012215295791625976, |
|
0.01226035213470459, |
|
0.012224512100219726, |
|
0.012255231857299804, |
|
0.012220416069030762, |
|
0.012255231857299804, |
|
0.012224512100219726, |
|
0.012290047645568849, |
|
0.012247039794921874, |
|
0.012259327888488769, |
|
0.012212224006652832, |
|
0.012254207611083985, |
|
0.012223487854003906, |
|
0.01226035213470459, |
|
0.012217344284057617, |
|
0.012273664474487305, |
|
0.012238847732543945, |
|
0.012257280349731446, |
|
0.012231679916381836, |
|
0.012339200019836426, |
|
0.01223475170135498, |
|
0.012254207611083985, |
|
0.012225536346435547, |
|
0.01227673625946045, |
|
0.012232704162597656, |
|
0.012256256103515625, |
|
0.012223487854003906, |
|
0.012259327888488769, |
|
0.012220416069030762, |
|
0.012266495704650878, |
|
0.012229632377624512, |
|
0.012267519950866699, |
|
0.01222758388519287, |
|
0.01225011157989502, |
|
0.01221939182281494, |
|
0.012266495704650878, |
|
0.012230655670166016, |
|
0.01225830364227295, |
|
0.02636595153808594, |
|
0.012233728408813477, |
|
0.012281855583190919, |
|
0.012228608131408691, |
|
0.012257280349731446, |
|
0.012213248252868653, |
|
0.01226137638092041, |
|
0.012241920471191407, |
|
0.01226035213470459, |
|
0.01224396800994873, |
|
0.012295167922973632, |
|
0.012223487854003906, |
|
0.012262399673461915, |
|
0.012223487854003906, |
|
0.012273664474487305, |
|
0.012224512100219726, |
|
0.012255231857299804, |
|
0.012224512100219726, |
|
0.01232588768005371, |
|
0.012223487854003906, |
|
0.012257280349731446, |
|
0.012220416069030762, |
|
0.012271615982055664, |
|
0.012215295791625976, |
|
0.012345343589782716, |
|
0.012232704162597656, |
|
0.012265472412109376, |
|
0.012230655670166016, |
|
0.012257280349731446, |
|
0.012215295791625976, |
|
0.01225216007232666, |
|
0.012212224006652832, |
|
0.012275712013244629, |
|
0.012225536346435547, |
|
0.012267519950866699, |
|
0.012218367576599122, |
|
0.012272640228271485, |
|
0.012213248252868653, |
|
0.01225113582611084, |
|
0.012216320037841797, |
|
0.01225113582611084, |
|
0.012238847732543945, |
|
0.012271615982055664, |
|
0.012209152221679688, |
|
0.01226854419708252, |
|
0.012216320037841797, |
|
0.012274687767028808, |
|
0.012232704162597656, |
|
0.012247039794921874, |
|
0.012209152221679688, |
|
0.01225830364227295, |
|
0.012216320037841797, |
|
0.012275712013244629, |
|
0.012215295791625976, |
|
0.01225113582611084, |
|
0.012225536346435547, |
|
0.012255231857299804, |
|
0.012211199760437011, |
|
0.012281855583190919, |
|
0.012246015548706055, |
|
0.012257280349731446, |
|
0.01222758388519287, |
|
0.012254207611083985, |
|
0.012231679916381836, |
|
0.012247039794921874, |
|
0.012204031944274902, |
|
0.012264448165893555, |
|
0.012353535652160644, |
|
0.012257280349731446, |
|
0.01221939182281494, |
|
0.012254207611083985, |
|
0.012217344284057617, |
|
0.01225113582611084, |
|
0.012236800193786621, |
|
0.012274687767028808, |
|
0.012229632377624512, |
|
0.012255231857299804, |
|
0.012215295791625976, |
|
0.012256256103515625, |
|
0.012208127975463867, |
|
0.012289024353027344, |
|
0.012213248252868653, |
|
0.012264448165893555, |
|
0.012249088287353516, |
|
0.01226137638092041, |
|
0.012240896224975586, |
|
0.01225113582611084, |
|
0.012221440315246582, |
|
0.01225113582611084, |
|
0.012217344284057617, |
|
0.012278783798217773, |
|
0.0122357759475708, |
|
0.01225113582611084, |
|
0.012229632377624512, |
|
0.012264448165893555, |
|
0.01222662353515625, |
|
0.012264384269714355, |
|
0.012211199760437011, |
|
0.012344320297241211, |
|
0.01224396800994873, |
|
0.012275712013244629, |
|
0.012233728408813477, |
|
0.012266495704650878, |
|
0.012211199760437011, |
|
0.01225011157989502, |
|
0.012208127975463867, |
|
0.012281855583190919, |
|
0.012225536346435547, |
|
0.012249088287353516, |
|
0.012204031944274902, |
|
0.012247039794921874, |
|
0.012239871978759765, |
|
0.01226956844329834, |
|
0.0122357759475708, |
|
0.012249088287353516, |
|
0.012239871978759765, |
|
0.012267519950866699, |
|
0.012215295791625976, |
|
0.012256256103515625, |
|
0.012211199760437011, |
|
0.01225216007232666, |
|
0.012231679916381836, |
|
0.01225830364227295, |
|
0.01223475170135498, |
|
0.012279808044433594, |
|
0.012216320037841797, |
|
0.012289024353027344 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 80.39405714350104 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |