{ "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.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": 1749.438464, "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.04539161682128906, "mean": 0.02269580841064453, "stdev": 0.00048652839660644556, "p50": 0.02269580841064453, "p90": 0.023085031127929687, "p95": 0.02313368396759033, "p99": 0.023172606239318848, "values": [ 0.022209280014038085, 0.023182336807250976 ] }, "throughput": { "unit": "tokens/s", "value": 308.4269955643853 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1749.454848, "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.117288330078125, "mean": 2.5586441650390626, "stdev": 0.024914672851562347, "p50": 2.5586441650390626, "p90": 2.5785759033203126, "p95": 2.5810673706054685, "p99": 2.5830605444335935, "values": [ 2.583558837890625, 2.5337294921875 ] }, "throughput": { "unit": "tokens/s", "value": 49.63566319041519 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 253, "total": 5.119621120452879, "mean": 0.020235656602580556, "stdev": 0.001533867494208121, "p50": 0.019965951919555663, "p90": 0.020746393966674805, "p95": 0.021015961456298825, "p99": 0.022081044692993154, "values": [ 0.02123161506652832, 0.021602304458618164, 0.021316608428955077, 0.020933631896972657, 0.020817920684814452, 0.020692991256713866, 0.020976640701293944, 0.020387840270996094, 0.02122137641906738, 0.022599679946899414, 0.021312511444091797, 0.020941823959350587, 0.02068992042541504, 0.020998144149780275, 0.021396480560302734, 0.020787200927734374, 0.020999168395996092, 0.020592639923095703, 0.02092748832702637, 0.02060492706298828, 0.020434944152832032, 0.020549631118774413, 0.020603904724121092, 0.020520959854125977, 0.020527103424072265, 0.020566015243530272, 0.02145792007446289, 0.02104115104675293, 0.020730880737304686, 0.020760576248168947, 0.02067148780822754, 0.020543487548828124, 0.02064384078979492, 0.02086604881286621, 0.020963327407836914, 0.02043801689147949, 0.020616191864013672, 0.020521984100341797, 0.021222400665283202, 0.020674560546875, 0.020523008346557618, 0.02078927993774414, 0.020587488174438475, 0.020396064758300782, 0.021330911636352538, 0.023147520065307618, 0.020521984100341797, 0.020196352005004883, 0.019977216720581056, 0.01993011283874512, 0.019924991607666014, 0.020246528625488282, 0.02006118392944336, 0.019952640533447266, 0.019933183670043944, 0.019922943115234376, 0.020059135437011717, 0.02046156883239746, 0.019965951919555663, 0.01993011283874512, 0.019933183670043944, 0.019933183670043944, 0.019942399978637695, 0.019746816635131836, 0.019987455368041994, 0.019934207916259765, 0.019973119735717772, 0.019966976165771484, 0.019971071243286134, 0.019914751052856446, 0.0200447998046875, 0.019957759857177734, 0.019964927673339843, 0.019938304901123048, 0.019932159423828123, 0.019911680221557617, 0.02007347106933594, 0.019907583236694337, 0.01993011283874512, 0.019968000411987305, 0.0198922233581543, 0.019904512405395508, 0.01990656089782715, 0.020151296615600587, 0.0202608642578125, 0.02022707176208496, 0.02038374328613281, 0.020613216400146486, 0.020394912719726564, 0.019999744415283204, 0.020739072799682616, 0.020023296356201172, 0.020345855712890625, 0.020178943634033202, 0.020332544326782227, 0.019891231536865235, 0.019908575057983397, 0.020067327499389647, 0.020381759643554688, 0.02074822425842285, 0.02000383949279785, 0.019895296096801757, 0.019976192474365235, 0.019945472717285157, 0.019910655975341796, 0.01988198471069336, 0.01985228729248047, 0.019869695663452147, 0.01987481689453125, 0.019681280136108398, 0.01970790481567383, 0.019854400634765627, 0.019905471801757814, 0.019794944763183595, 0.019768320083618163, 0.01982156753540039, 0.019735551834106444, 0.019703807830810546, 0.019697664260864257, 0.019704832077026366, 0.02002124786376953, 0.019911680221557617, 0.019963903427124022, 0.019906591415405274, 0.019915775299072267, 0.019809247970581055, 0.04347187042236328, 0.019942399978637695, 0.019975168228149414, 0.019965951919555663, 0.019825664520263672, 0.019710975646972655, 0.019919872283935547, 0.019727359771728514, 0.019718143463134767, 0.01969254493713379, 0.01969152069091797, 0.019687423706054686, 0.01966592025756836, 0.019938304901123048, 0.019887104034423828, 0.01990656089782715, 0.019787776947021486, 0.019729408264160156, 0.01993011283874512, 0.0198922233581543, 0.019883007049560548, 0.020374528884887694, 0.019826688766479493, 0.019687423706054686, 0.019727359771728514, 0.020405248641967775, 0.019924991607666014, 0.019932159423828123, 0.019943424224853516, 0.01992710494995117, 0.020117439270019532, 0.020282367706298828, 0.02028339195251465, 0.01989836883544922, 0.019981311798095702, 0.02023526382446289, 0.02019430351257324, 0.020237312316894532, 0.019953664779663087, 0.020059135437011717, 0.02006425666809082, 0.019894271850585937, 0.019914751052856446, 0.019931135177612306, 0.01990656089782715, 0.019965951919555663, 0.019938304901123048, 0.019974143981933593, 0.019877887725830077, 0.019982336044311523, 0.019981311798095702, 0.020015104293823242, 0.019937280654907227, 0.0200263671875, 0.019994623184204103, 0.019957759857177734, 0.019986431121826173, 0.019987455368041994, 0.019946495056152345, 0.019947519302368166, 0.020008960723876954, 0.019968000411987305, 0.020382720947265624, 0.020011007308959963, 0.019963903427124022, 0.020148223876953125, 0.019748863220214845, 0.019778560638427735, 0.01996396827697754, 0.020027328491210937, 0.01986457633972168, 0.01978265571594238, 0.020487167358398437, 0.0200581111907959, 0.019939327239990236, 0.020106271743774416, 0.019967967987060548, 0.019946495056152345, 0.019977216720581056, 0.019953664779663087, 0.019965951919555663, 0.019775487899780272, 0.019969120025634765, 0.020375455856323242, 0.019928064346313477, 0.02001919937133789, 0.019981311798095702, 0.020006912231445313, 0.019781631469726564, 0.019739648818969727, 0.019811328887939454, 0.019804159164428712, 0.019927040100097656, 0.01997209548950195, 0.019946495056152345, 0.019894271850585937, 0.020222976684570314, 0.019916799545288084, 0.019787776947021486, 0.019740671157836915, 0.019787776947021486, 0.020000768661499024, 0.019901439666748046, 0.019689472198486328, 0.01994140815734863, 0.01997001647949219, 0.019963903427124022, 0.019973119735717772, 0.01986457633972168, 0.019942399978637695, 0.019989503860473632, 0.01999564743041992, 0.019965951919555663, 0.019962879180908204, 0.019934207916259765, 0.019954687118530275, 0.019954687118530275, 0.019959808349609375, 0.019931135177612306, 0.019954687118530275, 0.019934207916259765, 0.019945472717285157, 0.019940351486206053, 0.01988915252685547, 0.01995065689086914, 0.019912639617919923, 0.019947519302368166 ] }, "throughput": { "unit": "tokens/s", "value": 49.41771940686495 }, "energy": null, "efficiency": null } } }