{ "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": "12b1620e615592fbf099d4ec44af7b9f2d1b48aa", "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": 1754.488832, "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.04491177749633789, "mean": 0.022455888748168944, "stdev": 0.0002903518676757814, "p50": 0.022455888748168944, "p90": 0.022688170242309572, "p95": 0.02271720542907715, "p99": 0.02274043357849121, "values": [ 0.022746240615844727, 0.022165536880493164 ] }, "throughput": { "unit": "tokens/s", "value": 311.7222425930829 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1754.509312, "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.168609375, "mean": 2.5843046875, "stdev": 0.013391113281250089, "p50": 2.5843046875, "p90": 2.5950175781250002, "p95": 2.596356689453125, "p99": 2.597427978515625, "values": [ 2.59769580078125, 2.57091357421875 ] }, "throughput": { "unit": "tokens/s", "value": 49.14281222886959 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 253, "total": 5.169546255111694, "mean": 0.020432989150639107, "stdev": 0.0014484515231112435, "p50": 0.020163583755493163, "p90": 0.020831027603149414, "p95": 0.02092564544677734, "p99": 0.021751479721069333, "values": [ 0.02058956718444824, 0.020752384185791017, 0.020883455276489257, 0.020822015762329102, 0.02123673629760742, 0.02063974380493164, 0.02085785675048828, 0.020477951049804686, 0.020642816543579103, 0.020999168395996092, 0.02083328056335449, 0.020907007217407226, 0.020682752609252928, 0.020770816802978515, 0.021287935256958008, 0.0209039363861084, 0.021534719467163087, 0.020757503509521484, 0.02049945640563965, 0.020822015762329102, 0.020611072540283205, 0.020534271240234374, 0.02079539108276367, 0.020572160720825194, 0.020899839401245117, 0.02045030403137207, 0.020590591430664062, 0.020912128448486327, 0.020957183837890626, 0.021154815673828126, 0.020706304550170897, 0.02088652801513672, 0.021147647857666017, 0.020745216369628908, 0.02083635139465332, 0.020945920944213867, 0.020555776596069338, 0.02064588737487793, 0.02066431999206543, 0.02089472007751465, 0.020899839401245117, 0.020661247253417968, 0.020588544845581053, 0.020479999542236327, 0.024402944564819336, 0.021986303329467775, 0.02078211212158203, 0.020390880584716796, 0.02049843215942383, 0.021251071929931642, 0.020172800064086914, 0.020130815505981444, 0.020146175384521483, 0.02008576011657715, 0.020381696701049806, 0.020099071502685546, 0.02010419273376465, 0.02006118392944336, 0.020114431381225584, 0.020387840270996094, 0.020083711624145507, 0.020190208435058594, 0.0200949764251709, 0.020063232421875, 0.02040012741088867, 0.020150272369384766, 0.02022604751586914, 0.020155391693115234, 0.02017791938781738, 0.020357120513916017, 0.02011955261230469, 0.020256767272949217, 0.020106239318847655, 0.020116479873657226, 0.020452352523803712, 0.02010419273376465, 0.020110336303710938, 0.020130815505981444, 0.02007961654663086, 0.020362239837646484, 0.020136959075927736, 0.020150272369384766, 0.0200898551940918, 0.020200447082519533, 0.020410367965698242, 0.020125696182250977, 0.020129791259765627, 0.02008678436279297, 0.020114431381225584, 0.020378623962402344, 0.020115455627441405, 0.020132863998413086, 0.020091903686523437, 0.020129791259765627, 0.020188159942626953, 0.020136959075927736, 0.020418560028076172, 0.019932159423828123, 0.019877887725830077, 0.019929088592529298, 0.02009600067138672, 0.02010316848754883, 0.020149248123168945, 0.020134912490844727, 0.02008576011657715, 0.020502527236938475, 0.020051967620849608, 0.02007244873046875, 0.02007961654663086, 0.020076543807983398, 0.020238336563110353, 0.02025267219543457, 0.020125696182250977, 0.02007859230041504, 0.02007347106933594, 0.020199424743652345, 0.02030182456970215, 0.020163583755493163, 0.020159488677978517, 0.020102144241333008, 0.020109312057495117, 0.020420608520507814, 0.02008576011657715, 0.020040704727172853, 0.02010419273376465, 0.020082687377929686, 0.04247552108764648, 0.020191232681274415, 0.020117504119873047, 0.020360191345214843, 0.020896768569946288, 0.020692991256713866, 0.02046668815612793, 0.02020351982116699, 0.020124671936035156, 0.020505599975585938, 0.020143104553222657, 0.020110336303710938, 0.020118528366088868, 0.020610048294067384, 0.02048204803466797, 0.02007347106933594, 0.020184064865112306, 0.020173824310302735, 0.020136959075927736, 0.020708351135253905, 0.02146201515197754, 0.020817920684814452, 0.020752384185791017, 0.02068172836303711, 0.020596736907958983, 0.02042982482910156, 0.020118528366088868, 0.02009702491760254, 0.020131839752197265, 0.020134912490844727, 0.020183040618896485, 0.020143104553222657, 0.020161535263061522, 0.020163583755493163, 0.020141056060791016, 0.020237312316894532, 0.02012057685852051, 0.020249599456787108, 0.020153343200683595, 0.02008166313171387, 0.02037555122375488, 0.02007756805419922, 0.02009600067138672, 0.02007961654663086, 0.02012774467468262, 0.02045132827758789, 0.020074495315551756, 0.020118528366088868, 0.02009600067138672, 0.020102144241333008, 0.02045952033996582, 0.020137983322143553, 0.020156415939331054, 0.020154367446899413, 0.020143104553222657, 0.020397056579589845, 0.020157440185546875, 0.020125696182250977, 0.02009600067138672, 0.020101119995117187, 0.02033459281921387, 0.02007756805419922, 0.020153343200683595, 0.02011136054992676, 0.020025344848632814, 0.020249599456787108, 0.020239360809326173, 0.020160512924194338, 0.020068351745605468, 0.020165632247924805, 0.020117504119873047, 0.020288511276245116, 0.020157440185546875, 0.020153343200683595, 0.02009702491760254, 0.020190208435058594, 0.020434944152832032, 0.020190208435058594, 0.02016972732543945, 0.020121599197387697, 0.02008166313171387, 0.020505599975585938, 0.020110336303710938, 0.020381696701049806, 0.02069811248779297, 0.020161535263061522, 0.020387840270996094, 0.020382720947265624, 0.020164608001708984, 0.020099071502685546, 0.02004684829711914, 0.020435968399047853, 0.020102144241333008, 0.02011136054992676, 0.02006220817565918, 0.02011955261230469, 0.020340736389160157, 0.020575231552124023, 0.020083711624145507, 0.020134912490844727, 0.020150272369384766, 0.020332544326782227, 0.020110336303710938, 0.02012876892089844, 0.02007859230041504, 0.02008678436279297, 0.020185087203979494, 0.020108287811279296, 0.02001408004760742, 0.02009600067138672, 0.020024320602416993, 0.02010316848754883, 0.02021683120727539, 0.020057088851928712, 0.020031488418579102, 0.020063232421875, 0.02008064079284668, 0.02045644760131836, 0.02006630325317383, 0.02011136054992676, 0.02012057685852051, 0.02012057685852051, 0.020329471588134765, 0.020361215591430663, 0.020888576507568358, 0.020716543197631835, 0.02041753578186035 ] }, "throughput": { "unit": "tokens/s", "value": 48.9404654711874 }, "energy": null, "efficiency": null } } }