IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ae7b743 verified
raw
history blame
15.4 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+rocm5.7",
"_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": "6",
"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": 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": "warn",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082014.482432,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-122-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]",
"Advanced Micro Devices, Inc. [AMD/ATI]",
"Advanced Micro Devices, Inc. [AMD/ATI]",
"Advanced Micro Devices, Inc. [AMD/ATI]",
"Advanced Micro Devices, Inc. [AMD/ATI]",
"Advanced Micro Devices, Inc. [AMD/ATI]",
"Advanced Micro Devices, Inc. [AMD/ATI]",
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 8,
"gpu_vram_mb": 549621596160,
"optimum_benchmark_version": "0.5.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.0",
"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.13.0",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1105.043456,
"max_global_vram": 68702.69952,
"max_process_vram": 4380.499968,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.07579269409179687
],
"count": 1,
"total": 0.07579269409179687,
"mean": 0.07579269409179687,
"p50": 0.07579269409179687,
"p90": 0.07579269409179687,
"p95": 0.07579269409179687,
"p99": 0.07579269409179687,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1271.312384,
"max_global_vram": 68702.69952,
"max_process_vram": 262341.77536,
"max_reserved": 725.614592,
"max_allocated": 513.235456
},
"latency": {
"unit": "s",
"values": [
0.007847221851348877,
0.00818274211883545,
0.008151702880859375,
0.008153942108154297,
0.008137462615966796,
0.008116183280944824,
0.008280343055725097,
0.008184022903442383,
0.008152023315429687,
0.008177783012390137,
0.008198423385620117,
0.008169782638549805,
0.008161462783813477,
0.00834514331817627,
0.00822226333618164,
0.008295863151550294,
0.008234582901000976,
0.008883384704589844,
0.008441783905029298,
0.008611063957214355,
0.008549463272094727,
0.00870306396484375,
0.008595704078674316,
0.009306586265563965,
0.009052504539489746,
0.009255386352539063,
0.009057785034179687,
0.008594584465026856,
0.009290745735168457,
0.009263866424560547,
0.009260346412658691,
0.009239385604858399,
0.008730745315551758,
0.008543543815612793,
0.008601943969726562,
0.008646265029907226,
0.008593463897705078,
0.008202742576599122,
0.00821954345703125,
0.00820162296295166,
0.008197942733764648,
0.008231383323669433,
0.008260183334350586,
0.008201462745666504,
0.008203063011169433,
0.009404986381530762,
0.009167224884033202,
0.008865784645080567,
0.008182103157043458,
0.008191062927246093,
0.008207061767578124,
0.008132343292236327,
0.00838674259185791,
0.008166902542114258,
0.00832274341583252,
0.008271383285522462,
0.008248183250427246,
0.008156023025512694,
0.008152023315429687,
0.008611543655395508
],
"count": 60,
"total": 0.5084166216850282,
"mean": 0.008473610361417135,
"p50": 0.008265783309936523,
"p90": 0.009240985679626465,
"p95": 0.009265210390090943,
"p99": 0.009346930313110352,
"stdev": 0.0003955883776982377,
"stdev_": 4.668474957256343
},
"throughput": {
"unit": "tokens/s",
"value": 236.0269017214426
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1271.312384,
"max_global_vram": 68702.69952,
"max_process_vram": 298830.102528,
"max_reserved": 725.614592,
"max_allocated": 513.257984
},
"latency": {
"unit": "s",
"values": [
0.007791380882263183,
0.007834581851959229,
0.008054742813110352,
0.007985302925109863,
0.007746420860290528,
0.007849142074584961,
0.007863061904907227,
0.007837942123413086,
0.007890582084655762,
0.008074901580810546,
0.007963541984558106,
0.00801058292388916,
0.007881142139434815,
0.007890902042388915,
0.008077302932739257,
0.008063701629638672,
0.008061622619628906,
0.008389622688293456,
0.008382102966308595,
0.008270902633666992,
0.008046262741088868,
0.00808546257019043,
0.00818082332611084,
0.008309462547302245,
0.008676025390625,
0.008719703674316407,
0.008136822700500488,
0.008588024139404297,
0.008547384262084961,
0.008704983711242675,
0.008744665145874023,
0.008136661529541015,
0.008597463607788085,
0.008352023124694824,
0.008289942741394043,
0.008411382675170899,
0.008447704315185546,
0.007987862110137939,
0.00795234203338623,
0.007960981845855713,
0.00799154281616211,
0.008239542961120606,
0.00827650260925293,
0.008117463111877441,
0.008167861938476562,
0.00887490463256836,
0.008908985137939453,
0.008090103149414062,
0.008091702461242675,
0.008016982078552247,
0.008018742561340332,
0.007961301803588868,
0.008055863380432128,
0.008227863311767579,
0.008094582557678223,
0.007993621826171875,
0.008098102569580079,
0.008030582427978515,
0.007942421913146973,
0.009033945083618164
],
"count": 60,
"total": 0.49102808618545524,
"mean": 0.008183801436424255,
"p50": 0.008087782859802245,
"p90": 0.008678921222686767,
"p95": 0.00875117712020874,
"p99": 0.008960218715667724,
"stdev": 0.0002980007057857467,
"stdev_": 3.6413481937551997
},
"throughput": {
"unit": "tokens/s",
"value": 122.19260300588739
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.007118740081787109,
0.00713730001449585,
0.007317141056060791,
0.00722658109664917,
0.00709489917755127,
0.0071705799102783204,
0.007215539932250977,
0.007152979850769043,
0.007205140113830566,
0.007484500885009766,
0.007251860141754151,
0.0072584209442138675,
0.007276820182800293,
0.007291860103607177,
0.007214260101318359,
0.007303860187530518,
0.007225141048431396,
0.00764530086517334,
0.0075806608200073245,
0.007602101802825928,
0.007416501045227051,
0.007449141025543213,
0.007542261123657227,
0.007634740829467773,
0.008024023056030274,
0.008034582138061524,
0.00745586109161377,
0.007765302181243897,
0.00785682201385498,
0.008059863090515137,
0.00806626319885254,
0.007486420154571533,
0.007908341884613037,
0.007523221015930176,
0.007513781070709228,
0.007610741138458252,
0.0076022610664367675,
0.007209459781646729,
0.00718641996383667,
0.007238420009613037,
0.007207540035247803,
0.007491701126098633,
0.007387381076812744,
0.007266580104827881,
0.007321300029754639,
0.008067221641540527,
0.008100823402404785,
0.007244979858398438,
0.007266900062561035,
0.007199860095977783,
0.007187221050262451,
0.007184820175170898,
0.007205461025238037,
0.007363860130310059,
0.007320021152496338,
0.007183539867401123,
0.007221300125122071,
0.007164820194244385,
0.007227859973907471,
0.00813794231414795
],
"count": 60,
"total": 0.44610924863815304,
"mean": 0.007435154143969216,
"p50": 0.007310500621795654,
"p90": 0.0080250789642334,
"p95": 0.008066311120986939,
"p99": 0.008116042156219482,
"stdev": 0.0002940760261224049,
"stdev_": 3.95521088639346
},
"throughput": {
"unit": "tokens/s",
"value": 134.4962028542633
},
"energy": null,
"efficiency": null
}
}
}