{ "config": { "name": "pytorch_generate", "backend": { "name": "pytorch", "version": "2.4.0+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "model_type": "gemma", "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": {}, "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, "memory": true, "latency": 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", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.223-211.872.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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.45.0.dev0", "transformers_commit": "0a7af19f4dc868bafc82f35eb7e8d13bac87a594", "accelerate_version": "0.34.0.dev0", "accelerate_commit": null, "diffusers_version": null, "diffusers_commit": null, "optimum_version": "1.22.0.dev0", "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": "0.12.1.dev0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1318.424576, "max_global_vram": 6768.033792, "max_process_vram": 0.0, "max_reserved": 6138.363904, "max_allocated": 6060.931072 }, "latency": { "unit": "s", "count": 1, "total": 11.836884765625, "mean": 11.836884765625, "stdev": 0.0, "p50": 11.836884765625, "p90": 11.836884765625, "p95": 11.836884765625, "p99": 11.836884765625, "values": [ 11.836884765625 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1717.055488, "max_global_vram": 6789.005312, "max_process_vram": 0.0, "max_reserved": 6142.558208, "max_allocated": 5028.431872 }, "latency": { "unit": "s", "count": 2, "total": 0.04161190414428711, "mean": 0.020805952072143554, "stdev": 3.6479949951172264e-05, "p50": 0.020805952072143554, "p90": 0.020835136032104493, "p95": 0.02083878402709961, "p99": 0.020841702423095704, "values": [ 0.020769472122192382, 0.020842432022094726 ] }, "throughput": { "unit": "tokens/s", "value": 336.4421861459579 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1771.589632, "max_global_vram": 6793.199616, "max_process_vram": 0.0, "max_reserved": 6146.752512, "max_allocated": 5031.801344 }, "latency": { "unit": "s", "count": 2, "total": 4.9493642578124994, "mean": 2.4746821289062497, "stdev": 0.002011474609375119, "p50": 2.4746821289062497, "p90": 2.47629130859375, "p95": 2.4764924560546877, "p99": 2.4766533740234378, "values": [ 2.476693603515625, 2.472670654296875 ] }, "throughput": { "unit": "tokens/s", "value": 51.319722446991996 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 254, "total": 4.949048316955565, "mean": 0.01948444219273845, "stdev": 0.00020348130233360914, "p50": 0.01946060848236084, "p90": 0.019647385787963868, "p95": 0.019899955081939695, "p99": 0.0202538090133667, "values": [ 0.019372032165527343, 0.019372032165527343, 0.019389440536499023, 0.019386367797851564, 0.019371007919311522, 0.019384319305419923, 0.019301408767700194, 0.019208160400390625, 0.01918156814575195, 0.01921433639526367, 0.01922764778137207, 0.019336191177368164, 0.019400703430175782, 0.01944473648071289, 0.019417087554931642, 0.0194201602935791, 0.0194334716796875, 0.019506175994873046, 0.019729408264160156, 0.01947340774536133, 0.020199424743652345, 0.0196628475189209, 0.019525632858276368, 0.019672063827514647, 0.019393535614013673, 0.01943961524963379, 0.01942019271850586, 0.019378143310546873, 0.01942937660217285, 0.019405824661254883, 0.01924608039855957, 0.019500032424926757, 0.019345407485961915, 0.01948569679260254, 0.01943142318725586, 0.019363840103149413, 0.019587072372436523, 0.0194969596862793, 0.01945599937438965, 0.019506175994873046, 0.01942425537109375, 0.01944883155822754, 0.019422208786010742, 0.01946112060546875, 0.019376127243041993, 0.019406848907470704, 0.01946009635925293, 0.019333120346069335, 0.01943756866455078, 0.019414016723632813, 0.019352575302124024, 0.019374080657958984, 0.019342336654663086, 0.019400703430175782, 0.019317760467529296, 0.01942425537109375, 0.019346431732177736, 0.01958502388000488, 0.019531776428222656, 0.019606527328491212, 0.019611648559570313, 0.019598335266113282, 0.019475456237792968, 0.019557376861572266, 0.019517440795898438, 0.019545087814331053, 0.019546112060546874, 0.019527679443359376, 0.019566591262817384, 0.02002943992614746, 0.019545087814331053, 0.01944883155822754, 0.020537343978881836, 0.019549184799194336, 0.019534847259521485, 0.019522560119628905, 0.019557376861572266, 0.019703807830810546, 0.019577856063842772, 0.01940275192260742, 0.019540992736816407, 0.019548160552978516, 0.019520511627197267, 0.019536895751953123, 0.019583999633789064, 0.019607551574707033, 0.019572736740112305, 0.01963929557800293, 0.019519487380981446, 0.01944473648071289, 0.019364864349365234, 0.019207168579101562, 0.019088384628295898, 0.019284992218017577, 0.019358720779418945, 0.019332096099853514, 0.019375104904174805, 0.01939967918395996, 0.019540992736816407, 0.019581951141357423, 0.019549184799194336, 0.019490879058837892, 0.019585983276367187, 0.019612672805786133, 0.01960857582092285, 0.019562496185302734, 0.019519487380981446, 0.01958502388000488, 0.019566591262817384, 0.01947238349914551, 0.019292160034179686, 0.01923379135131836, 0.01940787124633789, 0.019348480224609374, 0.019560447692871095, 0.019495935440063478, 0.0196495361328125, 0.019570688247680663, 0.019360767364501954, 0.0195020809173584, 0.02004684829711914, 0.020002815246582033, 0.019360767364501954, 0.020315135955810547, 0.020067327499389647, 0.019767295837402343, 0.01961881637573242, 0.019388416290283202, 0.01924812889099121, 0.019562496185302734, 0.019567615509033204, 0.019346431732177736, 0.019417152404785157, 0.019419071197509765, 0.01944883155822754, 0.01944063949584961, 0.019346431732177736, 0.01943142318725586, 0.019565568923950196, 0.019342336654663086, 0.01944371223449707, 0.01945702362060547, 0.019147775650024415, 0.01923072052001953, 0.019353599548339845, 0.019895296096801757, 0.01927065658569336, 0.019150848388671874, 0.019306495666503908, 0.019393535614013673, 0.019252223968505858, 0.01922559928894043, 0.01927475166320801, 0.01928294372558594, 0.019200000762939453, 0.01940377616882324, 0.019458047866821288, 0.019438592910766602, 0.019471359252929688, 0.019286016464233398, 0.019356672286987304, 0.019697664260864257, 0.01941913604736328, 0.019385343551635743, 0.01943552017211914, 0.01926348876953125, 0.019354623794555666, 0.019300352096557616, 0.019367935180664063, 0.01930342483520508, 0.019530752182006835, 0.019306495666503908, 0.01926553535461426, 0.01923174476623535, 0.019915775299072267, 0.01921843147277832, 0.01923481559753418, 0.019017728805541992, 0.01907302474975586, 0.019273727416992188, 0.01940275192260742, 0.01943244743347168, 0.01943142318725586, 0.019396608352661132, 0.019722240447998047, 0.019558399200439454, 0.019513343811035155, 0.019533824920654298, 0.019335168838500977, 0.019698688507080078, 0.0195020809173584, 0.019554304122924804, 0.019561471939086913, 0.019361791610717775, 0.01937919998168945, 0.019591167449951173, 0.019952640533447266, 0.020016128540039063, 0.01942425537109375, 0.01925836753845215, 0.01928704071044922, 0.01927987289428711, 0.019292160034179686, 0.019567615509033204, 0.019523584365844726, 0.019422208786010742, 0.019607551574707033, 0.019753984451293945, 0.019543039321899415, 0.019491840362548828, 0.019527679443359376, 0.019567615509033204, 0.01949286460876465, 0.019400703430175782, 0.019487743377685548, 0.01948876762390137, 0.019560447692871095, 0.01931372833251953, 0.01956447982788086, 0.019417087554931642, 0.019521535873413084, 0.019317760467529296, 0.019804159164428712, 0.019577856063842772, 0.019521535873413084, 0.02045747184753418, 0.020172800064086914, 0.01964236831665039, 0.019478527069091797, 0.019565568923950196, 0.019598335266113282, 0.019490816116333007, 0.019385343551635743, 0.019485824584960936, 0.019462015151977537, 0.019536895751953123, 0.019520511627197267, 0.019612672805786133, 0.019590143203735352, 0.019568639755249022, 0.01960550308227539, 0.019908607482910155, 0.019519487380981446, 0.019528703689575197, 0.01946931266784668, 0.01949286460876465, 0.01948876762390137, 0.019711999893188475, 0.019546112060546874, 0.01941913604736328, 0.019479551315307618, 0.019404800415039062, 0.01943244743347168, 0.019556352615356445 ] }, "throughput": { "unit": "tokens/s", "value": 51.32299863183584 }, "energy": null, "efficiency": null } } }