hf-transformers-bot's picture
Upload folder using huggingface_hub
df108f2 verified
raw
history blame
17 kB
{
"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": "940fde8dafaecb8f17b588c5078291f1c1a420c8",
"accelerate_version": "0.31.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": 1917.341696,
"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.02800761604309082,
"mean": 0.01400380802154541,
"stdev": 0.00011616039276123036,
"p50": 0.01400380802154541,
"p90": 0.014096736335754395,
"p95": 0.014108352375030518,
"p99": 0.014117645206451417,
"values": [
0.014119968414306641,
0.01388764762878418
]
},
"throughput": {
"unit": "tokens/s",
"value": 499.86403621288036
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 2261.151744,
"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.1189302978515627,
"mean": 1.5594651489257814,
"stdev": 0.0020779418945312544,
"p50": 1.5594651489257814,
"p90": 1.5611275024414062,
"p95": 1.5613352966308593,
"p99": 1.561501531982422,
"values": [
1.5615430908203125,
1.55738720703125
]
},
"throughput": {
"unit": "tokens/s",
"value": 81.4381777543938
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 253,
"total": 3.119921157836915,
"mean": 0.012331704181173573,
"stdev": 0.0008893472583592356,
"p50": 0.01226137638092041,
"p90": 0.012300083351135254,
"p95": 0.012464742469787597,
"p99": 0.012753510475158691,
"values": [
0.012698623657226562,
0.012743680000305176,
0.012716032028198243,
0.012770303726196289,
0.01273855972290039,
0.012329983711242675,
0.01234329605102539,
0.012280832290649414,
0.0122357759475708,
0.01227673625946045,
0.012229632377624512,
0.012272640228271485,
0.012240896224975586,
0.01225830364227295,
0.012256256103515625,
0.012281855583190919,
0.012236800193786621,
0.012277759552001954,
0.012231679916381836,
0.012271615982055664,
0.012225536346435547,
0.012274687767028808,
0.01221939182281494,
0.01227673625946045,
0.012230655670166016,
0.01226035213470459,
0.01223475170135498,
0.01227673625946045,
0.012231679916381836,
0.012279808044433594,
0.012254207611083985,
0.012283904075622559,
0.01223475170135498,
0.012274687767028808,
0.012230655670166016,
0.01228492832183838,
0.012238847732543945,
0.012270591735839843,
0.01224294376373291,
0.01226854419708252,
0.012233728408813477,
0.01226956844329834,
0.012224543571472167,
0.012264415740966797,
0.012224575996398927,
0.012294079780578613,
0.012246015548706055,
0.012273664474487305,
0.012233728408813477,
0.012278783798217773,
0.012226559638977052,
0.01226137638092041,
0.012223487854003906,
0.01227673625946045,
0.01222758388519287,
0.012272640228271485,
0.012229632377624512,
0.012272640228271485,
0.012220416069030762,
0.01226137638092041,
0.012236800193786621,
0.012299263954162597,
0.012244000434875488,
0.012275679588317871,
0.012232704162597656,
0.012267519950866699,
0.012231679916381836,
0.01226137638092041,
0.012223487854003906,
0.012262399673461915,
0.012228608131408691,
0.01226854419708252,
0.012224575996398927,
0.01227667236328125,
0.012218367576599122,
0.012271615982055664,
0.01222758388519287,
0.012302335739135742,
0.01226035213470459,
0.01245081615447998,
0.012559359550476074,
0.01247436809539795,
0.01245900821685791,
0.012480511665344238,
0.01276416015625,
0.012314623832702636,
0.012283904075622559,
0.012311552047729492,
0.012238847732543945,
0.012283904075622559,
0.012230655670166016,
0.012266495704650878,
0.012226592063903809,
0.012273632049560546,
0.012224512100219726,
0.012270591735839843,
0.012229632377624512,
0.012274687767028808,
0.012225536346435547,
0.012256256103515625,
0.01222758388519287,
0.012296192169189453,
0.012277759552001954,
0.012295167922973632,
0.012228608131408691,
0.012272640228271485,
0.012230655670166016,
0.01226137638092041,
0.012229632377624512,
0.01226854419708252,
0.0122357759475708,
0.01226956844329834,
0.012222463607788087,
0.012266495704650878,
0.01224396800994873,
0.012257280349731446,
0.012221440315246582,
0.012273664474487305,
0.012255231857299804,
0.012274687767028808,
0.012228608131408691,
0.01226956844329834,
0.01223475170135498,
0.012272640228271485,
0.012473343849182129,
0.012300288200378418,
0.026376192092895507,
0.012257280349731446,
0.012279808044433594,
0.012225536346435547,
0.012282879829406738,
0.012233728408813477,
0.01227673625946045,
0.012239904403686523,
0.012277728080749511,
0.012249088287353516,
0.012274687767028808,
0.012248064041137695,
0.012267519950866699,
0.012244992256164551,
0.012292096138000488,
0.012228608131408691,
0.012259327888488769,
0.012233728408813477,
0.012263423919677734,
0.012233728408813477,
0.012270591735839843,
0.012218367576599122,
0.012296192169189453,
0.012222463607788087,
0.012273664474487305,
0.01223475170135498,
0.012264448165893555,
0.012237824440002442,
0.01226956844329834,
0.012240896224975586,
0.012283904075622559,
0.012222463607788087,
0.012256256103515625,
0.012224512100219726,
0.012267519950866699,
0.012217344284057617,
0.012281855583190919,
0.012220416069030762,
0.012285951614379884,
0.012225536346435547,
0.01226854419708252,
0.012229632377624512,
0.01226137638092041,
0.012225536346435547,
0.012267519950866699,
0.012248064041137695,
0.012285951614379884,
0.012230655670166016,
0.012270591735839843,
0.012229632377624512,
0.012259327888488769,
0.012224512100219726,
0.012257280349731446,
0.012230655670166016,
0.012265472412109376,
0.012228608131408691,
0.012294143676757812,
0.012223487854003906,
0.012264448165893555,
0.012230655670166016,
0.012275712013244629,
0.01224294376373291,
0.01228492832183838,
0.012230655670166016,
0.012257280349731446,
0.012225536346435547,
0.01226956844329834,
0.012228608131408691,
0.012270591735839843,
0.012236800193786621,
0.012263423919677734,
0.012231679916381836,
0.012280832290649414,
0.012240896224975586,
0.012264448165893555,
0.012225536346435547,
0.012257280349731446,
0.01224294376373291,
0.012357631683349609,
0.01225216007232666,
0.012278783798217773,
0.012222463607788087,
0.012274687767028808,
0.012231679916381836,
0.012277759552001954,
0.01224294376373291,
0.012263423919677734,
0.012230655670166016,
0.012280832290649414,
0.012218367576599122,
0.012271615982055664,
0.01225011157989502,
0.012303359985351562,
0.012244992256164551,
0.012272640228271485,
0.012213248252868653,
0.012262399673461915,
0.012233728408813477,
0.012278783798217773,
0.012230655670166016,
0.012267519950866699,
0.012216320037841797,
0.012265472412109376,
0.012222463607788087,
0.012259327888488769,
0.01221939182281494,
0.012273664474487305,
0.012217344284057617,
0.012298239707946777,
0.01225830364227295,
0.01226137638092041,
0.01239244842529297,
0.012315648078918457,
0.01221939182281494,
0.012273664474487305,
0.012221440315246582,
0.01226137638092041,
0.012228608131408691,
0.012266495704650878,
0.012275712013244629,
0.012360704421997071,
0.012640255928039551,
0.012609536170959473,
0.01224294376373291,
0.01226956844329834,
0.012231679916381836,
0.012271615982055664
]
},
"throughput": {
"unit": "tokens/s",
"value": 81.09179277318934
},
"energy": null,
"efficiency": null
}
}
}