IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
48ed7bc verified
raw
history blame
14.1 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.2.1",
"optimum_benchmark_commit": "f85421c91b2a2b1bc0a30ceba32f9580499bf023",
"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": 1048.973312,
"max_global_vram": 1107.533824,
"max_process_vram": 243279.429632,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 62,
"total": 0.5060554008483888,
"mean": 0.008162183884651432,
"stdev": 0.0003234405006241027,
"p50": 0.008005657196044923,
"p90": 0.008626903629302978,
"p95": 0.008731007814407348,
"p99": 0.009250558595657349,
"values": [
0.009580933570861816,
0.008627335548400878,
0.008735655784606933,
0.008642696380615234,
0.00840925693511963,
0.008274698257446289,
0.00828461742401123,
0.008393257141113282,
0.008171656608581542,
0.008623016357421876,
0.008006056785583497,
0.007967338085174561,
0.008096458435058594,
0.008242217063903809,
0.007980778217315673,
0.007970858097076415,
0.007943818092346192,
0.008018538475036622,
0.007982538223266602,
0.007957098007202148,
0.008038216590881348,
0.007941897869110107,
0.00807709789276123,
0.008008937835693359,
0.007953417778015138,
0.007976458072662354,
0.008005257606506347,
0.008038217544555665,
0.007976297855377196,
0.007952777862548829,
0.00800733757019043,
0.007979018211364746,
0.007946537971496583,
0.00798157787322998,
0.007996778011322021,
0.00797885799407959,
0.007990697860717773,
0.00798701810836792,
0.00801325798034668,
0.00820285701751709,
0.008953414916992187,
0.009039335250854492,
0.008481257438659668,
0.008632136344909667,
0.008548616409301758,
0.008477095603942872,
0.008221096992492676,
0.008126696586608887,
0.007978218078613281,
0.007977898120880128,
0.007968937873840332,
0.007984938144683838,
0.007967338085174561,
0.008031658172607422,
0.007984777927398682,
0.007937098979949951,
0.00794061803817749,
0.00794013786315918,
0.0079826979637146,
0.00800717830657959,
0.007943336963653564,
0.007969577789306641
]
},
"throughput": {
"unit": "tokens/s",
"value": 245.0324604620704
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1048.973312,
"max_global_vram": 1107.529728,
"max_process_vram": 252002.598912,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 62,
"total": 0.5058051681518554,
"mean": 0.008158147873417024,
"stdev": 0.0003937695324270791,
"p50": 0.00807757806777954,
"p90": 0.008440296459197997,
"p95": 0.008503481292724609,
"p99": 0.009567111473083497,
"values": [
0.008441896438598632,
0.008617417335510254,
0.008503657341003418,
0.008224137306213379,
0.008446857452392579,
0.008180936813354493,
0.008383337020874024,
0.008251176834106446,
0.010806529998779298,
0.007912458896636963,
0.007935658931732177,
0.00782381820678711,
0.007840618133544922,
0.007908298015594482,
0.007932137966156006,
0.008003498077392578,
0.007915657997131348,
0.007880938053131104,
0.008003177642822266,
0.008239977836608887,
0.00807533836364746,
0.00791437816619873,
0.008070378303527833,
0.008079817771911621,
0.008011178016662597,
0.007880777835845947,
0.00790765905380249,
0.008100618362426757,
0.00808589744567871,
0.008015018463134765,
0.008131817817687988,
0.00810125732421875,
0.008080938339233398,
0.008159016609191895,
0.008205416679382325,
0.008006378173828125,
0.008030537605285645,
0.008021416664123536,
0.008158218383789063,
0.008341417312622071,
0.008774696350097656,
0.008500136375427247,
0.008384777069091796,
0.008389257431030273,
0.008425896644592284,
0.008180937767028808,
0.00804109764099121,
0.008157578468322754,
0.008113576889038085,
0.007877098083496094,
0.008022698402404785,
0.008196296691894532,
0.007945578098297119,
0.007928137779235839,
0.008109257698059083,
0.008034377098083497,
0.008013418197631836,
0.00796845817565918,
0.00801021671295166,
0.008044298171997071,
0.007954378128051758,
0.008103337287902832
]
},
"throughput": {
"unit": "tokens/s",
"value": 122.5768416454496
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 61,
"total": 0.9971684522628785,
"mean": 0.01634702380758817,
"stdev": 0.0005414818025662596,
"p50": 0.016100435256958007,
"p90": 0.017010194778442383,
"p95": 0.017316911697387697,
"p99": 0.018203342819213864,
"values": [
0.017316911697387697,
0.017241071701049805,
0.016956432342529297,
0.016774194717407227,
0.016570993423461914,
0.016726993560791017,
0.016624753952026367,
0.018824268341064453,
0.017010194778442383,
0.015933555603027345,
0.01582603645324707,
0.016050996780395507,
0.01613531494140625,
0.016028915405273438,
0.01593595600128174,
0.015981395721435546,
0.015922836303710938,
0.01601227569580078,
0.016333715438842773,
0.016057395935058595,
0.016080596923828124,
0.01605547523498535,
0.016096595764160157,
0.01609915542602539,
0.01609915542602539,
0.016007955551147462,
0.016023155212402343,
0.016139795303344726,
0.016077234268188478,
0.016077556610107423,
0.016127796173095704,
0.01609115409851074,
0.01611099624633789,
0.016221075057983397,
0.01616363525390625,
0.01604107666015625,
0.01609483528137207,
0.01617291450500488,
0.01674619483947754,
0.017789392471313475,
0.017523632049560547,
0.01693515396118164,
0.016961231231689453,
0.017010831832885744,
0.016813554763793946,
0.016317235946655274,
0.016165075302124025,
0.01606779670715332,
0.016117555618286133,
0.016034036636352538,
0.016139795303344726,
0.016100435256958007,
0.015978196144104003,
0.015999476432800294,
0.016128595352172852,
0.016010515213012694,
0.0160732364654541,
0.01607563591003418,
0.016153715133666993,
0.015947315216064455,
0.016035476684570314
]
},
"throughput": {
"unit": "tokens/s",
"value": 61.173214878160714
},
"energy": null,
"efficiency": null
}
}
}