IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
edd006d verified
raw
history blame
13.8 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2+rocm5.7",
"_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": false,
"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 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082015.236096,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 1,
"gpu_vram_mb": 68702699520,
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "79990507b694d513bac81e140baff3af23a6bff7",
"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": 1050.271744,
"max_global_vram": 65633.431552,
"max_process_vram": 223893.676032,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 59,
"total": 0.510726945400238,
"mean": 0.008656388905088781,
"stdev": 0.00030515840847737577,
"p50": 0.008753286361694337,
"p90": 0.008804870796203613,
"p95": 0.008826550674438476,
"p99": 0.00929765853881836,
"values": [
0.009826247215270995,
0.008107365608215332,
0.008302406311035156,
0.008293127059936524,
0.008249606132507324,
0.008018566131591796,
0.007981445789337158,
0.00798560619354248,
0.00809360694885254,
0.00805888557434082,
0.008077285766601562,
0.008068005561828613,
0.008351045608520508,
0.008699366569519043,
0.008914887428283691,
0.008760646820068359,
0.008747687339782715,
0.008738086700439454,
0.008741286277770996,
0.008733446121215821,
0.008747845649719239,
0.008699047088623046,
0.008744647026062011,
0.008732967376708985,
0.008765286445617675,
0.008748966217041016,
0.008767206192016602,
0.008776326179504395,
0.008748167037963868,
0.008759366989135741,
0.00875888729095459,
0.008733607292175294,
0.008740805625915527,
0.008795045852661132,
0.008807045936584473,
0.008774406433105468,
0.008770245552062989,
0.008794727325439454,
0.008767207145690918,
0.008772327423095702,
0.008764806747436524,
0.00878832721710205,
0.008721767425537109,
0.008752486228942872,
0.008732485771179199,
0.008895525932312012,
0.008781126022338867,
0.008787687301635743,
0.008818886756896972,
0.008812327384948731,
0.008804327011108398,
0.008788967132568359,
0.008757126808166505,
0.008758087158203125,
0.008764966011047363,
0.008784646034240723,
0.00875424575805664,
0.008753286361694337,
0.008753127098083496
]
},
"throughput": {
"unit": "tokens/s",
"value": 231.04322390416996
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1050.271744,
"max_global_vram": 65633.435648,
"max_process_vram": 229709.103104,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 59,
"total": 0.48835748577117927,
"mean": 0.00827724552154541,
"stdev": 0.00042970564007380874,
"p50": 0.008328486442565917,
"p90": 0.008377542304992675,
"p95": 0.008446341991424562,
"p99": 0.009575076026916509,
"values": [
0.008126086235046386,
0.007962406158447266,
0.007858726024627685,
0.007821445941925048,
0.00807856559753418,
0.007735846042633057,
0.007734886169433594,
0.007767364978790283,
0.00773152494430542,
0.0076908860206604006,
0.007728486061096191,
0.00772864580154419,
0.007927365779876709,
0.011081128120422364,
0.008339845657348632,
0.008364485740661622,
0.008358566284179688,
0.008303686141967774,
0.00828400707244873,
0.008289285659790039,
0.008296965599060058,
0.008261445999145509,
0.00829456615447998,
0.008305286407470703,
0.008349926948547363,
0.00848448657989502,
0.008287205696105956,
0.008331206321716309,
0.008358566284179688,
0.008342885971069336,
0.008318085670471192,
0.008350565910339355,
0.008341767311096192,
0.008344487190246582,
0.00838112735748291,
0.008369446754455567,
0.008328805923461914,
0.008363845825195313,
0.008467366218566894,
0.008325285911560058,
0.008325765609741211,
0.0083436861038208,
0.008328486442565917,
0.008304487228393555,
0.008306727409362794,
0.008381767272949219,
0.008307525634765625,
0.008367365837097167,
0.008360806465148926,
0.008376646041870116,
0.008310726165771484,
0.008444005966186524,
0.008358406066894532,
0.008347525596618652,
0.008348966598510742,
0.008353925704956055,
0.008331847190856934,
0.008289766311645509,
0.008352485656738282
]
},
"throughput": {
"unit": "tokens/s",
"value": 120.81313734104316
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 59,
"total": 0.4562862648963929,
"mean": 0.007733665506718523,
"stdev": 0.0004325391332366867,
"p50": 0.007792965888977051,
"p90": 0.007856901836395263,
"p95": 0.007918693923950195,
"p99": 0.008998019790649417,
"values": [
0.007566565990447998,
0.0073526458740234375,
0.007282405853271484,
0.007232804775238037,
0.007530564785003662,
0.007156324863433838,
0.007139365196228028,
0.007197444915771485,
0.007122725009918213,
0.0070700860023498536,
0.0071270461082458495,
0.007159046173095703,
0.007332005977630615,
0.010445608139038085,
0.007794246196746826,
0.007822885990142822,
0.007792965888977051,
0.007781925201416015,
0.007768805980682373,
0.0077716860771179196,
0.007768645763397217,
0.007743206024169922,
0.007766726016998291,
0.007778244972229004,
0.0078102459907531735,
0.007949766159057617,
0.007752965927124023,
0.007820166110992432,
0.007826086044311523,
0.00781040620803833,
0.00777936601638794,
0.007814565181732177,
0.00779408597946167,
0.007825925827026367,
0.007850726127624512,
0.007844165802001953,
0.0077888059616088865,
0.007830565929412841,
0.007947206020355225,
0.007803686141967773,
0.0078072061538696285,
0.00779456615447998,
0.007815684795379639,
0.007774246215820312,
0.007785446166992187,
0.00785856580734253,
0.00778752613067627,
0.007858885765075683,
0.007843046188354493,
0.007856485843658447,
0.007788005828857422,
0.007915525913238526,
0.00784208583831787,
0.007820964813232422,
0.007795845985412598,
0.007823366165161133,
0.0077814459800720215,
0.007772645950317383,
0.0078120059967041015
]
},
"throughput": {
"unit": "tokens/s",
"value": 129.30479074007826
},
"energy": null,
"efficiency": null
}
}
}