{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.2.2+rocm5.7", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "model_type": "gpt2", "model": "openai-community/gpt2", "processor": "openai-community/gpt2", "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": null, "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": {}, "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": 1, "duration": 1, "warmup_runs": 1, "input_shapes": { "batch_size": 1, "num_choices": 2, "sequence_length": 2 }, "new_tokens": null, "memory": true, "latency": true, "energy": false, "forward_kwargs": {}, "generate_kwargs": { "max_new_tokens": 2, "min_new_tokens": 2 }, "call_kwargs": { "num_inference_steps": 2 } }, "launcher": { "name": "process", "_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher", "device_isolation": true, "device_isolation_action": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7643 48-Core Processor", "cpu_count": 96, "cpu_ram_mb": 1082028.982272, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "Advanced Micro Devices, Inc. [AMD/ATI]" ], "gpu_count": 1, "gpu_vram_mb": 68702699520, "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "3e7bebdc507bc4e37dce5660074b7586de6b39b2", "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 902.004736, "max_global_vram": 1011.740672, "max_process_vram": 42871.750656, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 6.81142333984375, "mean": 6.81142333984375, "stdev": 0.0, "p50": 6.81142333984375, "p90": 6.81142333984375, "p95": 6.81142333984375, "p99": 6.81142333984375, "values": [ 6.81142333984375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1056.19456, "max_global_vram": 1107.480576, "max_process_vram": 270311.411712, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 59, "total": 0.5335619149208068, "mean": 0.009043422286793338, "stdev": 0.008074031716942815, "p50": 0.00786915111541748, "p90": 0.008259680175781249, "p95": 0.008797506904602051, "p99": 0.03482232563018809, "values": [ 0.008917314529418945, 0.008984834671020507, 0.008784194946289063, 0.008328513145446777, 0.008259072303771972, 0.008183072090148926, 0.008262111663818359, 0.008254112243652344, 0.0077689909934997555, 0.007861310958862305, 0.07050267028808593, 0.007904510974884033, 0.007826271057128907, 0.007937470912933349, 0.007799389839172363, 0.007814751148223878, 0.007821150779724121, 0.007859230041503906, 0.00786067008972168, 0.007834589958190918, 0.007812990188598632, 0.007842910766601563, 0.007844030857086182, 0.007946431159973144, 0.007972511768341064, 0.007841149806976318, 0.007852991104125977, 0.007833630084991454, 0.00786915111541748, 0.007837790966033936, 0.007871551036834717, 0.007861950874328612, 0.007833311080932617, 0.00785571002960205, 0.00784083080291748, 0.007860509872436524, 0.007881309986114502, 0.007876670837402344, 0.007836349964141846, 0.008203871726989746, 0.008229472160339356, 0.008158432006835938, 0.008191871643066406, 0.008042911529541015, 0.008058911323547363, 0.008005790710449219, 0.007826430797576904, 0.00786803102493286, 0.007908350944519043, 0.00789394998550415, 0.008005471229553222, 0.008104511260986328, 0.007841630935668946, 0.007829309940338135, 0.007899230003356933, 0.007785790920257568, 0.00782611083984375, 0.007857629776000977, 0.007888191223144532 ] }, "throughput": { "unit": "tokens/s", "value": 221.15521498102794 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1056.391168, "max_global_vram": 1107.529728, "max_process_vram": 275260.919808, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 59, "total": 0.46761926269531245, "mean": 0.007925750215174788, "stdev": 0.000279410707205547, "p50": 0.007836669921875, "p90": 0.008148031044006347, "p95": 0.008413265514373778, "p99": 0.008991849555969239, "values": [ 0.008674914360046387, 0.008756513595581055, 0.008302271842956543, 0.008146270751953125, 0.008031230926513672, 0.008094911575317382, 0.009316837310791016, 0.007800990104675293, 0.0077942700386047364, 0.007831231117248535, 0.008384193420410156, 0.007836669921875, 0.007761469841003418, 0.007735710144042968, 0.0077483501434326175, 0.007793310165405273, 0.007829790115356445, 0.007788190841674805, 0.007743071079254151, 0.007815391063690185, 0.0078419508934021, 0.0077709097862243654, 0.007669950008392334, 0.00804211139678955, 0.008001311302185059, 0.007852510929107666, 0.0079150710105896, 0.0078112311363220215, 0.0077734699249267574, 0.007801949977874756, 0.00785827112197876, 0.007906270027160645, 0.007816990852355958, 0.007861791133880615, 0.007868990898132325, 0.007761950969696045, 0.007858750820159912, 0.007835550785064697, 0.008019710540771484, 0.008139230728149415, 0.008052350997924805, 0.008155072212219238, 0.007964830875396728, 0.007892189979553222, 0.008037951469421387, 0.00781539011001587, 0.007726749897003174, 0.007729310035705567, 0.007805469989776611, 0.007706430912017823, 0.007844510078430176, 0.00787571096420288, 0.007728670120239258, 0.0076774702072143555, 0.00789107084274292, 0.007792990207672119, 0.007662590026855469, 0.007805470943450928, 0.007861470222473145 ] }, "throughput": { "unit": "tokens/s", "value": 126.17102139875433 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 59, "total": 0.4219656443595886, "mean": 0.007151960073891331, "stdev": 0.000273727394341104, "p50": 0.007050588130950928, "p90": 0.007361884307861328, "p95": 0.00756111726760864, "p99": 0.008238352146148683, "values": [ 0.007867550849914551, 0.0079947509765625, 0.007497629165649414, 0.0073150677680969235, 0.007210907936096192, 0.007229147911071777, 0.008574753761291505, 0.006972026824951172, 0.006968667030334472, 0.007069307804107666, 0.007527069091796875, 0.007016026973724365, 0.006938746929168701, 0.006987387180328369, 0.006958426952362061, 0.007056827068328857, 0.00704738712310791, 0.007037308216094971, 0.007025467872619629, 0.0071248278617858886, 0.007042428016662597, 0.007031867027282715, 0.006974106788635254, 0.007182107925415039, 0.0072245078086853026, 0.007060028076171875, 0.007152187824249268, 0.007044347763061523, 0.007046747207641602, 0.007029946804046631, 0.007050588130950928, 0.007045466899871827, 0.007055068016052246, 0.007126587867736817, 0.007044187068939209, 0.007056188106536865, 0.007023548126220703, 0.007053466796875, 0.007372509002685547, 0.00733762788772583, 0.0073592281341552735, 0.007315868854522705, 0.007195548057556152, 0.007219227790832519, 0.007196988105773926, 0.007035546779632569, 0.007012187004089355, 0.006999386787414551, 0.007111708164215088, 0.006984188079833985, 0.007041147232055664, 0.007095387935638428, 0.0069654669761657715, 0.0069657878875732425, 0.007049307823181152, 0.006976346969604492, 0.006953466892242432, 0.006999388217926026, 0.007116668224334717 ] }, "throughput": { "unit": "tokens/s", "value": 139.82180963936884 }, "energy": null, "efficiency": null } } }