IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5c65746 verified
raw
history blame
16.9 kB
{
"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": 801.705984,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 8.00994384765625,
"mean": 8.00994384765625,
"stdev": 0.0,
"p50": 8.00994384765625,
"p90": 8.00994384765625,
"p95": 8.00994384765625,
"p99": 8.00994384765625,
"values": [
8.00994384765625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 2.3950679381818598e-06,
"ram": 1.2938423450364652e-06,
"gpu": 3.069169121988624e-06,
"total": 6.758079405206948e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1204.936704,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.490271164894104,
"mean": 0.006905227674564845,
"stdev": 0.0003681526090788299,
"p50": 0.006993216037750244,
"p90": 0.007194143772125244,
"p95": 0.007262799978256226,
"p99": 0.008206306838989258,
"values": [
0.007457471847534179,
0.007260320186614991,
0.007094111919403076,
0.007038464069366455,
0.007060671806335449,
0.006901247978210449,
0.006983456134796143,
0.0071636481285095215,
0.007153247833251953,
0.007008287906646728,
0.007014016151428223,
0.007144608020782471,
0.007089695930480957,
0.007018784046173096,
0.007127423763275146,
0.007073311805725097,
0.006898047924041748,
0.007029376029968262,
0.006983071804046631,
0.007002399921417236,
0.007090559959411621,
0.007206399917602539,
0.0071623997688293455,
0.006904287815093994,
0.007177824020385742,
0.007000224113464355,
0.007127808094024658,
0.0069437122344970705,
0.006957791805267334,
0.007192959785461426,
0.006969855785369873,
0.0070033278465270994,
0.006981855869293213,
0.007008128166198731,
0.007237504005432129,
0.007194143772125244,
0.006993216037750244,
0.007119616031646728,
0.007000063896179199,
0.006837183952331543,
0.006692895889282227,
0.006931072235107422,
0.006569568157196045,
0.006522848129272461,
0.007015359878540039,
0.0071233282089233395,
0.007265279769897461,
0.00823647975921631,
0.00819337558746338,
0.007021408081054687,
0.006866208076477051,
0.006673471927642822,
0.0065959677696228024,
0.006666079998016357,
0.006426943778991699,
0.006424223899841309,
0.006436160087585449,
0.006419616222381592,
0.006602496147155762,
0.006420191764831543,
0.0064232640266418456,
0.006420351982116699,
0.006414720058441162,
0.00641487979888916,
0.006389599800109863,
0.006421216011047363,
0.006418047904968261,
0.0063981437683105465,
0.006407936096191406,
0.006416704177856445,
0.0064327998161315915
]
},
"throughput": {
"unit": "tokens/s",
"value": 289.6356346608132
},
"energy": {
"unit": "kWh",
"cpu": 8.354998222366619e-08,
"ram": 4.565759852148713e-08,
"gpu": 1.505674130987185e-07,
"total": 2.797749938438718e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7148601.712117625
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1223.282688,
"max_global_vram": 1373.110272,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.5146320648193359,
"mean": 0.007248338941117408,
"stdev": 0.0003845043988838278,
"p50": 0.007338431835174561,
"p90": 0.007594304084777832,
"p95": 0.007642368078231812,
"p99": 0.008465167999267578,
"values": [
0.007658624172210694,
0.007463808059692383,
0.007376575946807861,
0.007435647964477539,
0.0073415679931640625,
0.00728601598739624,
0.007364672183990478,
0.007517663955688476,
0.007598656177520752,
0.00736297607421875,
0.007502240180969238,
0.007485439777374267,
0.00745472002029419,
0.007423808097839355,
0.007482656002044678,
0.007291776180267334,
0.0072499198913574215,
0.007355391979217529,
0.007384352207183838,
0.007361695766448974,
0.007525824069976807,
0.00762611198425293,
0.007414239883422852,
0.0073928642272949215,
0.007486879825592041,
0.0073983678817749025,
0.007274720191955566,
0.007338431835174561,
0.007432703971862793,
0.007269792079925537,
0.007319680213928223,
0.0073281598091125486,
0.007350240230560303,
0.007518752098083496,
0.007594304084777832,
0.007526080131530762,
0.007486879825592041,
0.0072544322013854984,
0.0073276801109313965,
0.007340256214141846,
0.007183775901794433,
0.007018720149993897,
0.00676639986038208,
0.006929376125335693,
0.0073820481300354,
0.0076117758750915525,
0.008016639709472657,
0.008729599952697753,
0.008351840019226075,
0.007175839900970459,
0.006973536014556885,
0.006969503879547119,
0.00702623987197876,
0.006965023994445801,
0.006741024017333984,
0.0067630081176757815,
0.0067320637702941895,
0.006912384033203125,
0.006929408073425293,
0.006701568126678467,
0.006824672222137451,
0.006751455783843994,
0.006730720043182373,
0.006740255832672119,
0.006728960037231445,
0.006689504146575927,
0.006758944034576416,
0.006748479843139648,
0.006744863986968994,
0.006709824085235596,
0.006719999790191651
]
},
"throughput": {
"unit": "tokens/s",
"value": 137.9626433205729
},
"energy": {
"unit": "kWh",
"cpu": 8.059145972857447e-08,
"ram": 4.4043776496277387e-08,
"gpu": 1.45437389914758e-07,
"total": 2.7007262613960986e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3702707.7282651574
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.4804876804351807,
"mean": 0.0067674321188053626,
"stdev": 0.0003363240382115222,
"p50": 0.006815807819366455,
"p90": 0.007065599918365479,
"p95": 0.00710758399963379,
"p99": 0.007960883092880249,
"values": [
0.007127039909362793,
0.006945792198181152,
0.006867968082427979,
0.006917119979858399,
0.006853631973266602,
0.00677785587310791,
0.006834176063537598,
0.006990880012512207,
0.007070720195770264,
0.006841375827789307,
0.0069745278358459475,
0.00695091199874878,
0.00694374418258667,
0.006894591808319092,
0.006906879901885986,
0.006806528091430664,
0.006747136116027832,
0.00682700777053833,
0.006871039867401123,
0.006812672138214112,
0.007004159927368164,
0.007088128089904785,
0.006874112129211426,
0.006870016098022461,
0.006956031799316406,
0.006882304191589355,
0.006780928134918213,
0.006819839954376221,
0.006897664070129395,
0.006763519763946534,
0.006815743923187256,
0.006820864200592041,
0.006815807819366455,
0.0069816322326660156,
0.007065599918365479,
0.007011328220367432,
0.0069632000923156735,
0.0067573761940002445,
0.006807551860809326,
0.006843391895294189,
0.006648831844329834,
0.006605823993682861,
0.0063610877990722655,
0.006482944011688232,
0.00690176010131836,
0.007068672180175781,
0.007397408008575439,
0.008190976142883302,
0.007862271785736084,
0.006719488143920899,
0.006573056221008301,
0.006559743881225586,
0.006615039825439453,
0.006536191940307618,
0.006336512088775635,
0.00637440013885498,
0.006342656135559082,
0.006515711784362793,
0.00653107213973999,
0.006309887886047363,
0.006436863899230957,
0.006351871967315674,
0.006328320026397705,
0.006340608119964599,
0.006339583873748779,
0.006298624038696289,
0.006338592052459717,
0.006347775936126709,
0.006347775936126709,
0.0063211522102355954,
0.006322175979614258
]
},
"throughput": {
"unit": "tokens/s",
"value": 147.7665357323935
},
"energy": null,
"efficiency": null
}
}
}