{ "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]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]", "Advanced Micro Devices, Inc. [AMD/ATI]" ], "gpu_count": 8, "gpu_vram_mb": 549621596160, "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.2", "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": 1389.211648, "max_global_vram": 11.145216, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.762439453125, "mean": 7.762439453125, "stdev": 0.0, "p50": 7.762439453125, "p90": 7.762439453125, "p95": 7.762439453125, "p99": 7.762439453125, "values": [ 7.762439453125 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1548.47232, "max_global_vram": 11.145216, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 59, "total": 0.44968510150909424, "mean": 0.007621781381510071, "stdev": 0.0029362607071729903, "p50": 0.007005897045135498, "p90": 0.007861925888061524, "p95": 0.007913350009918212, "p99": 0.017351896343231237, "values": [ 0.008235334396362304, 0.007437895774841308, 0.007485896110534668, 0.007273577213287354, 0.00704285717010498, 0.007052617073059082, 0.006972776889801025, 0.00685933780670166, 0.0068654179573059086, 0.006891497135162353, 0.006963497161865235, 0.006859978199005127, 0.006874378204345703, 0.008351492881774902, 0.007242216110229492, 0.006882057189941406, 0.007796935081481934, 0.007822535037994384, 0.007870213985443115, 0.007816453933715821, 0.007877573966979981, 0.007828295230865479, 0.007808294773101807, 0.0078140549659729, 0.0070786972045898434, 0.006930057048797607, 0.007134216785430908, 0.02978102493286133, 0.006983177185058594, 0.006981577873229981, 0.006999176979064941, 0.0069602980613708496, 0.006952937126159668, 0.006987337112426758, 0.006956937789916992, 0.007087337017059326, 0.006952297210693359, 0.0075988550186157225, 0.007047817230224609, 0.006955338001251221, 0.007001418113708496, 0.006988936901092529, 0.007004776954650879, 0.007005897045135498, 0.006970057010650635, 0.0069978971481323244, 0.006999657154083252, 0.007000617027282715, 0.007015657901763916, 0.0070358171463012695, 0.007003177165985108, 0.006962536811828613, 0.00699757719039917, 0.006976937770843506, 0.007859973907470704, 0.007869733810424804, 0.007487174987792969, 0.007349096775054932, 0.007845893859863281 ] }, "throughput": { "unit": "tokens/s", "value": 262.4058471228085 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1548.537856, "max_global_vram": 11.108352, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 59, "total": 0.5580844469070434, "mean": 0.009459058422153279, "stdev": 0.014815164664305682, "p50": 0.007367656230926513, "p90": 0.008174757957458496, "p95": 0.008235236930847167, "p99": 0.056188595714569294, "values": [ 0.007835813999176025, 0.007478856086730957, 0.007500296115875244, 0.007191816806793213, 0.007054057121276856, 0.007240616798400879, 0.006996777057647705, 0.006981257915496826, 0.007002217769622803, 0.007219336986541748, 0.006973897933959961, 0.006966217041015625, 0.12225289154052735, 0.007295015811920166, 0.007633895874023438, 0.007740135192871094, 0.008281892776489257, 0.008156773567199706, 0.008174694061279297, 0.008175013542175293, 0.008154534339904785, 0.00812029266357422, 0.008348933219909668, 0.007870213985443115, 0.0072706971168518065, 0.007316617012023926, 0.007306856155395508, 0.007359496116638184, 0.007361735820770264, 0.007372615814208984, 0.007342376232147217, 0.007397575855255127, 0.0075754961967468264, 0.007326537132263183, 0.0074034957885742185, 0.007450695991516113, 0.007555655956268311, 0.007473415851593017, 0.007367656230926513, 0.007591975212097168, 0.00735149621963501, 0.007297576904296875, 0.0073367757797241214, 0.007299016952514648, 0.007305097103118896, 0.0073673357963562015, 0.007352777004241943, 0.007312615871429443, 0.00741869592666626, 0.007329736232757568, 0.007294217109680176, 0.007298536777496338, 0.0072988557815551755, 0.0074121360778808595, 0.008140613555908203, 0.008230052947998046, 0.0077270159721374515, 0.007968133926391601, 0.008225414276123047 ] }, "throughput": { "unit": "tokens/s", "value": 105.71876770080864 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 59, "total": 0.5289811754226684, "mean": 0.008965782634282516, "stdev": 0.014791657263717176, "p50": 0.006871178150177002, "p90": 0.007630792140960694, "p95": 0.007712262964248658, "p99": 0.055611679496765334, "values": [ 0.007334216117858887, 0.007004938125610352, 0.007016457080841064, 0.006774377822875976, 0.006651817798614502, 0.006843498229980469, 0.0066028590202331545, 0.006593258857727051, 0.006620779037475586, 0.006824937820434571, 0.0065820589065551756, 0.006576138019561768, 0.1215863265991211, 0.006817577838897705, 0.007107977867126465, 0.007223657131195068, 0.007712134838104248, 0.007606534957885742, 0.007620454788208008, 0.007627816200256348, 0.0076066961288452145, 0.007590374946594238, 0.00783693504333496, 0.007340136051177978, 0.006799178123474121, 0.006805737972259521, 0.0068252568244934085, 0.006823657989501953, 0.006857257843017578, 0.0068705368041992185, 0.006839017868041992, 0.006878218173980713, 0.0070713372230529785, 0.006840137958526611, 0.00687517786026001, 0.006939978122711182, 0.007066857814788818, 0.0069866981506347655, 0.006871178150177002, 0.007070217132568359, 0.0068606181144714356, 0.006817738056182862, 0.006831498146057129, 0.006806859016418457, 0.006818697929382324, 0.0068820581436157225, 0.00686045789718628, 0.006816617965698242, 0.006928297042846679, 0.006818858146667481, 0.006809577941894531, 0.006809097766876221, 0.0068135781288146974, 0.006887496948242188, 0.007642695903778076, 0.0077081360816955566, 0.007203176975250244, 0.007429895877838134, 0.00771341609954834 ] }, "throughput": { "unit": "tokens/s", "value": 111.53515992862621 }, "energy": null, "efficiency": null } } }