|
{ |
|
"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": null, |
|
"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": "25245ec26dc29bcf6102e1b4ddd0dfd02e720cf5", |
|
"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": 1728.65536, |
|
"max_global_vram": 6793.199616, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6146.752512, |
|
"max_allocated": 5034.576896 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 0.04538415908813477, |
|
"mean": 0.022692079544067385, |
|
"stdev": 0.003335311889648437, |
|
"p50": 0.022692079544067385, |
|
"p90": 0.025360329055786134, |
|
"p95": 0.025693860244750975, |
|
"p99": 0.02596068519592285, |
|
"values": [ |
|
0.02602739143371582, |
|
0.019356767654418947 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 308.47767770275067 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"decode": { |
|
"memory": { |
|
"unit": "MB", |
|
"max_ram": 1728.745472, |
|
"max_global_vram": 6795.296768, |
|
"max_process_vram": 0.0, |
|
"max_reserved": 6148.849664, |
|
"max_allocated": 5034.577408 |
|
}, |
|
"latency": { |
|
"unit": "s", |
|
"count": 2, |
|
"total": 4.77087451171875, |
|
"mean": 2.385437255859375, |
|
"stdev": 0.001996337890624922, |
|
"p50": 2.385437255859375, |
|
"p90": 2.387034326171875, |
|
"p95": 2.3872339599609376, |
|
"p99": 2.3873936669921876, |
|
"values": [ |
|
2.38743359375, |
|
2.38344091796875 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 53.23971514574468 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
}, |
|
"per_token": { |
|
"memory": null, |
|
"latency": { |
|
"unit": "s", |
|
"count": 253, |
|
"total": 4.770945024490353, |
|
"mean": 0.018857490215376905, |
|
"stdev": 0.0012656888721164668, |
|
"p50": 0.018661376953125, |
|
"p90": 0.01934172248840332, |
|
"p95": 0.019502080154418944, |
|
"p99": 0.020219125366210934, |
|
"values": [ |
|
0.019984384536743165, |
|
0.020305919647216796, |
|
0.018746368408203123, |
|
0.018490367889404297, |
|
0.018481151580810547, |
|
0.018464767456054687, |
|
0.018486272811889647, |
|
0.018510847091674804, |
|
0.01845964813232422, |
|
0.018529279708862305, |
|
0.018509824752807616, |
|
0.01841459274291992, |
|
0.018298879623413086, |
|
0.018324480056762696, |
|
0.01846886444091797, |
|
0.018748416900634765, |
|
0.019137535095214844, |
|
0.019017728805541992, |
|
0.019188735961914064, |
|
0.01929523277282715, |
|
0.018540544509887694, |
|
0.018530303955078126, |
|
0.018387968063354493, |
|
0.018487295150756835, |
|
0.018587648391723634, |
|
0.01848531150817871, |
|
0.01852409553527832, |
|
0.018553855895996094, |
|
0.018515968322753908, |
|
0.018520063400268554, |
|
0.018471935272216796, |
|
0.018737152099609376, |
|
0.018405376434326173, |
|
0.018319360733032225, |
|
0.018663423538208008, |
|
0.01857535934448242, |
|
0.018498559951782227, |
|
0.018535423278808593, |
|
0.018510847091674804, |
|
0.018491392135620118, |
|
0.018587648391723634, |
|
0.018686975479125977, |
|
0.018532352447509767, |
|
0.019281919479370118, |
|
0.018699264526367186, |
|
0.01859686470031738, |
|
0.018505727767944336, |
|
0.01843097686767578, |
|
0.018566144943237304, |
|
0.018495487213134765, |
|
0.018502656936645507, |
|
0.018966527938842775, |
|
0.01948569679260254, |
|
0.019645471572875977, |
|
0.01967407989501953, |
|
0.019325952529907226, |
|
0.01940275192260742, |
|
0.0187064323425293, |
|
0.01866035270690918, |
|
0.018929664611816405, |
|
0.019466239929199217, |
|
0.01857535934448242, |
|
0.01845964813232422, |
|
0.01843916893005371, |
|
0.01845043182373047, |
|
0.018510847091674804, |
|
0.018618368148803712, |
|
0.01865011215209961, |
|
0.01863372802734375, |
|
0.018663423538208008, |
|
0.018720767974853517, |
|
0.01859686470031738, |
|
0.01878118324279785, |
|
0.01863577651977539, |
|
0.018691072463989256, |
|
0.01866547203063965, |
|
0.019335168838500977, |
|
0.019352575302124024, |
|
0.019316736221313476, |
|
0.019578880310058593, |
|
0.019360767364501954, |
|
0.019361791610717775, |
|
0.019343360900878907, |
|
0.018675712585449217, |
|
0.01844633674621582, |
|
0.01844428825378418, |
|
0.01883033561706543, |
|
0.018907136917114258, |
|
0.018997247695922852, |
|
0.018457599639892578, |
|
0.018456575393676757, |
|
0.018488319396972656, |
|
0.018569215774536133, |
|
0.01864192008972168, |
|
0.018651136398315428, |
|
0.018618368148803712, |
|
0.019882080078125, |
|
0.019469215393066407, |
|
0.018634752273559572, |
|
0.01865216064453125, |
|
0.018662399291992187, |
|
0.018678783416748047, |
|
0.018745344161987306, |
|
0.018611200332641603, |
|
0.018716672897338867, |
|
0.01862553596496582, |
|
0.018732032775878905, |
|
0.01945292854309082, |
|
0.018685951232910156, |
|
0.01863577651977539, |
|
0.01864806365966797, |
|
0.01923072052001953, |
|
0.019526655197143555, |
|
0.020535295486450195, |
|
0.019017728805541992, |
|
0.018740224838256835, |
|
0.01877299118041992, |
|
0.018661376953125, |
|
0.019096576690673828, |
|
0.019260416030883788, |
|
0.018651136398315428, |
|
0.018742271423339844, |
|
0.018725887298583984, |
|
0.01869824028015137, |
|
0.018655231475830078, |
|
0.018689023971557618, |
|
0.03800985717773438, |
|
0.018487295150756835, |
|
0.018457599639892578, |
|
0.018562047958374024, |
|
0.018456575393676757, |
|
0.018499584197998048, |
|
0.018694143295288086, |
|
0.018505727767944336, |
|
0.01849555206298828, |
|
0.01854867172241211, |
|
0.018491455078125, |
|
0.01854867172241211, |
|
0.018719743728637696, |
|
0.01849241638183594, |
|
0.018353151321411132, |
|
0.01836953544616699, |
|
0.018297855377197265, |
|
0.01836031913757324, |
|
0.018339839935302735, |
|
0.018363391876220703, |
|
0.018329599380493163, |
|
0.018342912673950194, |
|
0.01862041664123535, |
|
0.019191808700561523, |
|
0.01903104019165039, |
|
0.019002368927001953, |
|
0.01908531188964844, |
|
0.01904128074645996, |
|
0.019162111282348633, |
|
0.018985984802246093, |
|
0.018965503692626954, |
|
0.01901158332824707, |
|
0.018751487731933594, |
|
0.01845964813232422, |
|
0.018540544509887694, |
|
0.01843507194519043, |
|
0.018453504562377928, |
|
0.01846784019470215, |
|
0.018319360733032225, |
|
0.01864089584350586, |
|
0.019142656326293944, |
|
0.018729984283447267, |
|
0.01905971145629883, |
|
0.01906790351867676, |
|
0.018696191787719727, |
|
0.01875660705566406, |
|
0.019056640625, |
|
0.019099647521972657, |
|
0.018824192047119142, |
|
0.018364416122436524, |
|
0.018318336486816408, |
|
0.01835212707519531, |
|
0.018510847091674804, |
|
0.01847603225708008, |
|
0.01847500801086426, |
|
0.018472959518432617, |
|
0.01846784019470215, |
|
0.01867263984680176, |
|
0.01865318489074707, |
|
0.019129344940185547, |
|
0.018734079360961914, |
|
0.01862348747253418, |
|
0.018684928894042968, |
|
0.018671615600585938, |
|
0.018743295669555664, |
|
0.020139007568359374, |
|
0.01940275192260742, |
|
0.018686975479125977, |
|
0.01862860870361328, |
|
0.01863065528869629, |
|
0.018661376953125, |
|
0.01869004821777344, |
|
0.018654207229614257, |
|
0.018694143295288086, |
|
0.018491392135620118, |
|
0.018715648651123046, |
|
0.01984102439880371, |
|
0.0194334716796875, |
|
0.019323904037475585, |
|
0.01942630386352539, |
|
0.019312639236450196, |
|
0.019174400329589843, |
|
0.01923686408996582, |
|
0.019581951141357423, |
|
0.01979084777832031, |
|
0.018968576431274413, |
|
0.019305471420288087, |
|
0.019354623794555666, |
|
0.01922867202758789, |
|
0.018917375564575196, |
|
0.01864806365966797, |
|
0.01861222457885742, |
|
0.018755584716796874, |
|
0.01869004821777344, |
|
0.018646015167236327, |
|
0.018761728286743166, |
|
0.018711551666259766, |
|
0.018651136398315428, |
|
0.018712575912475587, |
|
0.01862348747253418, |
|
0.018704383850097657, |
|
0.018597888946533202, |
|
0.018594816207885743, |
|
0.01864908790588379, |
|
0.018659328460693358, |
|
0.01865830421447754, |
|
0.018695167541503906, |
|
0.018758655548095703, |
|
0.018973695755004884, |
|
0.019306495666503908, |
|
0.01923481559753418, |
|
0.019203071594238282, |
|
0.01863680076599121, |
|
0.01862144088745117, |
|
0.01859174346923828, |
|
0.018480127334594726, |
|
0.018493440628051756, |
|
0.018740224838256835, |
|
0.01920102310180664, |
|
0.0191016960144043, |
|
0.018726911544799805, |
|
0.018461696624755858, |
|
0.018529279708862305, |
|
0.01844121551513672, |
|
0.018662399291992187, |
|
0.01868083190917969, |
|
0.01864499282836914 |
|
] |
|
}, |
|
"throughput": { |
|
"unit": "tokens/s", |
|
"value": 53.029326202941526 |
|
}, |
|
"energy": null, |
|
"efficiency": null |
|
} |
|
} |
|
} |