{ "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 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": "94ccda0ad71bebc72e235e85dbfd6165ea4a634c", "transformers_version": "4.42.4", "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": { "load": { "memory": { "unit": "MB", "max_ram": 901.402624, "max_global_vram": 3298.353152, "max_process_vram": 47584.62464, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 8.2001845703125, "mean": 8.2001845703125, "stdev": 0.0, "p50": 8.2001845703125, "p90": 8.2001845703125, "p95": 8.2001845703125, "p99": 8.2001845703125, "values": [ 8.2001845703125 ] }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1055.858688, "max_global_vram": 3392.749568, "max_process_vram": 295803.564032, "max_reserved": 725.614592, "max_allocated": 513.035264 }, "latency": { "unit": "s", "count": 60, "total": 0.5002231516838074, "mean": 0.008337052528063457, "stdev": 0.00037873420488135855, "p50": 0.00831294059753418, "p90": 0.008850826930999756, "p95": 0.008993179130554198, "p99": 0.009479649724960324, "values": [ 0.008986059188842774, 0.00908893871307373, 0.008957099914550782, 0.008704620361328125, 0.008493579864501954, 0.008390220642089843, 0.008475179672241212, 0.00848606014251709, 0.008436301231384277, 0.008492620468139648, 0.010017255783081054, 0.008653420448303223, 0.00821406078338623, 0.008428139686584473, 0.00835598087310791, 0.008348620414733887, 0.008394379615783692, 0.008513739585876465, 0.008327980041503907, 0.008112300872802734, 0.00801486110687256, 0.008027981758117676, 0.008297901153564453, 0.008044140815734863, 0.008054060935974121, 0.008020140647888184, 0.008031182289123535, 0.008041260719299316, 0.008006701469421387, 0.008167181015014648, 0.00803342056274414, 0.008022860527038574, 0.007999182224273682, 0.008037900924682618, 0.008020140647888184, 0.008014222145080567, 0.008027661323547363, 0.008031661987304688, 0.008022221565246582, 0.008036460876464844, 0.008007981300354005, 0.008027820587158204, 0.008988139152526855, 0.008839018821716308, 0.00869789981842041, 0.009106059074401856, 0.008451821327209473, 0.008513580322265625, 0.008492460250854492, 0.00834574031829834, 0.008421900749206544, 0.008010220527648926, 0.008063820838928223, 0.007988302230834961, 0.007986061096191406, 0.008373419761657714, 0.008424780845642089, 0.008335020065307617, 0.008276619911193848, 0.008044781684875489 ] }, "throughput": { "unit": "tokens/s", "value": 239.89293497525355 }, "energy": null, "efficiency": null }, "decode": { "memory": { "unit": "MB", "max_ram": 1055.858688, "max_global_vram": 3394.134016, "max_process_vram": 272352.055296, "max_reserved": 725.614592, "max_allocated": 513.259008 }, "latency": { "unit": "s", "count": 60, "total": 0.4996458745002746, "mean": 0.008327431241671244, "stdev": 0.00026118088610275087, "p50": 0.008219181060791015, "p90": 0.008758652305603028, "p95": 0.008851564025878906, "p99": 0.008904452838897705, "values": [ 0.008909738540649415, 0.008797419548034669, 0.0086790189743042, 0.008472620010375976, 0.008433740615844726, 0.008260940551757813, 0.008475179672241212, 0.008370699882507325, 0.008413100242614746, 0.008758060455322266, 0.008900779724121094, 0.008316620826721192, 0.008081900596618652, 0.008412779808044434, 0.008085901260375977, 0.008503500938415526, 0.008674860000610352, 0.00850782012939453, 0.008409741401672364, 0.008064141273498535, 0.008048781394958496, 0.008164299964904784, 0.008238381385803222, 0.008199980735778808, 0.008124140739440918, 0.0080814208984375, 0.008166380882263184, 0.008107980728149415, 0.008039501190185547, 0.00811854076385498, 0.00813374137878418, 0.008106541633605958, 0.008170061111450196, 0.008091501235961914, 0.008147821426391602, 0.008194860458374023, 0.008186381340026855, 0.008170061111450196, 0.008120780944824218, 0.008185100555419923, 0.00805134105682373, 0.008172780990600585, 0.008851180076599121, 0.008511659622192382, 0.008763978958129883, 0.008752779960632324, 0.00855325984954834, 0.008395660400390624, 0.008382061004638671, 0.008858859062194824, 0.008129581451416016, 0.008018381118774414, 0.008154380798339843, 0.008012141227722168, 0.008353740692138671, 0.008447660446166991, 0.008568300247192382, 0.008339820861816406, 0.008089582443237304, 0.007913899898529054 ] }, "throughput": { "unit": "tokens/s", "value": 120.0850503569344 }, "energy": null, "efficiency": null }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 60, "total": 0.45099079036712664, "mean": 0.007516513172785442, "stdev": 0.00027121947102105626, "p50": 0.007397423028945923, "p90": 0.00798396577835083, "p95": 0.008064732789993288, "p99": 0.008120160512924194, "values": [ 0.008142061233520508, 0.007985260963439942, 0.007908781051635743, 0.007731021881103516, 0.0075764632225036625, 0.007542702198028564, 0.007645421981811523, 0.007563662052154541, 0.007578062057495117, 0.007956942081451417, 0.008026701927185059, 0.007495182991027832, 0.0072387027740478515, 0.007656142234802246, 0.007299023151397705, 0.0076767830848693845, 0.007840782165527345, 0.00771326208114624, 0.007549102783203125, 0.007256302833557129, 0.007248143196105957, 0.007291822910308838, 0.007407662868499756, 0.007334383010864258, 0.00727806282043457, 0.007261262893676758, 0.007251502990722657, 0.0072497429847717286, 0.007299182891845703, 0.007331822872161865, 0.007331983089447021, 0.007275022983551025, 0.007318062782287598, 0.00728238296508789, 0.007284462928771973, 0.007376622200012207, 0.007354063034057617, 0.007273423194885254, 0.007252462863922119, 0.007308463096618653, 0.00727806282043457, 0.00738718318939209, 0.008064460754394532, 0.007655821800231934, 0.008104941368103028, 0.00806990146636963, 0.007724781990051269, 0.007590221881866455, 0.007708302021026611, 0.007983821868896485, 0.007318703174591065, 0.00723278284072876, 0.007308942794799805, 0.007220783233642578, 0.007560943126678467, 0.007614222049713135, 0.007693741798400879, 0.007543182849884033, 0.007295982837677002, 0.007241103172302246 ] }, "throughput": { "unit": "tokens/s", "value": 133.04041076128703 }, "energy": null, "efficiency": null } } }