{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.1+cu124", "_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": true, "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 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.261056, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.224-212.876.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "NVIDIA A10G" ], "gpu_count": 1, "gpu_vram_mb": 24146608128, "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": 800.935936, "max_global_vram": 1362.624512, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.95540576171875, "mean": 7.95540576171875, "stdev": 0.0, "p50": 7.95540576171875, "p90": 7.95540576171875, "p95": 7.95540576171875, "p99": 7.95540576171875, "values": [ 7.95540576171875 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 2.3851424763869824e-06, "ram": 1.2879361437280595e-06, "gpu": 3.3791693700001985e-06, "total": 7.05224799011524e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1203.920896, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 75, "total": 0.48683411359786977, "mean": 0.006491121514638264, "stdev": 0.00023089947966019127, "p50": 0.006394752025604248, "p90": 0.00671094388961792, "p95": 0.006768179082870483, "p99": 0.007516884689331056, "values": [ 0.007426080226898194, 0.007775328159332275, 0.00656387186050415, 0.006422912120819092, 0.006459904193878174, 0.006438240051269532, 0.006430848121643067, 0.006423327922821045, 0.006406015872955322, 0.0064000959396362305, 0.006412288188934326, 0.006414527893066406, 0.006394752025604248, 0.00643174409866333, 0.0064115839004516605, 0.006390687942504883, 0.006454592227935791, 0.006420383930206299, 0.006363808155059814, 0.006373600006103515, 0.006726272106170654, 0.006747519969940186, 0.006757023811340332, 0.006699456214904785, 0.006657599925994873, 0.006819263935089111, 0.0067942080497741695, 0.006696224212646484, 0.006672544002532959, 0.006470623970031738, 0.006681056022644043, 0.006387455940246582, 0.006387392044067383, 0.006365568161010742, 0.006352992057800293, 0.006392320156097412, 0.006404352188110351, 0.006364448070526123, 0.006376768112182617, 0.006406367778778076, 0.006356832027435303, 0.0063508481979370115, 0.0063712639808654785, 0.006361631870269775, 0.006362112045288086, 0.006385663986206055, 0.006372960090637207, 0.006367775917053222, 0.006387648105621338, 0.006365471839904785, 0.00636787223815918, 0.006359488010406494, 0.00633516788482666, 0.006374752044677735, 0.006370143890380859, 0.006686336040496827, 0.006681632041931152, 0.0066471037864685055, 0.006713823795318603, 0.006648896217346191, 0.006706624031066894, 0.006399936199188232, 0.006340767860412598, 0.006369152069091797, 0.006344031810760498, 0.006368607997894287, 0.006342175960540771, 0.006369952201843262, 0.006378687858581543, 0.006337120056152344, 0.006351263999938965, 0.006555647850036621, 0.006381760120391846, 0.006361248016357422, 0.006385663986206055 ] }, "throughput": { "unit": "tokens/s", "value": 308.1131658820064 }, "energy": { "unit": "kWh", "cpu": 8.068840543744094e-08, "ram": 4.409445155764685e-08, "gpu": 1.5868493420408033e-07, "total": 2.834677911991681e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7055475.302994033 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1222.26688, "max_global_vram": 1373.110272, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 75, "total": 0.5115674881935118, "mean": 0.006820899842580159, "stdev": 0.0002046835999134206, "p50": 0.006711296081542969, "p90": 0.007131244945526124, "p95": 0.0071777216434478755, "p99": 0.007476252164840699, "values": [ 0.007606207847595215, 0.007430592060089111, 0.006757855892181397, 0.006703711986541748, 0.006728864192962646, 0.006730720043182373, 0.006690080165863037, 0.006749855995178223, 0.006888031959533691, 0.006765312194824219, 0.0066994881629943845, 0.006705408096313477, 0.006723711967468262, 0.006698912143707276, 0.006711520195007324, 0.006794976234436035, 0.006690271854400635, 0.006699168205261231, 0.006687424182891846, 0.006740096092224121, 0.007183680057525635, 0.007175168037414551, 0.007020639896392822, 0.007035264015197754, 0.006999263763427735, 0.007171584129333496, 0.0070338878631591795, 0.007036128044128418, 0.007241568088531494, 0.00712713623046875, 0.007001023769378662, 0.006678624153137207, 0.006742271900177002, 0.006696991920471192, 0.006791872024536133, 0.006670752048492432, 0.006722879886627197, 0.0067123517990112305, 0.00667955207824707, 0.006706143856048584, 0.00673740816116333, 0.006666975975036621, 0.006665184020996094, 0.006699007987976074, 0.006685567855834961, 0.006669792175292968, 0.0066776638031005855, 0.006805471897125244, 0.006710048198699951, 0.006671103954315185, 0.006691487789154052, 0.006698080062866211, 0.00668175983428955, 0.006675807952880859, 0.007172927856445312, 0.007065343856811524, 0.007036191940307617, 0.0070280637741088866, 0.007044608116149902, 0.00702726411819458, 0.0071339840888977055, 0.006711296081542969, 0.0066994881629943845, 0.006668255805969238, 0.006673984050750733, 0.006709760189056397, 0.006679935932159424, 0.0066646718978881836, 0.006677536010742188, 0.006684735774993896, 0.006689280033111572, 0.006647168159484863, 0.006698783874511719, 0.006823935985565186, 0.006665919780731201 ] }, "throughput": { "unit": "tokens/s", "value": 146.60822224032648 }, "energy": { "unit": "kWh", "cpu": 7.680463522416035e-08, "ram": 4.197299342572434e-08, "gpu": 1.5080361748013138e-07, "total": 2.6958124613001604e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3709456.849671624 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 75, "total": 0.4814346580505372, "mean": 0.006419128774007162, "stdev": 0.00018802571340770097, "p50": 0.0063201279640197755, "p90": 0.006725836753845215, "p95": 0.006748159980773926, "p99": 0.007008112535476685, "values": [ 0.007054336071014404, 0.0069918718338012695, 0.006366208076477051, 0.006310912132263183, 0.006334464073181153, 0.006331391811370849, 0.006292479991912842, 0.006336512088775635, 0.006488031864166259, 0.006362112045288086, 0.006302720069885254, 0.006315008163452148, 0.006330368041992188, 0.006308896064758301, 0.006310912132263183, 0.006386688232421875, 0.006295551776885986, 0.006278143882751465, 0.0062904319763183595, 0.006351871967315674, 0.006730751991271973, 0.00676966381072998, 0.006617087841033936, 0.0066344962120056155, 0.006594560146331787, 0.006738944053649902, 0.0066304001808166506, 0.006627327919006347, 0.0068249602317810056, 0.006718463897705078, 0.006598656177520752, 0.006289408206939697, 0.006351871967315674, 0.006309887886047363, 0.006397952079772949, 0.006280191898345947, 0.0063201279640197755, 0.0063201279640197755, 0.0062904319763183595, 0.006315008163452148, 0.0063498239517211915, 0.0062791681289672855, 0.006277120113372803, 0.006308864116668702, 0.006298624038696289, 0.006270976066589356, 0.0062873601913452145, 0.006406144142150879, 0.006322175979614258, 0.00628326416015625, 0.006303743839263916, 0.006308864116668702, 0.006294528007507324, 0.006289408206939697, 0.006737919807434082, 0.006649856090545654, 0.006620160102844238, 0.006626304149627686, 0.006594560146331787, 0.006624256134033203, 0.006730751991271973, 0.006322175979614258, 0.0062975997924804685, 0.00626585578918457, 0.006264832019805908, 0.006313983917236328, 0.006289440155029297, 0.006277120113372803, 0.006285312175750732, 0.006294528007507324, 0.006301695823669433, 0.006258687973022461, 0.006295551776885986, 0.006429696083068847, 0.006275072097778321 ] }, "throughput": { "unit": "tokens/s", "value": 155.78438059215733 }, "energy": null, "efficiency": null } } }