|
{ |
|
"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.293824, |
|
"system": "Linux", |
|
"machine": "x86_64", |
|
"platform": "Linux-5.10.219-208.866.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.43.0.dev0", |
|
"transformers_commit": "3345ae733b6f4aeb7204a0f3e646a3cdbaad0023", |
|
"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": 1910.12864, |
|
"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.028100192070007322, |
|
"mean": 0.014050096035003661, |
|
"stdev": 0.00011041593551635708, |
|
"p50": 0.014050096035003661, |
|
"p90": 0.014138428783416748, |
|
"p95": 0.014149470376968383, |
|
"p99": 0.014158303651809692, |
|
"values": [ |
|
0.01416051197052002, |
|
0.013939680099487305 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 498.21723513921705 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 2254.00832, |
|
"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.1145816650390623, |
|
"mean": 1.5572908325195312, |
|
"stdev": 0.0017056274414063433, |
|
"p50": 1.5572908325195312, |
|
"p90": 1.5586553344726564, |
|
"p95": 1.558825897216797, |
|
"p99": 1.5589623474121095, |
|
"values": [ |
|
1.5589964599609376, |
|
1.555585205078125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 81.55188314730364 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 3.1156469745635995, |
|
"mean": 0.012314810176140707, |
|
"stdev": 0.000889533945655596, |
|
"p50": 0.01225113582611084, |
|
"p90": 0.012283897590637208, |
|
"p95": 0.01234160614013672, |
|
"p99": 0.012682793235778807, |
|
"values": [ |
|
0.01265766429901123, |
|
0.012734463691711426, |
|
0.012710016250610351, |
|
0.012342144012451171, |
|
0.012244992256164551, |
|
0.01227785587310791, |
|
0.01223465633392334, |
|
0.012270591735839843, |
|
0.012236800193786621, |
|
0.01225334358215332, |
|
0.012228480339050293, |
|
0.012261343955993651, |
|
0.012231679916381836, |
|
0.01226854419708252, |
|
0.01221939182281494, |
|
0.01227673625946045, |
|
0.012207103729248046, |
|
0.012274687767028808, |
|
0.012223520278930665, |
|
0.012283871650695801, |
|
0.012237824440002442, |
|
0.012278783798217773, |
|
0.01223475170135498, |
|
0.012272640228271485, |
|
0.01223475170135498, |
|
0.012253184318542481, |
|
0.012231679916381836, |
|
0.012253184318542481, |
|
0.012222463607788087, |
|
0.012253184318542481, |
|
0.012217344284057617, |
|
0.012281855583190919, |
|
0.012231871604919434, |
|
0.012264255523681641, |
|
0.012228608131408691, |
|
0.012304384231567383, |
|
0.012244992256164551, |
|
0.012289024353027344, |
|
0.012213312149047851, |
|
0.012252096176147462, |
|
0.012217344284057617, |
|
0.012278783798217773, |
|
0.012215295791625976, |
|
0.01225216007232666, |
|
0.012216320037841797, |
|
0.012266495704650878, |
|
0.012229632377624512, |
|
0.012272640228271485, |
|
0.012222463607788087, |
|
0.012271615982055664, |
|
0.012230655670166016, |
|
0.012283904075622559, |
|
0.012230655670166016, |
|
0.01226035213470459, |
|
0.012244992256164551, |
|
0.01227673625946045, |
|
0.012223487854003906, |
|
0.012270591735839843, |
|
0.012233728408813477, |
|
0.01225011157989502, |
|
0.012214271545410157, |
|
0.01226137638092041, |
|
0.012214271545410157, |
|
0.01225830364227295, |
|
0.012217344284057617, |
|
0.01225830364227295, |
|
0.012220416069030762, |
|
0.012324864387512208, |
|
0.012230655670166016, |
|
0.012272831916809081, |
|
0.012226367950439453, |
|
0.012265472412109376, |
|
0.012230655670166016, |
|
0.012253184318542481, |
|
0.012224512100219726, |
|
0.012271615982055664, |
|
0.012210176467895508, |
|
0.012470272064208985, |
|
0.012239871978759765, |
|
0.012288000106811523, |
|
0.01234124755859375, |
|
0.012447744369506837, |
|
0.012506112098693848, |
|
0.012497920036315918, |
|
0.012489727973937988, |
|
0.012422143936157226, |
|
0.012259327888488769, |
|
0.012272640228271485, |
|
0.012225536346435547, |
|
0.01225216007232666, |
|
0.012218367576599122, |
|
0.012267519950866699, |
|
0.012218367576599122, |
|
0.012278783798217773, |
|
0.012228608131408691, |
|
0.012319744110107422, |
|
0.01225830364227295, |
|
0.012264448165893555, |
|
0.01222758388519287, |
|
0.012265472412109376, |
|
0.012226559638977052, |
|
0.012244992256164551, |
|
0.01221235179901123, |
|
0.012258175849914552, |
|
0.01223475170135498, |
|
0.01224294376373291, |
|
0.012205056190490723, |
|
0.012256256103515625, |
|
0.012217344284057617, |
|
0.012262528419494628, |
|
0.012237695693969727, |
|
0.012265472412109376, |
|
0.01223475170135498, |
|
0.012283904075622559, |
|
0.01221939182281494, |
|
0.012247039794921874, |
|
0.012200960159301758, |
|
0.01226035213470459, |
|
0.012218367576599122, |
|
0.012282879829406738, |
|
0.012226559638977052, |
|
0.012265472412109376, |
|
0.012222463607788087, |
|
0.012275712013244629, |
|
0.012233728408813477, |
|
0.012256256103515625, |
|
0.026396671295166017, |
|
0.012229632377624512, |
|
0.012256256103515625, |
|
0.012217344284057617, |
|
0.01226137638092041, |
|
0.012241920471191407, |
|
0.012269760131835937, |
|
0.012221247673034667, |
|
0.012316672325134278, |
|
0.01224294376373291, |
|
0.012265472412109376, |
|
0.012231679916381836, |
|
0.012266495704650878, |
|
0.012211199760437011, |
|
0.01226854419708252, |
|
0.012212224006652832, |
|
0.012262399673461915, |
|
0.012223584175109863, |
|
0.012274592399597169, |
|
0.012226559638977052, |
|
0.012255231857299804, |
|
0.01221939182281494, |
|
0.012396544456481933, |
|
0.012265472412109376, |
|
0.012282879829406738, |
|
0.012233728408813477, |
|
0.012282015800476075, |
|
0.01223356819152832, |
|
0.012264448165893555, |
|
0.012211199760437011, |
|
0.012240063667297364, |
|
0.012213055610656737, |
|
0.012271615982055664, |
|
0.012223487854003906, |
|
0.012254207611083985, |
|
0.012215295791625976, |
|
0.012247039794921874, |
|
0.012225536346435547, |
|
0.01226956844329834, |
|
0.012239871978759765, |
|
0.012267519950866699, |
|
0.012237824440002442, |
|
0.012282879829406738, |
|
0.012212224006652832, |
|
0.01225113582611084, |
|
0.012208127975463867, |
|
0.01226854419708252, |
|
0.012256256103515625, |
|
0.012265472412109376, |
|
0.01223475170135498, |
|
0.012257280349731446, |
|
0.012217344284057617, |
|
0.012286975860595703, |
|
0.012225536346435547, |
|
0.012256256103515625, |
|
0.012230655670166016, |
|
0.012283904075622559, |
|
0.012218367576599122, |
|
0.01226956844329834, |
|
0.012217344284057617, |
|
0.012247039794921874, |
|
0.012211199760437011, |
|
0.01226137638092041, |
|
0.01223475170135498, |
|
0.01225216007232666, |
|
0.012218367576599122, |
|
0.012262399673461915, |
|
0.012209152221679688, |
|
0.012254207611083985, |
|
0.012223487854003906, |
|
0.012275712013244629, |
|
0.012212224006652832, |
|
0.012267519950866699, |
|
0.012228608131408691, |
|
0.012262399673461915, |
|
0.012224512100219726, |
|
0.012264448165893555, |
|
0.01221939182281494, |
|
0.01225011157989502, |
|
0.012390399932861328, |
|
0.012271615982055664, |
|
0.012226559638977052, |
|
0.01226956844329834, |
|
0.012208127975463867, |
|
0.012272640228271485, |
|
0.012238847732543945, |
|
0.01226854419708252, |
|
0.012236800193786621, |
|
0.012275712013244629, |
|
0.012230655670166016, |
|
0.012257280349731446, |
|
0.012232704162597656, |
|
0.012270591735839843, |
|
0.012206080436706544, |
|
0.012238847732543945, |
|
0.012228608131408691, |
|
0.012262399673461915, |
|
0.012222463607788087, |
|
0.01226854419708252, |
|
0.012209152221679688, |
|
0.012270591735839843, |
|
0.012218367576599122, |
|
0.01225830364227295, |
|
0.012220416069030762, |
|
0.012271615982055664, |
|
0.01223475170135498, |
|
0.01225011157989502, |
|
0.012223487854003906, |
|
0.012255231857299804, |
|
0.01224294376373291, |
|
0.012255231857299804, |
|
0.012222463607788087, |
|
0.012263423919677734, |
|
0.012216320037841797, |
|
0.012256256103515625, |
|
0.012208127975463867, |
|
0.012253184318542481, |
|
0.012200960159301758, |
|
0.01225113582611084, |
|
0.012207103729248046, |
|
0.01226956844329834, |
|
0.01229312038421631, |
|
0.012308480262756348, |
|
0.012206080436706544, |
|
0.012267519950866699, |
|
0.012224512100219726, |
|
0.01225113582611084 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 81.2030381058936 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |