{ "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.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": "4b822560a1dfd5d63c985ecf9a3c0aae0a4feeee", "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": 1702.6048, "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.042010560989379886, "mean": 0.021005280494689943, "stdev": 0.00014198398590087834, "p50": 0.021005280494689943, "p90": 0.021118867683410644, "p95": 0.02113306608200073, "p99": 0.0211444248008728, "values": [ 0.02114726448059082, 0.020863296508789063 ] }, "throughput": { "unit": "tokens/s", "value": 333.24953702806175 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1702.62528, "max_global_vram": 6795.296768, "max_process_vram": 0.0, "max_reserved": 6148.849664, "max_allocated": 5034.577408 }, "latency": { "unit": "s", "count": 2, "total": 5.038279052734375, "mean": 2.5191395263671876, "stdev": 0.009805053710937539, "p50": 2.5191395263671876, "p90": 2.5269835693359375, "p95": 2.5279640747070315, "p99": 2.5287484790039065, "values": [ 2.528944580078125, 2.50933447265625 ] }, "throughput": { "unit": "tokens/s", "value": 50.4140396634341 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 253, "total": 5.038583826065063, "mean": 0.019915351091166256, "stdev": 0.001410887825065693, "p50": 0.01965260887145996, "p90": 0.020322918701171876, "p95": 0.020433510208129883, "p99": 0.021652233886718747, "values": [ 0.020928512573242186, 0.0195020809173584, 0.019280895233154297, 0.01926246452331543, 0.0192675838470459, 0.01944063949584961, 0.020380672454833985, 0.020311040878295897, 0.02011238479614258, 0.020171775817871093, 0.020146175384521483, 0.020205568313598633, 0.020204544067382812, 0.02026803207397461, 0.020179967880249023, 0.020172800064086914, 0.02031718444824219, 0.020158464431762696, 0.02023219108581543, 0.020182016372680665, 0.019813375473022463, 0.019315711975097655, 0.019309568405151366, 0.01926348876953125, 0.01924300765991211, 0.01927987289428711, 0.019887104034423828, 0.02020351982116699, 0.019355648040771483, 0.01927475166320801, 0.02041548728942871, 0.020374528884887694, 0.020166656494140626, 0.01926655960083008, 0.019604480743408204, 0.020313087463378905, 0.020307968139648438, 0.01927577590942383, 0.01919692802429199, 0.01926246452331543, 0.01929113578796387, 0.019216384887695313, 0.01925734329223633, 0.01923481559753418, 0.01924505615234375, 0.019224576950073242, 0.019326976776123047, 0.019818496704101563, 0.021597183227539063, 0.022984703063964843, 0.019619840621948242, 0.01947340774536133, 0.020195327758789062, 0.020171775817871093, 0.019794944763183595, 0.02005401611328125, 0.020142080307006836, 0.020363264083862305, 0.020213760375976563, 0.01965260887145996, 0.01963520050048828, 0.02005299186706543, 0.02002841567993164, 0.02021683120727539, 0.01959219169616699, 0.019647487640380858, 0.019755008697509766, 0.019989503860473632, 0.019698688507080078, 0.020288511276245116, 0.020163583755493163, 0.020180992126464844, 0.020328447341918944, 0.019595264434814453, 0.019515392303466796, 0.019568639755249022, 0.019422208786010742, 0.02001817512512207, 0.020249599456787108, 0.020601856231689454, 0.020387840270996094, 0.019620864868164063, 0.019532800674438477, 0.020076543807983398, 0.020279296875, 0.020380672454833985, 0.020315135955810547, 0.020379648208618165, 0.020290559768676757, 0.020403200149536133, 0.01946931266784668, 0.019552255630493166, 0.01964646339416504, 0.020297727584838866, 0.020238336563110353, 0.020099071502685546, 0.020074495315551756, 0.019990528106689453, 0.019478527069091797, 0.019500032424926757, 0.01987174415588379, 0.020247552871704103, 0.020346879959106445, 0.020489215850830078, 0.02025881576538086, 0.020116479873657226, 0.019580928802490235, 0.019582975387573243, 0.019594240188598632, 0.019414016723632813, 0.019559423446655275, 0.01948467254638672, 0.01948876762390137, 0.019482624053955077, 0.02002943992614746, 0.020977664947509765, 0.02062745666503906, 0.020154367446899413, 0.019764223098754884, 0.019543039321899415, 0.019533824920654298, 0.01946931266784668, 0.0194150390625, 0.01962393569946289, 0.020150272369384766, 0.02025164794921875, 0.04095078277587891, 0.019910655975341796, 0.019322879791259767, 0.019497983932495116, 0.020033536911010744, 0.02031718444824219, 0.01930342483520508, 0.01944371223449707, 0.01949388885498047, 0.019887104034423828, 0.019929088592529298, 0.019943424224853516, 0.020191232681274415, 0.020123647689819335, 0.020158464431762696, 0.019994623184204103, 0.019960832595825196, 0.019963903427124022, 0.019970048904418947, 0.019997695922851562, 0.020032512664794923, 0.02004172706604004, 0.020148223876953125, 0.020033536911010744, 0.020101119995117187, 0.019817472457885742, 0.01965056037902832, 0.02021683120727539, 0.020340736389160157, 0.019974143981933593, 0.019363840103149413, 0.01945907211303711, 0.019569664001464843, 0.019203071594238282, 0.01985740852355957, 0.02004684829711914, 0.019359807968139648, 0.019477439880371095, 0.01938739204406738, 0.01937919998168945, 0.02126131248474121, 0.02070425605773926, 0.02023321533203125, 0.019878911972045898, 0.01990656089782715, 0.019366912841796875, 0.01944166374206543, 0.019388416290283202, 0.019386367797851564, 0.01942835235595703, 0.019331071853637697, 0.019325952529907226, 0.019535871505737306, 0.019338239669799806, 0.019296255111694336, 0.019338239669799806, 0.019309568405151366, 0.01942118453979492, 0.019581951141357423, 0.01948057556152344, 0.019561471939086913, 0.02002124786376953, 0.020324352264404297, 0.020215808868408205, 0.020158464431762696, 0.020460544586181642, 0.02024038314819336, 0.019536895751953123, 0.01965158462524414, 0.01970790481567383, 0.01941606330871582, 0.019526655197143555, 0.019572736740112305, 0.019494911193847657, 0.0194467830657959, 0.01963417625427246, 0.01925734329223633, 0.01962700843811035, 0.019538944244384765, 0.019557376861572266, 0.019389440536499023, 0.019505151748657225, 0.019458047866821288, 0.019538944244384765, 0.019589120864868165, 0.021711872100830077, 0.020358144760131838, 0.01963827133178711, 0.019563520431518554, 0.01963212776184082, 0.01944780731201172, 0.01946931266784668, 0.019276800155639647, 0.019315711975097655, 0.019530752182006835, 0.019538944244384765, 0.01948569679260254, 0.01942630386352539, 0.019519487380981446, 0.019554304122924804, 0.02016972732543945, 0.020188159942626953, 0.020305919647216796, 0.02024448013305664, 0.020249599456787108, 0.02019430351257324, 0.02012774467468262, 0.019422208786010742, 0.019501056671142578, 0.019963903427124022, 0.02011136054992676, 0.01983180809020996, 0.019547136306762695, 0.019522560119628905, 0.019378175735473634, 0.019647487640380858, 0.02025881576538086, 0.021131263732910157, 0.019937280654907227, 0.019620864868164063, 0.019743743896484374, 0.019512319564819337, 0.01924608039855957, 0.01923686408996582, 0.019343360900878907, 0.019522560119628905, 0.019561471939086913 ] }, "throughput": { "unit": "tokens/s", "value": 50.212521758833795 }, "energy": null, "efficiency": null } } }