IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
574e462 verified
raw
history blame
19.1 kB
{
"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.3.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": 1038.307328,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210816
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.4882387499809265,
"mean": 0.00668820205453324,
"stdev": 0.000350714977480356,
"p50": 0.006713856220245362,
"p90": 0.007143289470672607,
"p95": 0.0072054141998291014,
"p99": 0.007396200847625733,
"values": [
0.007642176151275635,
0.007228511810302735,
0.007070784091949463,
0.007145567893981934,
0.007300543785095215,
0.007133855819702149,
0.0067495999336242675,
0.0070191679000854495,
0.00719001579284668,
0.007069536209106445,
0.007275328159332275,
0.007155263900756836,
0.006880959987640381,
0.006711423873901367,
0.006685023784637451,
0.006764863967895508,
0.006747744083404541,
0.00716764783859253,
0.006782559871673584,
0.006870304107666016,
0.0068379840850830076,
0.006620512008666992,
0.007103968143463135,
0.006944191932678223,
0.007088448047637939,
0.0066947522163391116,
0.006873727798461914,
0.006828991889953613,
0.006864927768707276,
0.006953695774078369,
0.006942815780639648,
0.00675878381729126,
0.0069194879531860355,
0.006611392021179199,
0.006342207908630371,
0.006804512023925781,
0.006760255813598633,
0.007134175777435302,
0.006713856220245362,
0.00674944019317627,
0.006603263854980469,
0.006487135887145996,
0.0065103998184204105,
0.006456831932067871,
0.0067957439422607424,
0.006764319896697998,
0.006686495780944824,
0.006990655899047852,
0.006534527778625488,
0.006470208168029785,
0.006481056213378906,
0.006469791889190674,
0.006452383995056152,
0.006475679874420166,
0.006506688117980957,
0.006458144187927246,
0.0064787201881408695,
0.006446176052093506,
0.0065103678703308104,
0.006358816146850586,
0.006084703922271729,
0.006082399845123291,
0.0061983041763305664,
0.006219679832458496,
0.006257376194000244,
0.0061710400581359865,
0.006135968208312989,
0.0061785922050476075,
0.006203999996185303,
0.00617193603515625,
0.006139039993286133,
0.006176703929901123,
0.006142591953277588
]
},
"throughput": {
"unit": "tokens/s",
"value": 299.0340279334724
},
"energy": {
"unit": "kWh",
"cpu": 7.583279708388507e-08,
"ram": 4.146265143019589e-08,
"gpu": 1.4870854076433112e-07,
"total": 2.6600398927841204e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7518684.232613924
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1038.307328,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.43456
},
"latency": {
"unit": "s",
"count": 73,
"total": 0.5157466878890992,
"mean": 0.0070650231217684835,
"stdev": 0.00042621333667464665,
"p50": 0.0070174078941345214,
"p90": 0.007607961463928222,
"p95": 0.007709331321716308,
"p99": 0.00797712631225586,
"values": [
0.00778278398513794,
0.0077677760124206545,
0.007339360237121582,
0.007631552219390869,
0.007656767845153809,
0.007328447818756104,
0.007182271957397461,
0.007601439952850342,
0.0075114240646362304,
0.007670368194580078,
0.007587647914886474,
0.007570720195770263,
0.0072073922157287595,
0.007012288093566895,
0.007046624183654785,
0.007103744029998779,
0.0072715840339660645,
0.007605631828308105,
0.007070879936218261,
0.007193376064300537,
0.007128608226776123,
0.007440159797668457,
0.007587327957153321,
0.0074366722106933595,
0.007569695949554443,
0.007167200088500977,
0.0072624640464782715,
0.007248672008514404,
0.008305215835571289,
0.007608543872833252,
0.007242047786712646,
0.007345088005065918,
0.007027679920196533,
0.006916192054748535,
0.006590464115142822,
0.006985407829284668,
0.007527455806732177,
0.00739254379272461,
0.006980800151824952,
0.0070174078941345214,
0.0068351998329162595,
0.006782368183135986,
0.006797823905944824,
0.00682912015914917,
0.0067785921096801755,
0.007202752113342285,
0.007849535942077636,
0.0069095039367675784,
0.006816383838653565,
0.0067957439422607424,
0.006871712207794189,
0.006768511772155762,
0.0067621440887451175,
0.006813695907592773,
0.006791744232177734,
0.006765471935272217,
0.00677894401550293,
0.006820799827575684,
0.0067803201675415035,
0.006684832096099854,
0.006425951957702637,
0.0064513921737670895,
0.0064718079566955565,
0.006598015785217285,
0.006493375778198242,
0.00649619197845459,
0.0065006399154663086,
0.006488319873809815,
0.00647983980178833,
0.006470623970031738,
0.006494912147521972,
0.0064982080459594724,
0.006520480155944824
]
},
"throughput": {
"unit": "tokens/s",
"value": 141.54235347352758
},
"energy": {
"unit": "kWh",
"cpu": 7.202802413508959e-08,
"ram": 3.938119415923037e-08,
"gpu": 1.3706672214924783e-07,
"total": 2.4847594044356776e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 4024534.521188837
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 145,
"total": 0.9982494730949403,
"mean": 0.006884479124792692,
"stdev": 0.00047507893733057197,
"p50": 0.0068884482383728025,
"p90": 0.007565926551818847,
"p95": 0.007706214427947998,
"p99": 0.007841833038330078,
"values": [
0.007225344181060791,
0.007822336196899414,
0.0072325119972229,
0.007641088008880615,
0.006814720153808594,
0.007704576015472412,
0.007098368167877197,
0.007870463848114014,
0.007121920108795166,
0.007706624031066894,
0.006833151817321777,
0.007280640125274658,
0.0066641921997070315,
0.007572480201721191,
0.007062528133392334,
0.007763967990875244,
0.006966271877288818,
0.007649280071258545,
0.007126016139984131,
0.007857151985168457,
0.007053311824798584,
0.007725056171417236,
0.007049215793609619,
0.00743936014175415,
0.006703104019165039,
0.0072499198913574215,
0.006516736030578613,
0.007214079856872559,
0.006557695865631104,
0.007287807941436767,
0.006575104236602783,
0.007310336112976074,
0.00675328016281128,
0.0077209601402282715,
0.007073791980743408,
0.007351295948028564,
0.0065781760215759275,
0.00739737606048584,
0.00667955207824707,
0.007386112213134765,
0.0066304001808166506,
0.0071526398658752445,
0.006908927917480469,
0.007670783996582031,
0.007029759883880615,
0.00753868818283081,
0.006923264026641846,
0.007636991977691651,
0.007058432102203369,
0.007250944137573242,
0.0066713600158691405,
0.0074035201072692874,
0.006739967823028564,
0.007387167930603027,
0.006725599765777588,
0.007422976016998291,
0.007789567947387695,
0.007504896163940429,
0.007076863765716553,
0.007510015964508057,
0.006765567779541016,
0.0072765440940856935,
0.006802432060241699,
0.007497727870941162,
0.006615039825439453,
0.007057407855987549,
0.0065075201988220215,
0.006781951904296875,
0.006179840087890625,
0.007247935771942138,
0.006515647888183594,
0.007266304016113281,
0.007004159927368164,
0.00769536018371582,
0.006912032127380371,
0.007228384017944336,
0.0065484800338745115,
0.007215104103088379,
0.006520832061767578,
0.007135231971740722,
0.006441984176635742,
0.006906879901885986,
0.006388735771179199,
0.006931456089019775,
0.006385663986206055,
0.006895616054534912,
0.006432767868041992,
0.007218175888061523,
0.006385663986206055,
0.007185408115386963,
0.006730751991271973,
0.007192575931549072,
0.007319551944732666,
0.007556096076965332,
0.006512639999389648,
0.006960127830505371,
0.006419456005096436,
0.00689356803894043,
0.006400000095367431,
0.006903808116912841,
0.00648089599609375,
0.0068884482383728025,
0.006379519939422608,
0.0068689918518066405,
0.0063498239517211915,
0.006915071964263916,
0.006412288188934326,
0.006936575889587402,
0.006397952079772949,
0.006879231929779053,
0.006346752166748047,
0.006924287796020508,
0.006375423908233643,
0.006876160144805908,
0.006354944229125976,
0.007010335922241211,
0.006355936050415039,
0.006809599876403808,
0.00628223991394043,
0.0065146880149841305,
0.006049791812896729,
0.0064839677810668945,
0.006069248199462891,
0.006606847763061524,
0.006086656093597412,
0.0066304001808166506,
0.006212672233581543,
0.006670271873474121,
0.006113279819488526,
0.006576128005981445,
0.006108160018920898,
0.0065484800338745115,
0.006119423866271972,
0.006584320068359375,
0.006108160018920898,
0.006608895778656006,
0.006100992202758789,
0.006575104236602783,
0.0060702719688415525,
0.006564864158630371,
0.00611737585067749,
0.0065792322158813475,
0.006109151840209961,
0.006557727813720703,
0.006135776042938233
]
},
"throughput": {
"unit": "tokens/s",
"value": 145.25427151035373
},
"energy": null,
"efficiency": null
}
}
}