|
{ |
|
"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.218-208.862.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": "74a207404e8d4524d1fdc4aa23789694f9eef347", |
|
"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": 1756.188672, |
|
"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.044299072265625, |
|
"mean": 0.0221495361328125, |
|
"stdev": 0.0002369594573974603, |
|
"p50": 0.0221495361328125, |
|
"p90": 0.02233910369873047, |
|
"p95": 0.022362799644470212, |
|
"p99": 0.02238175640106201, |
|
"values": [ |
|
0.02238649559020996, |
|
0.02191257667541504 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 316.03370644092826 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1756.205056, |
|
"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.20422802734375, |
|
"mean": 2.602114013671875, |
|
"stdev": 0.011708496093750131, |
|
"p50": 2.602114013671875, |
|
"p90": 2.611480810546875, |
|
"p95": 2.61265166015625, |
|
"p99": 2.61358833984375, |
|
"values": [ |
|
2.613822509765625, |
|
2.590405517578125 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.80647017491318 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 5.205268470764162, |
|
"mean": 0.020574183678909723, |
|
"stdev": 0.0014684998951447511, |
|
"p50": 0.020150272369384766, |
|
"p90": 0.021069210052490232, |
|
"p95": 0.021171814346313475, |
|
"p99": 0.02232107696533203, |
|
"values": [ |
|
0.021943296432495117, |
|
0.022305824279785155, |
|
0.021975008010864258, |
|
0.021965824127197265, |
|
0.0204083194732666, |
|
0.020249599456787108, |
|
0.020257791519165038, |
|
0.020625408172607423, |
|
0.021109760284423826, |
|
0.021009408950805664, |
|
0.020993024826049804, |
|
0.020951040267944337, |
|
0.02103603172302246, |
|
0.020962303161621093, |
|
0.021038080215454103, |
|
0.02099404716491699, |
|
0.02107596778869629, |
|
0.020173824310302735, |
|
0.020197376251220703, |
|
0.020835391998291014, |
|
0.0201727352142334, |
|
0.020970495223999023, |
|
0.020966400146484376, |
|
0.020975616455078124, |
|
0.021006336212158205, |
|
0.020124671936035156, |
|
0.020180992126464844, |
|
0.020117504119873047, |
|
0.020196352005004883, |
|
0.02047385597229004, |
|
0.021133312225341795, |
|
0.021078016281127928, |
|
0.02107904052734375, |
|
0.02103398323059082, |
|
0.020987903594970703, |
|
0.020964351654052735, |
|
0.02107084846496582, |
|
0.020954111099243163, |
|
0.020970495223999023, |
|
0.02093984031677246, |
|
0.021024703979492188, |
|
0.02106265640258789, |
|
0.021113855361938477, |
|
0.02105855941772461, |
|
0.021037055969238282, |
|
0.021013504028320314, |
|
0.023981056213378905, |
|
0.02233760070800781, |
|
0.0205413761138916, |
|
0.020349952697753908, |
|
0.020211776733398436, |
|
0.020092863082885742, |
|
0.020075519561767577, |
|
0.02005299186706543, |
|
0.02006937599182129, |
|
0.020149248123168945, |
|
0.020444160461425782, |
|
0.020115455627441405, |
|
0.020121599197387697, |
|
0.020116479873657226, |
|
0.020060159683227538, |
|
0.0200447998046875, |
|
0.020092927932739257, |
|
0.020076543807983398, |
|
0.020117504119873047, |
|
0.02006220817565918, |
|
0.02007756805419922, |
|
0.020150272369384766, |
|
0.02009600067138672, |
|
0.021526527404785157, |
|
0.020925439834594727, |
|
0.02091929626464844, |
|
0.020957183837890626, |
|
0.0208855037689209, |
|
0.020958208084106447, |
|
0.020896768569946288, |
|
0.020116479873657226, |
|
0.02007142448425293, |
|
0.02007859230041504, |
|
0.02007756805419922, |
|
0.0200949764251709, |
|
0.020102144241333008, |
|
0.020146175384521483, |
|
0.02005606460571289, |
|
0.020099071502685546, |
|
0.020065280914306642, |
|
0.020084735870361328, |
|
0.020099071502685546, |
|
0.020059135437011717, |
|
0.020057088851928712, |
|
0.0200447998046875, |
|
0.020083711624145507, |
|
0.020470783233642577, |
|
0.020105215072631837, |
|
0.020861984252929688, |
|
0.020853727340698243, |
|
0.020920320510864256, |
|
0.02087116813659668, |
|
0.02089369583129883, |
|
0.02087014389038086, |
|
0.021013504028320314, |
|
0.020932607650756836, |
|
0.021009408950805664, |
|
0.020857952117919923, |
|
0.020909984588623046, |
|
0.020925439834594727, |
|
0.02022502326965332, |
|
0.020092927932739257, |
|
0.02017791938781738, |
|
0.020076543807983398, |
|
0.020123647689819335, |
|
0.020076543807983398, |
|
0.020105215072631837, |
|
0.020122623443603514, |
|
0.020084735870361328, |
|
0.02002943992614746, |
|
0.020109312057495117, |
|
0.02005606460571289, |
|
0.02012876892089844, |
|
0.020033536911010744, |
|
0.020090879440307616, |
|
0.02004582405090332, |
|
0.02004275131225586, |
|
0.020032512664794923, |
|
0.0200263671875, |
|
0.020082687377929686, |
|
0.04223590469360351, |
|
0.020123647689819335, |
|
0.02007859230041504, |
|
0.02010419273376465, |
|
0.020118528366088868, |
|
0.020074495315551756, |
|
0.02007961654663086, |
|
0.020065280914306642, |
|
0.020101119995117187, |
|
0.020133888244628906, |
|
0.020059135437011717, |
|
0.020067327499389647, |
|
0.020048896789550782, |
|
0.02007040023803711, |
|
0.020154367446899413, |
|
0.020164608001708984, |
|
0.020142080307006836, |
|
0.020093952178955078, |
|
0.02010419273376465, |
|
0.020092927932739257, |
|
0.020016128540039063, |
|
0.02003865623474121, |
|
0.020140031814575195, |
|
0.020145151138305666, |
|
0.020051967620849608, |
|
0.020100095748901366, |
|
0.020222976684570314, |
|
0.020100095748901366, |
|
0.020107263565063475, |
|
0.020281343460083007, |
|
0.02146406364440918, |
|
0.021202943801879884, |
|
0.021072895050048827, |
|
0.021105663299560547, |
|
0.020959232330322267, |
|
0.020986879348754883, |
|
0.021046272277832033, |
|
0.021014528274536134, |
|
0.020986879348754883, |
|
0.02099404716491699, |
|
0.02105548858642578, |
|
0.020959232330322267, |
|
0.02108518409729004, |
|
0.02103910446166992, |
|
0.020995071411132812, |
|
0.021008384704589843, |
|
0.02104115104675293, |
|
0.021712896347045898, |
|
0.021198848724365234, |
|
0.021111808776855468, |
|
0.020264959335327147, |
|
0.02007142448425293, |
|
0.02007859230041504, |
|
0.020121599197387697, |
|
0.020105215072631837, |
|
0.020189184188842774, |
|
0.020123647689819335, |
|
0.020154367446899413, |
|
0.02007244873046875, |
|
0.0200581111907959, |
|
0.02006630325317383, |
|
0.02008166313171387, |
|
0.02146303939819336, |
|
0.021153791427612305, |
|
0.021128192901611328, |
|
0.020985855102539062, |
|
0.02106265640258789, |
|
0.020981760025024415, |
|
0.020970495223999023, |
|
0.020977664947509765, |
|
0.021014528274536134, |
|
0.021013504028320314, |
|
0.020969472885131835, |
|
0.020987903594970703, |
|
0.02104319953918457, |
|
0.020979711532592774, |
|
0.020944896697998046, |
|
0.020935680389404295, |
|
0.02091929626464844, |
|
0.020979711532592774, |
|
0.020099071502685546, |
|
0.02005401611328125, |
|
0.020102144241333008, |
|
0.02007142448425293, |
|
0.020113407135009767, |
|
0.020176895141601564, |
|
0.020067327499389647, |
|
0.020137983322143553, |
|
0.020084735870361328, |
|
0.020118528366088868, |
|
0.02011955261230469, |
|
0.020161535263061522, |
|
0.02009702491760254, |
|
0.02006937599182129, |
|
0.020092927932739257, |
|
0.02008064079284668, |
|
0.02007040023803711, |
|
0.020100095748901366, |
|
0.02010316848754883, |
|
0.020059135437011717, |
|
0.0200898551940918, |
|
0.020110336303710938, |
|
0.02008576011657715, |
|
0.020075519561767577, |
|
0.02009702491760254, |
|
0.020139007568359374, |
|
0.02011238479614258, |
|
0.020125696182250977, |
|
0.020091903686523437, |
|
0.020121599197387697, |
|
0.020141056060791016, |
|
0.020149248123168945, |
|
0.020175872802734376, |
|
0.02019327926635742, |
|
0.020158464431762696, |
|
0.020185087203979494, |
|
0.020123647689819335, |
|
0.020179967880249023, |
|
0.02007142448425293, |
|
0.02006118392944336, |
|
0.020074495315551756, |
|
0.020109312057495117, |
|
0.020092927932739257, |
|
0.02004787254333496, |
|
0.020154367446899413, |
|
0.02005504035949707, |
|
0.020093952178955078 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 48.6046015534062 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |