{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+cu121", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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": {}, "hub_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, "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", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.293824, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.219-208.866.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.1", "optimum_benchmark_commit": null, "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "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": { "prefill": { "memory": { "unit": "MB", "max_ram": 1026.772992, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210816 }, "latency": { "unit": "s", "count": 68, "total": 0.48683721542358405, "mean": 0.007159370815052706, "stdev": 0.0005869400753405781, "p50": 0.006984511852264404, "p90": 0.007265171241760254, "p95": 0.0075343842029571536, "p99": 0.010017961139678953, "values": [ 0.011092448234558105, 0.009488736152648926, 0.007892223834991455, 0.007593632221221924, 0.007378047943115235, 0.007264768123626709, 0.007206687927246094, 0.00721724796295166, 0.007162911891937256, 0.006976607799530029, 0.006988831996917725, 0.0071027522087097165, 0.006996640205383301, 0.006983935832977295, 0.007241951942443848, 0.0072485761642456055, 0.007191648006439209, 0.007154751777648926, 0.006962592124938965, 0.006970079898834228, 0.00695030403137207, 0.006972256183624267, 0.006926400184631348, 0.007006944179534912, 0.0069616961479187014, 0.00698144006729126, 0.006980160236358643, 0.00698367977142334, 0.006959167957305909, 0.006985087871551513, 0.006949567794799804, 0.006961599826812744, 0.006967775821685791, 0.006971519947052002, 0.006968992233276367, 0.006930079936981201, 0.006948768138885498, 0.0071426877975463866, 0.007157728195190429, 0.007253856182098389, 0.007424352169036866, 0.00718236780166626, 0.00712992000579834, 0.007092319965362549, 0.006944255828857422, 0.00701308822631836, 0.006958047866821289, 0.006957632064819336, 0.00716860818862915, 0.007266111850738525, 0.007158559799194336, 0.00696940803527832, 0.006969183921813965, 0.006953472137451172, 0.007021567821502686, 0.0069556479454040525, 0.007001279830932617, 0.00698905611038208, 0.006947167873382568, 0.0069697599411010745, 0.006960512161254883, 0.0070340800285339355, 0.00695747184753418, 0.006949215888977051, 0.0069248957633972165, 0.006948671817779541, 0.006925663948059082, 0.0069901118278503415 ] }, "throughput": { "unit": "tokens/s", "value": 279.3541571830536 }, "energy": { "unit": "kWh", "cpu": 8.96628501022868e-08, "ram": 4.886562034253953e-08, "gpu": 1.668756556390991e-07, "total": 3.054041260839254e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 6548699.998409313 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1026.772992, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.43456 }, "latency": { "unit": "s", "count": 68, "total": 0.5178804802894591, "mean": 0.007615889416021459, "stdev": 0.000523931490294233, "p50": 0.007437952041625976, "p90": 0.00778439998626709, "p95": 0.008351619219779966, "p99": 0.009651712436676022, "values": [ 0.011244640350341797, 0.00858675193786621, 0.008867136001586914, 0.007779551982879639, 0.007662784099578857, 0.0076986560821533205, 0.007654592037200928, 0.007670911788940429, 0.007622111797332764, 0.007420191764831543, 0.007437856197357178, 0.007510816097259522, 0.007430016040802002, 0.007421311855316162, 0.007795711994171142, 0.007637728214263916, 0.007661920070648193, 0.0076052799224853515, 0.007407743930816651, 0.007505631923675537, 0.007397247791290283, 0.007394271850585938, 0.007398176193237305, 0.007390143871307373, 0.007506591796875, 0.007517312049865723, 0.007424352169036866, 0.007382431983947754, 0.007413055896759033, 0.007413343906402588, 0.007411104202270508, 0.007405632019042969, 0.007433760166168213, 0.00740390396118164, 0.007397984027862549, 0.007438047885894776, 0.0073983359336853025, 0.007856927871704101, 0.0077292160987854006, 0.007914944171905518, 0.00771347188949585, 0.0076407999992370605, 0.007687808036804199, 0.0074098238945007324, 0.007421760082244873, 0.007391903877258301, 0.007492928028106689, 0.007374527931213379, 0.008622112274169922, 0.00771724796295166, 0.007751711845397949, 0.007469279766082764, 0.007422751903533935, 0.007387648105621338, 0.007415071964263916, 0.00739792013168335, 0.007496352195739746, 0.007384799957275391, 0.007441952228546143, 0.007423776149749756, 0.007488096237182617, 0.0073702077865600586, 0.00739254379272461, 0.007606751918792724, 0.007466368198394776, 0.007406688213348388, 0.007433824062347412, 0.007404223918914795 ] }, "throughput": { "unit": "tokens/s", "value": 131.30442754280432 }, "energy": { "unit": "kWh", "cpu": 8.487354033473343e-08, "ram": 4.65589413368746e-08, "gpu": 1.5991382147854418e-07, "total": 2.9134630315015206e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3432341.4753769054 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 67, "total": 0.9845258226394655, "mean": 0.014694415263275603, "stdev": 0.0005965264785785816, "p50": 0.014455807685852052, "p90": 0.015069798278808593, "p95": 0.015435264396667479, "p99": 0.017320038833618167, "values": [ 0.018242559432983398, 0.01684480094909668, 0.015525888442993165, 0.015081472396850586, 0.014987263679504394, 0.014904352188110351, 0.014910431861877441, 0.014814208030700684, 0.014426112174987793, 0.014441472053527832, 0.014653440475463866, 0.01446399974822998, 0.014417920112609863, 0.015062015533447265, 0.014924799919128418, 0.014864383697509765, 0.01480191993713379, 0.014405632019042968, 0.01447116756439209, 0.014407679557800293, 0.01439846420288086, 0.014347264289855957, 0.014425087928771972, 0.014470144271850586, 0.014547967910766601, 0.014436351776123046, 0.014385151863098144, 0.014403583526611329, 0.014422016143798828, 0.014384127616882325, 0.014395392417907715, 0.014418944358825684, 0.014412799835205077, 0.01438822364807129, 0.01439641571044922, 0.014376959800720214, 0.014972928047180176, 0.014937088012695313, 0.015161343574523926, 0.015223808288574218, 0.014828543663024902, 0.014861311912536621, 0.01454694366455078, 0.014369791984558105, 0.014455807685852052, 0.014476287841796874, 0.014356479644775391, 0.01577676773071289, 0.015043583869934082, 0.014908415794372559, 0.01448038387298584, 0.014434304237365723, 0.014367744445800782, 0.014459903717041016, 0.01438419246673584, 0.014517184257507323, 0.014407679557800293, 0.014407711982727051, 0.014412768363952637, 0.01448140811920166, 0.014431232452392579, 0.01438310432434082, 0.01457151985168457, 0.014428159713745118, 0.014367744445800782, 0.014361599922180175, 0.014449664115905762 ] }, "throughput": { "unit": "tokens/s", "value": 68.05306520084591 }, "energy": null, "efficiency": null } } }