{ "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": "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": {}, "hub_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, "latency": true, "memory": 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.236096, "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.3.1", "optimum_benchmark_commit": "bf00581ca84403c7aba5a4a8f646e796f7b72599", "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.32.1", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1067.380736, "max_global_vram": 1095.749632, "max_process_vram": 201040.994304, "max_reserved": 713.03168, "max_allocated": 500.44672 }, "latency": { "unit": "s", "count": 59, "total": 0.5224557027816773, "mean": 0.008855181403079277, "stdev": 0.00043875484854685525, "p50": 0.00869965362548828, "p90": 0.009120069122314453, "p95": 0.009369267559051512, "p99": 0.010977483806610108, "values": [ 0.010903966903686524, 0.009213891983032227, 0.009109573364257812, 0.009016292572021484, 0.008912452697753906, 0.009162052154541016, 0.008969252586364745, 0.009506211280822754, 0.00935405158996582, 0.011079007148742676, 0.00904829216003418, 0.00884941291809082, 0.008982373237609862, 0.00892749309539795, 0.008741573333740234, 0.008721572875976562, 0.008724453926086426, 0.008687973976135254, 0.008691333770751953, 0.008675173759460449, 0.008668133735656738, 0.00869869327545166, 0.008723012924194336, 0.008701414108276366, 0.008675173759460449, 0.00865549373626709, 0.008714372634887696, 0.008685894012451172, 0.008698054313659668, 0.00867245388031006, 0.008690533638000488, 0.008685893058776855, 0.008674694061279296, 0.008693573951721191, 0.008737733840942383, 0.008702693939208984, 0.008674694061279296, 0.00870125389099121, 0.008783814430236816, 0.00874461269378662, 0.008700613975524902, 0.008695334434509277, 0.00869437313079834, 0.008679814338684082, 0.008671334266662598, 0.008832934379577637, 0.008680773735046386, 0.008709733009338378, 0.008675813674926758, 0.008681573867797852, 0.00869965362548828, 0.008657573699951172, 0.008714054107666016, 0.00869261360168457, 0.008696133613586426, 0.008666533470153809, 0.008692133903503417, 0.008672774314880371, 0.008683334350585938 ] }, "throughput": { "unit": "tokens/s", "value": 225.85646854219445 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1067.380736, "max_global_vram": 1095.757824, "max_process_vram": 190510.272512, "max_reserved": 713.03168, "max_allocated": 500.670464 }, "latency": { "unit": "s", "count": 59, "total": 0.49172123336791984, "mean": 0.008334258192676608, "stdev": 0.00019879211876782036, "p50": 0.00826701545715332, "p90": 0.008530885887145996, "p95": 0.008637670040130614, "p99": 0.009122528762817383, "values": [ 0.00945837116241455, 0.008537413597106934, 0.008621414184570313, 0.008375494003295899, 0.008347655296325683, 0.008493414878845215, 0.008529253959655762, 0.008879332542419434, 0.00875229263305664, 0.008624934196472167, 0.008350214958190917, 0.008326854705810547, 0.008334215164184571, 0.008297895431518555, 0.008236295700073242, 0.008236615180969239, 0.008219015121459962, 0.008203974723815918, 0.008239174842834473, 0.008248774528503418, 0.008227655410766602, 0.008234855651855468, 0.00825837516784668, 0.008225415229797363, 0.008235815048217774, 0.008350214958190917, 0.008268454551696777, 0.008279655456542969, 0.008236294746398925, 0.008270535469055176, 0.008235654830932616, 0.008272294998168945, 0.008239014625549317, 0.00826989459991455, 0.008333894729614258, 0.008264775276184083, 0.008345415115356445, 0.008291335105895995, 0.00838493537902832, 0.008282054901123046, 0.008259494781494141, 0.00826221466064453, 0.00824669647216797, 0.00820909595489502, 0.008218055725097656, 0.008242215156555176, 0.00826701545715332, 0.00824813461303711, 0.008237734794616699, 0.008222854614257813, 0.008219334602355957, 0.008418054580688476, 0.008302854537963868, 0.00826285457611084, 0.00826973533630371, 0.008237895965576171, 0.00826877498626709, 0.008262374877929687, 0.00824669361114502 ] }, "throughput": { "unit": "tokens/s", "value": 119.98668350336321 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 59, "total": 0.46050069665908805, "mean": 0.007805096553543866, "stdev": 0.00017177187892578977, "p50": 0.007748775959014893, "p90": 0.007947559833526612, "p95": 0.008053703784942625, "p99": 0.008481203327178955, "values": [ 0.008834213256835937, 0.007920775890350342, 0.008026535987854005, 0.007827335834503174, 0.007811656951904297, 0.00794493579864502, 0.007958055973052979, 0.00822557544708252, 0.008128294944763184, 0.008045415878295898, 0.00781037712097168, 0.007791337013244629, 0.00782621717453003, 0.007761416912078857, 0.007727336883544922, 0.007734056949615479, 0.0077159771919250485, 0.00770557689666748, 0.007736297130584717, 0.007740935802459717, 0.007722055912017823, 0.007734056949615479, 0.007739497184753418, 0.0077188568115234375, 0.007731976985931396, 0.00784605598449707, 0.007738216876983643, 0.007757896900177002, 0.007728937149047851, 0.007749256134033203, 0.007715816020965576, 0.007751817226409912, 0.007727656841278076, 0.0077586970329284665, 0.007799176216125489, 0.007746216773986817, 0.007786537170410156, 0.007751175880432129, 0.007859176158905029, 0.007771017074584961, 0.007737096786499024, 0.007737895965576172, 0.007720457077026367, 0.00769469690322876, 0.007724777221679687, 0.007693417072296142, 0.007756936073303223, 0.0077348570823669435, 0.007735016822814941, 0.007716456890106201, 0.0077033371925354, 0.007925896167755127, 0.007773256778717041, 0.007742856025695801, 0.007748775959014893, 0.007714857101440429, 0.0077610969543457035, 0.0077495770454406735, 0.00772301721572876 ] }, "throughput": { "unit": "tokens/s", "value": 128.12141312280818 }, "energy": null, "efficiency": null } } }