{ "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": "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, "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": "c35d2ccf5a5ebcab24a0b9da3cb2527b3ae565a0", "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.567936, "max_global_vram": 6768.033792, "max_process_vram": 0.0, "max_reserved": 6138.363904, "max_allocated": 6060.931072 }, "latency": { "unit": "s", "count": 1, "total": 12.442005859375, "mean": 12.442005859375, "stdev": 0.0, "p50": 12.442005859375, "p90": 12.442005859375, "p95": 12.442005859375, "p99": 12.442005859375, "values": [ 12.442005859375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1745.707008, "max_global_vram": 6789.005312, "max_process_vram": 0.0, "max_reserved": 6142.558208, "max_allocated": 5028.450816 }, "latency": { "unit": "s", "count": 2, "total": 0.043309535980224606, "mean": 0.021654767990112303, "stdev": 4.782485961913989e-05, "p50": 0.021654767990112303, "p90": 0.02169302787780762, "p95": 0.02169781036376953, "p99": 0.02170163635253906, "values": [ 0.021606943130493165, 0.021702592849731445 ] }, "throughput": { "unit": "tokens/s", "value": 323.25444461913617 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1770.733568, "max_global_vram": 6793.199616, "max_process_vram": 0.0, "max_reserved": 6146.752512, "max_allocated": 5031.820288 }, "latency": { "unit": "s", "count": 2, "total": 5.141742431640625, "mean": 2.5708712158203126, "stdev": 0.014269409179687553, "p50": 2.5708712158203126, "p90": 2.5822867431640626, "p95": 2.5837136840820314, "p99": 2.5848552368164066, "values": [ 2.556601806640625, 2.585140625 ] }, "throughput": { "unit": "tokens/s", "value": 49.399596221888885 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 254, "total": 5.1414824924469, "mean": 0.02024205705687756, "stdev": 0.0004423089829375129, "p50": 0.019986943244934084, "p90": 0.0208225284576416, "p95": 0.020916325855255127, "p99": 0.021199257431030273, "values": [ 0.019908607482910155, 0.019923967361450197, 0.020068351745605468, 0.019891199111938478, 0.01987583923339844, 0.019909631729125975, 0.020248575210571287, 0.019904512405395508, 0.019869695663452147, 0.01986457633972168, 0.019939327239990236, 0.019886079788208007, 0.019977216720581056, 0.019861503601074217, 0.019987455368041994, 0.019948543548583983, 0.019887104034423828, 0.019966976165771484, 0.019954687118530275, 0.01989836883544922, 0.0200447998046875, 0.020936704635620116, 0.020818944931030273, 0.019907583236694337, 0.019943424224853516, 0.02006118392944336, 0.019965951919555663, 0.01988096046447754, 0.02006118392944336, 0.01987481689453125, 0.01992192077636719, 0.019922943115234376, 0.019966976165771484, 0.019985408782958985, 0.019961856842041017, 0.019907583236694337, 0.01990553665161133, 0.01990553665161133, 0.019907583236694337, 0.019937280654907227, 0.019965951919555663, 0.019914751052856446, 0.019931135177612306, 0.0198973445892334, 0.019945472717285157, 0.019956735610961913, 0.020087871551513672, 0.01994438362121582, 0.019989503860473632, 0.019935232162475586, 0.019955711364746095, 0.02004582405090332, 0.019909631729125975, 0.01989017677307129, 0.019907583236694337, 0.020319232940673827, 0.020039680480957032, 0.01988812828063965, 0.019908607482910155, 0.019914751052856446, 0.019993600845336915, 0.020109312057495117, 0.02000383949279785, 0.01997209548950195, 0.019938304901123048, 0.019928064346313477, 0.019908607482910155, 0.019945472717285157, 0.019970048904418947, 0.019870719909667968, 0.019964927673339843, 0.019908607482910155, 0.019960832595825196, 0.02002227210998535, 0.021752832412719726, 0.02110361671447754, 0.02105446434020996, 0.020907007217407226, 0.019920896530151368, 0.019883007049560548, 0.019935232162475586, 0.02006630325317383, 0.019968000411987305, 0.019927040100097656, 0.019931135177612306, 0.019926015853881835, 0.019939327239990236, 0.019957759857177734, 0.019966976165771484, 0.020000768661499024, 0.019970048904418947, 0.019955711364746095, 0.02004991912841797, 0.019942399978637695, 0.019934207916259765, 0.02031718444824219, 0.020783103942871094, 0.01998028755187988, 0.019955711364746095, 0.020129791259765627, 0.019952640533447266, 0.019986431121826173, 0.019974143981933593, 0.019955711364746095, 0.0200898551940918, 0.02032537651062012, 0.019924991607666014, 0.019902463912963866, 0.020039680480957032, 0.02063974380493164, 0.020899839401245117, 0.020701183319091796, 0.020767744064331056, 0.020818944931030273, 0.02083635139465332, 0.020754432678222655, 0.020790271759033203, 0.020731903076171874, 0.020785152435302736, 0.02083020782470703, 0.02109337615966797, 0.02086911964416504, 0.020677631378173827, 0.020756479263305663, 0.020726783752441406, 0.020039680480957032, 0.019910655975341796, 0.019869695663452147, 0.019931135177612306, 0.019998720169067383, 0.019987455368041994, 0.019917823791503905, 0.019976192474365235, 0.01984511947631836, 0.019914751052856446, 0.019869695663452147, 0.01989017677307129, 0.019916799545288084, 0.02004275131225586, 0.01984000015258789, 0.019986431121826173, 0.01987174415588379, 0.019891199111938478, 0.01989836883544922, 0.01986867141723633, 0.02008064079284668, 0.01990656089782715, 0.0198973445892334, 0.019985408782958985, 0.01990656089782715, 0.019947519302368166, 0.01985843276977539, 0.01985945510864258, 0.01980620765686035, 0.02025369644165039, 0.01984716796875, 0.01989017677307129, 0.02008064079284668, 0.020060159683227538, 0.02010419273376465, 0.02004684829711914, 0.020109312057495117, 0.02064588737487793, 0.020782079696655274, 0.02072985649108887, 0.02069811248779297, 0.020677631378173827, 0.020658176422119142, 0.020824064254760744, 0.020888576507568358, 0.020737024307250978, 0.02066022491455078, 0.02068889617919922, 0.020736000061035157, 0.021141504287719725, 0.02106265640258789, 0.020752384185791017, 0.019924991607666014, 0.020739072799682616, 0.019876863479614256, 0.01991372871398926, 0.019851264953613282, 0.019904512405395508, 0.020742143630981445, 0.020684799194335936, 0.02064793586730957, 0.020486143112182616, 0.02083839988708496, 0.020719615936279297, 0.020726783752441406, 0.02082815933227539, 0.020806655883789063, 0.020748287200927733, 0.01998028755187988, 0.021109760284423826, 0.0200447998046875, 0.019989503860473632, 0.02005299186706543, 0.020011007308959963, 0.02065203285217285, 0.02083328056335449, 0.020682752609252928, 0.020800512313842775, 0.02126438331604004, 0.020684799194335936, 0.020715520858764647, 0.02087116813659668, 0.020703231811523438, 0.020098047256469728, 0.020050943374633787, 0.019934207916259765, 0.019975168228149414, 0.01998028755187988, 0.019957759857177734, 0.019960832595825196, 0.01998028755187988, 0.02003660774230957, 0.01991372871398926, 0.021019647598266602, 0.02072166442871094, 0.020805631637573242, 0.020933631896972657, 0.02064384078979492, 0.020785152435302736, 0.020694015502929687, 0.02086604881286621, 0.020737024307250978, 0.020817920684814452, 0.020717567443847656, 0.019963903427124022, 0.02005504035949707, 0.020002815246582033, 0.019950592041015625, 0.019964927673339843, 0.019918848037719726, 0.01991372871398926, 0.02005606460571289, 0.019942399978637695, 0.019959808349609375, 0.020426752090454102, 0.02083839988708496, 0.020702207565307617, 0.020769792556762694, 0.020799488067626954, 0.019918848037719726, 0.020135936737060548, 0.019940351486206053, 0.020516864776611327, 0.020586496353149415, 0.0208035831451416, 0.020777984619140624, 0.022945791244506835, 0.021032960891723632, 0.020779008865356444 ] }, "throughput": { "unit": "tokens/s", "value": 49.402093729413444 }, "energy": null, "efficiency": null } } }