{ "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_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.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.4.0", "optimum_benchmark_commit": null, "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 720.089088, "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.18803125, "mean": 7.18803125, "stdev": 0.0, "p50": 7.18803125, "p90": 7.18803125, "p95": 7.18803125, "p99": 7.18803125, "values": [ 7.18803125 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 9.771105315950183e-07, "ram": 5.187123433415764e-07, "gpu": 1.554445688001227e-06, "total": 3.0502685629378217e-06 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1024.065536, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.210304 }, "latency": { "unit": "s", "count": 73, "total": 0.4893074560165404, "mean": 0.006702841863240281, "stdev": 0.00031831947510431815, "p50": 0.0067699837684631345, "p90": 0.007030892753601074, "p95": 0.007098348903656006, "p99": 0.0073279168128967285, "values": [ 0.007326303958892822, 0.007085792064666748, 0.007110176086425782, 0.006943295955657959, 0.006785535812377929, 0.006942815780639648, 0.00687494421005249, 0.0069922561645507815, 0.006761216163635254, 0.0069283838272094726, 0.00693123197555542, 0.006970047950744629, 0.006853695869445801, 0.006920864105224609, 0.006741407871246338, 0.006761568069458008, 0.006726784229278564, 0.006873631954193115, 0.006993152141571045, 0.007015935897827149, 0.00684991979598999, 0.006843167781829834, 0.006973120212554931, 0.006907008171081543, 0.006710752010345459, 0.0067699837684631345, 0.0070201921463012695, 0.006819519996643066, 0.006844575881958008, 0.006769055843353271, 0.007033567905426025, 0.006944032192230225, 0.006990752220153809, 0.006897280216217041, 0.006817503929138184, 0.007332064151763916, 0.006900735855102539, 0.007090464115142823, 0.006679903984069824, 0.006963583946228027, 0.006953311920166016, 0.00706112003326416, 0.006904960155487061, 0.006646399974822998, 0.006567935943603515, 0.0066689600944519044, 0.006628064155578614, 0.006582047939300537, 0.006619455814361572, 0.006533184051513672, 0.0065706238746643065, 0.006290463924407959, 0.006263008117675781, 0.006256576061248779, 0.00630406379699707, 0.006275455951690673, 0.006288000106811523, 0.006237184047698975, 0.006248799800872803, 0.0062740797996521, 0.006291840076446533, 0.006248032093048096, 0.006264800071716308, 0.006258016109466553, 0.00719001579284668, 0.006613823890686035, 0.0065339522361755374, 0.006205183982849121, 0.006151072025299072, 0.006143616199493408, 0.006144927978515625, 0.006203519821166992, 0.006188735961914062 ] }, "throughput": { "unit": "tokens/s", "value": 298.3809018333549 }, "energy": { "unit": "kWh", "cpu": 8.009340692389835e-08, "ram": 4.379044278441403e-08, "gpu": 1.5092542104054453e-07, "total": 2.748092707488569e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 7277774.852900661 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1039.437824, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.434048 }, "latency": { "unit": "s", "count": 73, "total": 0.5098649291992188, "mean": 0.006984451084920805, "stdev": 0.0003167882959942386, "p50": 0.007073696136474609, "p90": 0.007311091327667236, "p95": 0.007354208087921143, "p99": 0.00750765832901001, "values": [ 0.007430880069732666, 0.007360064029693604, 0.007260159969329834, 0.0072418880462646485, 0.006993152141571045, 0.0071279358863830565, 0.007293856143951416, 0.007261568069458007, 0.007076672077178955, 0.007262335777282715, 0.007311488151550293, 0.007245664119720459, 0.007219423770904541, 0.007255136013031006, 0.007113952159881592, 0.007100575923919677, 0.007055903911590576, 0.007162911891937256, 0.0073155522346496586, 0.007294464111328125, 0.007073696136474609, 0.007254720211029053, 0.007150144100189209, 0.007265024185180664, 0.007099999904632569, 0.007253600120544434, 0.007181568145751953, 0.007138656139373779, 0.007185279846191406, 0.00718943977355957, 0.00730950403213501, 0.007299200057983398, 0.007332159996032715, 0.007040031909942627, 0.007132256031036377, 0.007350304126739502, 0.007386335849761963, 0.007064799785614014, 0.00701251220703125, 0.007188992023468017, 0.007186207771301269, 0.007705088138580322, 0.006877471923828125, 0.00690723180770874, 0.006897696018218994, 0.006881696224212646, 0.006903872013092041, 0.006867839813232422, 0.006879327774047851, 0.006889088153839111, 0.00690118408203125, 0.006872608184814453, 0.006525152206420899, 0.006518720149993896, 0.006481632232666016, 0.006487775802612305, 0.006529600143432617, 0.006524991989135742, 0.006555136203765869, 0.006575295925140381, 0.006538303852081298, 0.006527775764465332, 0.006566112041473389, 0.006529056072235108, 0.007062079906463623, 0.006868959903717041, 0.00672873592376709, 0.006449952125549317, 0.006592959880828858, 0.00647603178024292, 0.006442880153656006, 0.006407872200012207, 0.006414783954620361 ] }, "throughput": { "unit": "tokens/s", "value": 143.17517408905138 }, "energy": { "unit": "kWh", "cpu": 7.599440265063601e-08, "ram": 4.154805988058918e-08, "gpu": 1.394622381700299e-07, "total": 2.570047007012549e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 3890979.4150512875 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 73, "total": 0.4765512332916261, "mean": 0.0065280990861866575, "stdev": 0.0002637596105277901, "p50": 0.006585408210754395, "p90": 0.00680079345703125, "p95": 0.006849126243591308, "p99": 0.006964897365570068, "values": [ 0.006905824184417725, 0.006833151817321777, 0.006753312110900879, 0.006721536159515381, 0.0065177597999572755, 0.006618112087249756, 0.0067645440101623535, 0.006714367866516113, 0.0065812478065490725, 0.006721536159515381, 0.006801407814025879, 0.006738944053649902, 0.006717440128326416, 0.006759424209594727, 0.0066375679969787596, 0.006614016056060791, 0.006557695865631104, 0.006662144184112549, 0.0067983360290527345, 0.006791168212890625, 0.006577184200286865, 0.006738944053649902, 0.0066344962120056155, 0.006780928134918213, 0.006585408210754395, 0.006724607944488525, 0.006650879859924317, 0.006643712043762207, 0.006668288230895996, 0.006668223857879639, 0.006802432060241699, 0.006783999919891357, 0.006822912216186523, 0.006563839912414551, 0.006657023906707763, 0.006876160144805908, 0.006873087882995605, 0.006648831844329834, 0.006576128005981445, 0.0066826238632202144, 0.00672051191329956, 0.007116799831390381, 0.006478847980499268, 0.006510591983795166, 0.006497280120849609, 0.006472703933715821, 0.006508543968200684, 0.006468607902526856, 0.006475776195526123, 0.006493184089660644, 0.006503424167633057, 0.006481919765472412, 0.006137856006622314, 0.006136832237243653, 0.0060999679565429685, 0.006100992202758789, 0.006148096084594727, 0.006145023822784424, 0.006169600009918213, 0.0061931519508361815, 0.006127647876739502, 0.006146048069000244, 0.00618393611907959, 0.006146048069000244, 0.006650879859924317, 0.006469632148742676, 0.006330368041992188, 0.006051839828491211, 0.006201344013214111, 0.006088704109191895, 0.006060031890869141, 0.006032383918762207, 0.006033408164978027 ] }, "throughput": { "unit": "tokens/s", "value": 153.18394938520194 }, "energy": null, "efficiency": null } } }