{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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.223-212.873.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.0", "accelerate_commit": null, "diffusers_version": "0.30.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 791.011328, "max_global_vram": 1355.28448, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 666.338304 }, "latency": { "unit": "s", "count": 1, "total": 7.38058349609375, "mean": 7.38058349609375, "stdev": 0.0, "p50": 7.38058349609375, "p90": 7.38058349609375, "p95": 7.38058349609375, "p99": 7.38058349609375, "values": [ 7.38058349609375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.79268531249981e-07, "ram": 5.211768322305634e-07, "gpu": 1.6541679900001875e-06, "total": 3.1546133534807317e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1195.49952, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 77, "total": 0.4903361606597902, "mean": 0.00636800208649078, "stdev": 0.00024804738054740966, "p50": 0.006288608074188232, "p90": 0.006525209426879883, "p95": 0.006893216133117676, "p99": 0.007409616737365721, "values": [ 0.007550015926361084, 0.00717193603515625, 0.00688259220123291, 0.006398079872131347, 0.0063352642059326175, 0.00632966423034668, 0.006345920085906983, 0.006353888034820556, 0.006321087837219238, 0.006340991973876953, 0.006324448108673096, 0.006361152172088623, 0.006231167793273926, 0.006226784229278565, 0.006260159969329834, 0.006267839908599853, 0.00628659200668335, 0.006232960224151611, 0.006252895832061767, 0.00641923189163208, 0.006260064125061035, 0.006302175998687744, 0.006290592193603515, 0.006307263851165771, 0.00629417610168457, 0.00622057580947876, 0.0062008957862854, 0.006292736053466797, 0.006479072093963623, 0.006260255813598633, 0.006291935920715332, 0.006243391990661621, 0.006279647827148438, 0.006244224071502685, 0.0062039680480957034, 0.006226592063903809, 0.006235648155212403, 0.007365280151367187, 0.006935711860656738, 0.006528031826019287, 0.006369376182556152, 0.006433599948883056, 0.006270080089569092, 0.006228928089141846, 0.006190815925598145, 0.00628927993774414, 0.006230016231536865, 0.006225120067596435, 0.0062195839881896975, 0.006283840179443359, 0.0062295360565185545, 0.006428575992584228, 0.006484928131103515, 0.006523327827453613, 0.006395103931427002, 0.006515935897827148, 0.006385727882385254, 0.006523263931274414, 0.006454815864562988, 0.006288608074188232, 0.006216639995574951, 0.00623203182220459, 0.006214176177978516, 0.006624512195587158, 0.006763775825500488, 0.006361184120178223, 0.006277088165283203, 0.006288127899169922, 0.0062865281105041505, 0.00630079984664917, 0.006193471908569336, 0.006194752216339111, 0.0062135357856750485, 0.006221248149871826, 0.0062154560089111325, 0.006193984031677246, 0.006213471889495849 ] }, "throughput": { "unit": "tokens/s", "value": 314.07024885290855 }, "energy": { "unit": "kWh", "cpu": 7.813567176078304e-08, "ram": 4.2720651648529784e-08, "gpu": 1.5021941842105172e-07, "total": 2.710757418303646e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7378011.719143692 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1214.17728, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 77, "total": 0.5145581755638122, "mean": 0.006682573708620937, "stdev": 0.0002910752437658753, "p50": 0.006599520206451416, "p90": 0.0068155519485473635, "p95": 0.007122745609283448, "p99": 0.008015219097137448, "values": [ 0.0075838398933410645, 0.00793446397781372, 0.006700287818908692, 0.0067365760803222655, 0.006623167991638184, 0.0066278080940246585, 0.006605631828308105, 0.006598527908325195, 0.007346720218658447, 0.006633056163787842, 0.00659987211227417, 0.006593376159667969, 0.006554080009460449, 0.006548128128051758, 0.006543680191040039, 0.006518911838531494, 0.006551040172576904, 0.006585599899291993, 0.006725503921508789, 0.006536896228790283, 0.006547488212585449, 0.006710303783416748, 0.006624800205230713, 0.0065796799659729, 0.006568160057067871, 0.006529151916503906, 0.006575679779052735, 0.006710879802703858, 0.006521247863769532, 0.006685567855834961, 0.006605184078216553, 0.006503039836883545, 0.0065797119140625, 0.006516767978668213, 0.006696447849273681, 0.00654252815246582, 0.006511648178100586, 0.008270943641662597, 0.006784512042999268, 0.006777919769287109, 0.006858816146850586, 0.0066648640632629395, 0.006526944160461426, 0.006526303768157959, 0.006553215980529785, 0.006501152038574219, 0.006519807815551758, 0.006619071960449219, 0.0066258559226989745, 0.006625951766967774, 0.006505087852478027, 0.006900928020477295, 0.006803040027618408, 0.006695903778076172, 0.006766304016113282, 0.006806719779968262, 0.0066752638816833494, 0.006773568153381347, 0.006796351909637451, 0.006612800121307373, 0.006609824180603028, 0.006501535892486573, 0.006523903846740723, 0.007066751956939697, 0.006828800201416015, 0.006578112125396728, 0.006671840190887451, 0.006573760032653809, 0.006573887825012207, 0.006514848232269287, 0.006520864009857178, 0.006545631885528564, 0.006565087795257568, 0.006599520206451416, 0.006502528190612793, 0.006501920223236084, 0.006532576084136963 ] }, "throughput": { "unit": "tokens/s", "value": 149.64294351290695 }, "energy": { "unit": "kWh", "cpu": 7.451963764982637e-08, "ram": 4.0385879775532454e-08, "gpu": 1.4709207298920198e-07, "total": 2.6199759041456067e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3816828.996089975 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 77, "total": 0.4841798720359801, "mean": 0.006288050286181561, "stdev": 0.00026699542202695013, "p50": 0.00621670389175415, "p90": 0.006411878585815429, "p95": 0.006714572906494141, "p99": 0.007436943225860593, "values": [ 0.007047167778015137, 0.007311359882354736, 0.0063170561790466305, 0.006331391811370849, 0.006240255832672119, 0.006242303848266601, 0.006221856117248535, 0.006198272228240966, 0.006957056045532227, 0.0062494721412658695, 0.00621670389175415, 0.0062044157981872555, 0.006158336162567139, 0.006158271789550781, 0.006153215885162353, 0.0061337599754333495, 0.006169600009918213, 0.006191103935241699, 0.006325247764587402, 0.006155263900756836, 0.006165503978729248, 0.0063201279640197755, 0.00624128007888794, 0.0061972479820251464, 0.006166528224945069, 0.006150144100189209, 0.006195199966430664, 0.006293504238128662, 0.006140927791595459, 0.006288383960723877, 0.0062269439697265625, 0.00612556791305542, 0.006198272228240966, 0.006116352081298828, 0.0063170561790466305, 0.006164480209350586, 0.0061337599754333495, 0.00783462381362915, 0.0063569917678833006, 0.006376448154449463, 0.006472703933715821, 0.0062791681289672855, 0.006149119853973388, 0.006137856006622314, 0.0061736321449279786, 0.006112224102020264, 0.006130688190460205, 0.006238207817077636, 0.006232063770294189, 0.006243328094482422, 0.00611737585067749, 0.0065064959526062015, 0.0064143362045288085, 0.006312960147857666, 0.006329343795776367, 0.006409215927124024, 0.006288383960723877, 0.0063610877990722655, 0.006396927833557129, 0.00623308801651001, 0.006232063770294189, 0.0061224961280822755, 0.006144000053405762, 0.006653952121734619, 0.0064102401733398436, 0.0061972479820251464, 0.006288383960723877, 0.00618393611907959, 0.006181888103485108, 0.00613478422164917, 0.0061265921592712404, 0.006165503978729248, 0.006188032150268555, 0.006220799922943115, 0.006123551845550537, 0.006124544143676758, 0.0061521921157836916 ] }, "throughput": { "unit": "tokens/s", "value": 159.03180707660232 }, "energy": null, "efficiency": null } } }