{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+rocm6.1", "_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 7763 64-Core Processor", "cpu_count": 128, "cpu_ram_mb": 1082015.256576, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.15.0-101-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": null, "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1385.213952, "max_global_vram": 0.0, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.54224169921875, "mean": 7.54224169921875, "stdev": 0.0, "p50": 7.54224169921875, "p90": 7.54224169921875, "p95": 7.54224169921875, "p99": 7.54224169921875, "values": [ 7.54224169921875 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1544.638464, "max_global_vram": 0.0, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 69, "total": 0.49552507925033573, "mean": 0.0071815228876860255, "stdev": 0.0005009574887134988, "p50": 0.006889417171478272, "p90": 0.007828614044189454, "p95": 0.007922309875488281, "p99": 0.008707722206115712, "values": [ 0.007343495845794678, 0.007500454902648925, 0.00966972827911377, 0.008029573440551758, 0.007800933837890625, 0.007811974048614502, 0.007811494827270508, 0.007822214126586914, 0.007375976085662842, 0.0072396559715270994, 0.007471974849700928, 0.00782461404800415, 0.007822214126586914, 0.007810534000396729, 0.007844614028930665, 0.007385575771331787, 0.007171016216278076, 0.006871656894683838, 0.006858696937561035, 0.006880777835845947, 0.006844937801361084, 0.006844936847686767, 0.00701837682723999, 0.006856136798858643, 0.006871657848358154, 0.006824778079986572, 0.0068754968643188474, 0.006808456897735596, 0.006864617824554444, 0.006844616889953613, 0.006848937034606934, 0.00685133695602417, 0.006851657867431641, 0.006879656791687012, 0.0068607769012451175, 0.006840297222137451, 0.006863976955413818, 0.0068399767875671385, 0.0068586978912353515, 0.006855017185211182, 0.00685181713104248, 0.00688237714767456, 0.006826697826385498, 0.006835816860198974, 0.006860617160797119, 0.00684477710723877, 0.006835658073425293, 0.006840617179870606, 0.006874536991119385, 0.006861096858978272, 0.006843496799468994, 0.006845578193664551, 0.006889417171478272, 0.008255013465881348, 0.006995176792144776, 0.007025096893310547, 0.0069842967987060545, 0.006998217105865479, 0.007011497020721435, 0.007004296779632569, 0.006967496871948242, 0.006946537017822265, 0.007003975868225098, 0.007858853816986084, 0.007845893859863281, 0.007285096168518066, 0.0073570961952209475, 0.007377895832061767, 0.007964613914489747 ] }, "throughput": { "unit": "tokens/s", "value": 278.4924634062434 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1544.716288, "max_global_vram": 0.0, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 69, "total": 0.5025968947410584, "mean": 0.007284012967261716, "stdev": 0.0004017663663838077, "p50": 0.007059496879577637, "p90": 0.007918853855133056, "p95": 0.007958405590057373, "p99": 0.008154244842529294, "values": [ 0.007788934230804443, 0.008075972557067872, 0.008255972862243652, 0.0079649338722229, 0.00788685417175293, 0.007948613166809082, 0.007876293182373047, 0.007634214878082276, 0.007323494911193848, 0.007682855129241943, 0.007916773796081543, 0.0079103741645813, 0.00791261386871338, 0.007927652835845947, 0.007927174091339112, 0.007054056167602539, 0.007089736938476562, 0.006930377006530762, 0.006979977130889893, 0.006952776908874512, 0.006945577144622803, 0.006968936920166016, 0.0071068558692932125, 0.006952456951141358, 0.006971336841583252, 0.0069425368309021, 0.006971336841583252, 0.006918537139892578, 0.006956936836242676, 0.006947017192840576, 0.006924616813659668, 0.006956137180328369, 0.006940456867218017, 0.00696925687789917, 0.006924616813659668, 0.007059496879577637, 0.006955976963043213, 0.006932298183441162, 0.006953896999359131, 0.006924616813659668, 0.00698013687133789, 0.006956296920776367, 0.006948936939239502, 0.00695885705947876, 0.006934697151184082, 0.006942856788635254, 0.0069361371994018555, 0.006961417198181152, 0.007044776916503907, 0.006983497142791748, 0.006932776927947998, 0.006928936958312988, 0.007352775096893311, 0.007359655857086181, 0.007240776062011719, 0.007290855884552002, 0.007279816150665283, 0.007273416042327881, 0.007238376140594483, 0.007305416107177734, 0.0073271760940551755, 0.007392136096954346, 0.0072604560852050784, 0.008106372833251952, 0.0075255751609802244, 0.00757117509841919, 0.007636454105377197, 0.007845253944396972, 0.007819333076477052 ] }, "throughput": { "unit": "tokens/s", "value": 137.28696042889263 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 69, "total": 0.47342707252502425, "mean": 0.006861261920652527, "stdev": 0.0003737570199502282, "p50": 0.006682057857513427, "p90": 0.007490790843963624, "p95": 0.007523558902740478, "p99": 0.00767724208831787, "values": [ 0.007208295822143555, 0.007485414981842041, 0.007816614151000977, 0.007545414924621582, 0.007472135066986084, 0.007533734798431397, 0.00746253490447998, 0.007194056987762452, 0.006947657108306885, 0.007265575885772705, 0.00749309492111206, 0.007490214824676514, 0.007488454818725586, 0.007508295059204102, 0.007498216152191162, 0.006683658123016358, 0.006687178134918213, 0.006549899101257324, 0.006598858833312988, 0.006571177959442139, 0.0065652580261230465, 0.006589417934417725, 0.006724617004394531, 0.0065746989250183106, 0.006587498188018799, 0.006564298152923584, 0.006591658115386963, 0.006543818950653076, 0.006581737995147705, 0.006570218086242675, 0.006545417785644532, 0.0065676589012146, 0.0065602979660034175, 0.006580937862396241, 0.006541098117828369, 0.006682057857513427, 0.0065793380737304685, 0.0065527791976928715, 0.0065718178749084475, 0.00653837776184082, 0.006596298217773438, 0.006576458930969239, 0.006569578170776367, 0.006578857898712158, 0.006553098201751709, 0.006560938835144043, 0.006553577899932861, 0.006582697868347168, 0.006662858009338379, 0.006600297927856445, 0.006552618980407715, 0.006550057888031006, 0.006545258045196533, 0.006887977123260498, 0.006774218082427979, 0.0068212571144104, 0.006801577091217041, 0.006806057929992676, 0.006773417949676514, 0.0068057370185852055, 0.0068142180442810054, 0.006939496994018555, 0.006779017925262451, 0.007611655235290528, 0.007024776935577392, 0.0071164569854736326, 0.007193575859069825, 0.007355016231536865, 0.007326533794403076 ] }, "throughput": { "unit": "tokens/s", "value": 145.7457843126468 }, "energy": null, "efficiency": null } } }