|
{ |
|
"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": false, |
|
"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": "9ba9369a2557e53a01378199a9839ec6e82d8bc7", |
|
"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": 1751.093248, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5036.936192 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.044326559066772464, |
|
"mean": 0.022163279533386232, |
|
"stdev": 0.000232848167419435, |
|
"p50": 0.022163279533386232, |
|
"p90": 0.02234955806732178, |
|
"p95": 0.022372842884063722, |
|
"p99": 0.022391470737457276, |
|
"values": [ |
|
0.022396127700805665, |
|
0.021930431365966795 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 315.8377346391976 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1751.109632, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5036.936704 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 5.20942333984375, |
|
"mean": 2.604711669921875, |
|
"stdev": 0.030142333984374936, |
|
"p50": 2.604711669921875, |
|
"p90": 2.6288255371093747, |
|
"p95": 2.6318397705078125, |
|
"p99": 2.6342511572265623, |
|
"values": [ |
|
2.63485400390625, |
|
2.5745693359375 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.75779590752523 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.2104417285919205, |
|
"mean": 0.020594631338307978, |
|
"stdev": 0.001470644962648931, |
|
"p50": 0.020199424743652345, |
|
"p90": 0.02118328399658203, |
|
"p95": 0.021293465042114258, |
|
"p99": 0.02269499359130859, |
|
"values": [ |
|
0.02190336036682129, |
|
0.022136831283569337, |
|
0.02243891143798828, |
|
0.020356096267700196, |
|
0.020159488677978517, |
|
0.020214784622192384, |
|
0.02019327926635742, |
|
0.022972415924072266, |
|
0.021515264511108398, |
|
0.021219327926635743, |
|
0.021132287979125978, |
|
0.021127231597900392, |
|
0.02116294479370117, |
|
0.021133312225341795, |
|
0.021123071670532227, |
|
0.02106982421875, |
|
0.02119987106323242, |
|
0.02021990394592285, |
|
0.02023526382446289, |
|
0.020152320861816408, |
|
0.020156415939331054, |
|
0.020139007568359374, |
|
0.020171775817871093, |
|
0.020161535263061522, |
|
0.02020147132873535, |
|
0.020170751571655272, |
|
0.020190208435058594, |
|
0.02011238479614258, |
|
0.020115455627441405, |
|
0.020075519561767577, |
|
0.020718591690063477, |
|
0.02105548858642578, |
|
0.021086208343505858, |
|
0.020133888244628906, |
|
0.020918272018432618, |
|
0.020231168746948244, |
|
0.020100095748901366, |
|
0.02010419273376465, |
|
0.020137983322143553, |
|
0.02012057685852051, |
|
0.020212736129760742, |
|
0.020747264862060546, |
|
0.02017791938781738, |
|
0.020229120254516602, |
|
0.020779008865356444, |
|
0.020563968658447264, |
|
0.020758527755737305, |
|
0.021117952346801756, |
|
0.021744640350341796, |
|
0.02167500877380371, |
|
0.020385791778564453, |
|
0.020195327758789062, |
|
0.020146175384521483, |
|
0.020092927932739257, |
|
0.0200949764251709, |
|
0.021133312225341795, |
|
0.021090303421020508, |
|
0.02108006477355957, |
|
0.02126540756225586, |
|
0.021144575119018554, |
|
0.02023628807067871, |
|
0.020165632247924805, |
|
0.020172800064086914, |
|
0.020136959075927736, |
|
0.020199424743652345, |
|
0.020134912490844727, |
|
0.020129791259765627, |
|
0.020185087203979494, |
|
0.020168703079223634, |
|
0.020611072540283205, |
|
0.021169151306152344, |
|
0.021113855361938477, |
|
0.021154815673828126, |
|
0.021195775985717775, |
|
0.021341184616088867, |
|
0.021196800231933592, |
|
0.021148672103881837, |
|
0.02106470489501953, |
|
0.023657472610473632, |
|
0.021312511444091797, |
|
0.021132287979125978, |
|
0.021182464599609374, |
|
0.021155839920043946, |
|
0.020144128799438478, |
|
0.02017791938781738, |
|
0.020134912490844727, |
|
0.020206592559814454, |
|
0.020166656494140626, |
|
0.02022604751586914, |
|
0.02025984001159668, |
|
0.02070425605773926, |
|
0.02021785545349121, |
|
0.020189184188842774, |
|
0.020170751571655272, |
|
0.020183040618896485, |
|
0.020200447082519533, |
|
0.02021990394592285, |
|
0.02023628807067871, |
|
0.0202608642578125, |
|
0.020587520599365236, |
|
0.02123161506652832, |
|
0.021122047424316406, |
|
0.021168127059936523, |
|
0.021163007736206055, |
|
0.021212160110473634, |
|
0.02105548858642578, |
|
0.02145280075073242, |
|
0.021188608169555666, |
|
0.021193727493286133, |
|
0.0212807674407959, |
|
0.021168127059936523, |
|
0.02106879997253418, |
|
0.021176319122314453, |
|
0.02022809600830078, |
|
0.020205568313598633, |
|
0.020204544067382812, |
|
0.020745216369628908, |
|
0.021185535430908203, |
|
0.021147647857666017, |
|
0.021143552780151367, |
|
0.021133312225341795, |
|
0.021152767181396484, |
|
0.021197824478149413, |
|
0.021106687545776368, |
|
0.021183488845825195, |
|
0.021114879608154297, |
|
0.042308609008789064, |
|
0.020166656494140626, |
|
0.020166656494140626, |
|
0.020159488677978517, |
|
0.020160512924194338, |
|
0.020184064865112306, |
|
0.020154367446899413, |
|
0.020136959075927736, |
|
0.020213760375976563, |
|
0.020221952438354493, |
|
0.02022400093078613, |
|
0.020745216369628908, |
|
0.019955711364746095, |
|
0.020165632247924805, |
|
0.020137983322143553, |
|
0.020155391693115234, |
|
0.020161535263061522, |
|
0.020166656494140626, |
|
0.020114431381225584, |
|
0.020143104553222657, |
|
0.020160512924194338, |
|
0.02016972732543945, |
|
0.020187135696411132, |
|
0.020151296615600587, |
|
0.020139007568359374, |
|
0.020154367446899413, |
|
0.020117504119873047, |
|
0.02024038314819336, |
|
0.02011955261230469, |
|
0.020172800064086914, |
|
0.02042163276672363, |
|
0.021320703506469727, |
|
0.02109337615966797, |
|
0.021008384704589843, |
|
0.020975616455078124, |
|
0.020195327758789062, |
|
0.020137983322143553, |
|
0.02023321533203125, |
|
0.020133888244628906, |
|
0.020371456146240235, |
|
0.020212736129760742, |
|
0.020149248123168945, |
|
0.020378623962402344, |
|
0.020157440185546875, |
|
0.020157440185546875, |
|
0.020147199630737304, |
|
0.020174848556518556, |
|
0.020178943634033202, |
|
0.020172800064086914, |
|
0.020137983322143553, |
|
0.020147199630737304, |
|
0.020159488677978517, |
|
0.020122623443603514, |
|
0.020185087203979494, |
|
0.020182016372680665, |
|
0.020163583755493163, |
|
0.020156415939331054, |
|
0.02079641532897949, |
|
0.021130239486694336, |
|
0.020938751220703124, |
|
0.02106265640258789, |
|
0.020156415939331054, |
|
0.020164608001708984, |
|
0.020123647689819335, |
|
0.019969024658203126, |
|
0.019974143981933593, |
|
0.02007347106933594, |
|
0.020118528366088868, |
|
0.020144128799438478, |
|
0.020152320861816408, |
|
0.020137983322143553, |
|
0.020189184188842774, |
|
0.02070425605773926, |
|
0.020960256576538085, |
|
0.020940799713134766, |
|
0.020916223526000977, |
|
0.02089472007751465, |
|
0.021094400405883788, |
|
0.02021887969970703, |
|
0.020191232681274415, |
|
0.020178943634033202, |
|
0.02016972732543945, |
|
0.020231168746948244, |
|
0.02020351982116699, |
|
0.020287488937377928, |
|
0.020165632247924805, |
|
0.020146175384521483, |
|
0.020141056060791016, |
|
0.020116479873657226, |
|
0.020165632247924805, |
|
0.020139007568359374, |
|
0.020184064865112306, |
|
0.02020351982116699, |
|
0.020151296615600587, |
|
0.020170751571655272, |
|
0.02011955261230469, |
|
0.020135936737060548, |
|
0.020136959075927736, |
|
0.020123647689819335, |
|
0.020585472106933594, |
|
0.020979711532592774, |
|
0.020192256927490236, |
|
0.020200447082519533, |
|
0.02019430351257324, |
|
0.020182016372680665, |
|
0.02021171188354492, |
|
0.020187135696411132, |
|
0.02023628807067871, |
|
0.02017791938781738, |
|
0.020274175643920898, |
|
0.020179967880249023, |
|
0.020150272369384766, |
|
0.020178943634033202, |
|
0.020144128799438478, |
|
0.019984384536743165, |
|
0.020179967880249023, |
|
0.020162559509277343, |
|
0.02024345588684082, |
|
0.020176895141601564, |
|
0.020160512924194338, |
|
0.020091903686523437, |
|
0.020168703079223634, |
|
0.020164608001708984, |
|
0.020187135696411132, |
|
0.020144128799438478, |
|
0.020139007568359374, |
|
0.020125696182250977 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.556343814705954 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |