{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+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": "6", "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": "warn", "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.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": "0.12.0", "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1079.443456, "max_global_vram": 68702.69952, "max_process_vram": 49570.254848, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.9486630859375, "mean": 8.9486630859375, "stdev": 0.0, "p50": 8.9486630859375, "p90": 8.9486630859375, "p95": 8.9486630859375, "p99": 8.9486630859375, "values": [ 8.9486630859375 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1248.5632, "max_global_vram": 68702.69952, "max_process_vram": 304514.187264, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 58, "total": 0.5221576185226442, "mean": 0.009002717560735243, "stdev": 0.0016937620723528684, "p50": 0.008759218692779541, "p90": 0.009184660148620606, "p95": 0.009486604595184326, "p99": 0.017595257511138915, "values": [ 0.009471700668334962, 0.009571060180664063, 0.009464020729064942, 0.009241780281066895, 0.00916018009185791, 0.008996978759765625, 0.008990739822387695, 0.009049139976501464, 0.008919539451599122, 0.008889779090881348, 0.008787538528442383, 0.008773459434509277, 0.008754419326782227, 0.00895297908782959, 0.016750116348266602, 0.008904178619384766, 0.008793779373168945, 0.008763218879699707, 0.00878273868560791, 0.008778738975524902, 0.008785299301147461, 0.008809139251708984, 0.008229457855224609, 0.008199057579040527, 0.008378738403320313, 0.008316337585449219, 0.008746099472045899, 0.008789619445800782, 0.008762418746948242, 0.008717618942260742, 0.008709939002990722, 0.008366418838500976, 0.008373139381408691, 0.00813169765472412, 0.008732178688049316, 0.008062737464904785, 0.008204017639160156, 0.008217778205871582, 0.007999056816101075, 0.00835153865814209, 0.018715560913085936, 0.008248337745666504, 0.008225618362426758, 0.008722899436950683, 0.008137618064880371, 0.008675859451293946, 0.00875601863861084, 0.00868337917327881, 0.0084950590133667, 0.008730098724365235, 0.008786099433898926, 0.008775058746337891, 0.008765619277954101, 0.008744339942932128, 0.008732818603515624, 0.00873345947265625, 0.008777459144592286, 0.00877393913269043 ] }, "throughput": { "unit": "tokens/s", "value": 222.1551422120436 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1248.817152, "max_global_vram": 68702.69952, "max_process_vram": 314614.554624, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 58, "total": 0.4759119210243226, "mean": 0.008205377948695216, "stdev": 0.0003169255795192039, "p50": 0.008248817920684815, "p90": 0.008527267265319825, "p95": 0.008668211126327515, "p99": 0.009005577955245972, "values": [ 0.009080179214477539, 0.008949299812316895, 0.008788978576660156, 0.008646899223327637, 0.008490899085998534, 0.008520499229431152, 0.008546257972717285, 0.00851073932647705, 0.00847425937652588, 0.008543059349060059, 0.008357937812805177, 0.00833777904510498, 0.008298257827758788, 0.008323538780212402, 0.00846497917175293, 0.00837073802947998, 0.008315857887268066, 0.008296338081359864, 0.008332017898559571, 0.008330098152160645, 0.008290577888488769, 0.008104818344116211, 0.008120657920837403, 0.008127697944641113, 0.007863377094268799, 0.007916497230529786, 0.008345458030700683, 0.008256978034973144, 0.008268338203430176, 0.008235537528991699, 0.007739057064056396, 0.008151217460632324, 0.007864656925201417, 0.00788897705078125, 0.008067217826843262, 0.007863856792449952, 0.007632337093353272, 0.007747696876525879, 0.007754257202148437, 0.008209617614746093, 0.007331376075744629, 0.007913938045501709, 0.007792656898498535, 0.007929777145385742, 0.007525455951690674, 0.008124978065490722, 0.008219378471374512, 0.008238738059997558, 0.008272177696228027, 0.008083058357238769, 0.00830097770690918, 0.008280497550964355, 0.008291857719421387, 0.008263538360595703, 0.008231376647949219, 0.008217938423156738, 0.008240657806396484, 0.00822609806060791 ] }, "throughput": { "unit": "tokens/s", "value": 121.87129054293175 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 58, "total": 0.4447457733154297, "mean": 0.00766803057440396, "stdev": 0.0002872799643782898, "p50": 0.007724497079849244, "p90": 0.00795107297897339, "p95": 0.008053130245208739, "p99": 0.008334442548751831, "values": [ 0.008389617919921875, 0.008292819023132324, 0.008166418075561524, 0.008033138275146484, 0.007947856903076173, 0.007918097972869874, 0.007958577156066895, 0.007946096897125244, 0.007882576942443847, 0.008006097793579102, 0.007839537143707276, 0.007789456844329834, 0.007768657207489014, 0.0077753767967224125, 0.007856496810913086, 0.007799057006835938, 0.007757136821746826, 0.007724337100982666, 0.007785457134246826, 0.007778256893157959, 0.007776496887207031, 0.0076017770767211916, 0.00757953691482544, 0.007588816165924072, 0.007312335968017578, 0.0074313759803771974, 0.0077779369354248045, 0.007738097190856934, 0.007724657058715821, 0.007701937198638916, 0.007249296188354492, 0.007642896175384522, 0.007345456123352051, 0.007401616096496582, 0.007592496871948243, 0.007357776165008545, 0.007164656162261963, 0.0072436962127685545, 0.007238416194915771, 0.00770465612411499, 0.006795855045318604, 0.007379537105560303, 0.007259535789489746, 0.00742145586013794, 0.0070150551795959476, 0.0076067371368408205, 0.007704337120056152, 0.007716977119445801, 0.007757456779479981, 0.007578735828399658, 0.007779696941375733, 0.007746097087860108, 0.0077848172187805174, 0.007745456218719482, 0.007715375900268555, 0.00771601676940918, 0.007726576805114746, 0.007707056999206543 ] }, "throughput": { "unit": "tokens/s", "value": 130.41158225659925 }, "energy": null, "efficiency": null } } }