{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "model": "openai-community/gpt2", "library": "transformers", "device": "cuda", "device_ids": "0", "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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": 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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.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.2.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 1088.192512, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 56, "total": 0.49963302326202397, "mean": 0.008922018272536142, "stdev": 0.00019520693257046376, "p50": 0.008928911685943603, "p90": 0.009131231784820556, "p95": 0.009261232137680053, "p99": 0.009410974645614623, "values": [ 0.009543168067932128, 0.00928172779083252, 0.009235520362854004, 0.009001215934753419, 0.008952032089233399, 0.008911231994628906, 0.008945568084716797, 0.009043744087219238, 0.009017151832580566, 0.009037535667419433, 0.009020671844482422, 0.008928735733032227, 0.0089717435836792, 0.008819456100463868, 0.008959296226501465, 0.008965184211730957, 0.009105600357055665, 0.009115167617797851, 0.00892908763885498, 0.009039775848388672, 0.009009471893310547, 0.008910688400268554, 0.008993951797485352, 0.00887395191192627, 0.008889856338500977, 0.008907808303833007, 0.009105055809020997, 0.009101599693298339, 0.00903542423248291, 0.009147295951843262, 0.00876915168762207, 0.008810239791870117, 0.008541184425354004, 0.009104576110839844, 0.009254400253295898, 0.00930281639099121, 0.008975775718688964, 0.009025343894958496, 0.008816736221313477, 0.00875654411315918, 0.008724864006042481, 0.00870639991760254, 0.008727007865905762, 0.008699551582336425, 0.008685088157653809, 0.00870035171508789, 0.00869167995452881, 0.008854047775268555, 0.008706656455993653, 0.008660415649414062, 0.008685919761657715, 0.008710528373718262, 0.008733535766601562, 0.008722240447998048, 0.008730912208557129, 0.008738335609436034 ] }, "throughput": { "unit": "tokens/s", "value": 224.16452633328748 }, "energy": { "unit": "kWh", "cpu": 1.0531649887268757e-07, "ram": 5.7577465188447936e-08, "gpu": 1.8119975164601118e-07, "total": 3.440937157071467e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5812370.028001824 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1088.192512, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 56, "total": 0.5158466587066651, "mean": 0.009211547476904733, "stdev": 0.00020114366676180585, "p50": 0.009232703685760499, "p90": 0.0094617919921875, "p95": 0.009533368110656738, "p99": 0.009683873701095582, "values": [ 0.009524991989135742, 0.009699168205261231, 0.009518303871154786, 0.009302559852600098, 0.009329567909240723, 0.009220992088317871, 0.009306400299072266, 0.00933561611175537, 0.00925705623626709, 0.009408672332763672, 0.009374943733215332, 0.009466943740844726, 0.00944105625152588, 0.009231167793273926, 0.009261983871459961, 0.009315296173095703, 0.009456640243530273, 0.009277440071105958, 0.009375519752502441, 0.009368320465087891, 0.00923423957824707, 0.009265472412109375, 0.00924556827545166, 0.009218463897705078, 0.009216927528381347, 0.009275808334350585, 0.009558496475219726, 0.009300448417663575, 0.009261856079101563, 0.009176671981811524, 0.008975839614868164, 0.008930560111999511, 0.008988608360290527, 0.00944643211364746, 0.009671360015869141, 0.00933731174468994, 0.009197855949401855, 0.009137311935424804, 0.009005120277404785, 0.00900271987915039, 0.009070207595825195, 0.00901148796081543, 0.008963583946228027, 0.008997599601745605, 0.008991999626159668, 0.008965632438659669, 0.008947775840759278, 0.008985312461853027, 0.008987199783325196, 0.008949536323547364, 0.008971327781677247, 0.00898038387298584, 0.008986528396606446, 0.008972736358642578, 0.009099712371826172, 0.009045920372009277 ] }, "throughput": { "unit": "tokens/s", "value": 108.55939270868528 }, "energy": { "unit": "kWh", "cpu": 1.0196655209101753e-07, "ram": 5.560786399829921e-08, "gpu": 1.7055819259535947e-07, "total": 3.281326086846763e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3047548.3799324688 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 55, "total": 0.9982576637268065, "mean": 0.01815013934048739, "stdev": 0.0003668229554241224, "p50": 0.018217983245849608, "p90": 0.01857413101196289, "p95": 0.018762444496154787, "p99": 0.018968412132263184, "values": [ 0.018998271942138673, 0.01880473518371582, 0.018375680923461913, 0.018318336486816408, 0.018168832778930662, 0.018258943557739257, 0.018427967071533203, 0.01831110382080078, 0.018471935272216796, 0.01842995262145996, 0.01841049575805664, 0.018472959518432617, 0.01808793640136719, 0.01821900749206543, 0.018329599380493163, 0.018593791961669923, 0.0184453125, 0.018305023193359374, 0.01842278480529785, 0.018320383071899413, 0.018217983245849608, 0.018283519744873047, 0.018117631912231445, 0.018136064529418947, 0.018185216903686522, 0.018663423538208008, 0.01848422431945801, 0.018341888427734376, 0.018374656677246092, 0.017802240371704102, 0.017821695327758787, 0.017508352279663086, 0.018544639587402344, 0.018942975997924806, 0.018744319915771485, 0.01821900749206543, 0.01821388816833496, 0.017868799209594728, 0.017787904739379884, 0.01781760025024414, 0.017726463317871095, 0.017739776611328126, 0.017722368240356445, 0.01769267272949219, 0.017704959869384765, 0.0176629753112793, 0.017869823455810546, 0.017715200424194336, 0.01764454460144043, 0.017682432174682617, 0.017707008361816406, 0.017755136489868165, 0.017722368240356445, 0.01785651206970215, 0.01780633544921875 ] }, "throughput": { "unit": "tokens/s", "value": 55.09599575190626 }, "energy": null, "efficiency": null } } }