IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6909526 verified
raw
history blame
14.9 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": 2,
"sequence_length": 16,
"num_choices": 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.490624,
"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.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 1110.212608,
"max_global_vram": 68702.69952,
"max_process_vram": 4894.457856,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.10639664459228515
],
"count": 1,
"total": 0.10639664459228515,
"mean": 0.10639664459228515,
"p50": 0.10639664459228515,
"p90": 0.10639664459228515,
"p95": 0.10639664459228515,
"p99": 0.10639664459228515,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1287.421952,
"max_global_vram": 68702.69952,
"max_process_vram": 299622.289408,
"max_reserved": 731.906048,
"max_allocated": 529.219072
},
"latency": {
"unit": "s",
"values": [
0.009775710105895997,
0.009947870254516602,
0.009904830932617188,
0.009980990409851074,
0.009998270988464356,
0.00999747085571289,
0.00994499111175537,
0.009926589965820312,
0.009949951171875,
0.009910591125488281,
0.009926589965820312,
0.009942111015319824,
0.009942750930786132,
0.010105311393737793,
0.010029630661010742,
0.010015550613403321,
0.010066750526428223,
0.009926590919494629,
0.009937310218811035,
0.010076030731201172,
0.009935391426086427,
0.009960990905761719,
0.009929149627685548,
0.009872830390930176,
0.009902111053466797,
0.009867549896240235,
0.009879549980163575,
0.009068987846374511,
0.008929947853088378,
0.008728986740112304,
0.008748186111450196,
0.00872210693359375,
0.008710586547851562,
0.008717467308044433,
0.008714905738830566,
0.008738746643066406,
0.008749306678771973,
0.00868258571624756,
0.008734267234802246,
0.008728346824645995,
0.008737945556640625,
0.008692987442016601,
0.008722267150878905,
0.008715227127075195,
0.008690906524658202,
0.008810907363891602,
0.008730587005615234,
0.008724666595458985,
0.008704026222229004,
0.008715066909790039,
0.008714587211608886,
0.008711067199707032,
0.008721945762634277,
0.008708506584167481,
0.008702266693115234,
0.00872098731994629,
0.00871138572692871
],
"count": 57,
"total": 0.5308632297515871,
"mean": 0.009313389995641876,
"p50": 0.008929947853088378,
"p90": 0.009997790908813477,
"p95": 0.010037054634094239,
"p99": 0.010088914222717285,
"stdev": 0.0006083335351427592,
"stdev_": 6.53181640012309
},
"throughput": {
"unit": "samples/s",
"value": 214.7445775314771
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1287.426048,
"max_global_vram": 68702.69952,
"max_process_vram": 289667.39968,
"max_reserved": 731.906048,
"max_allocated": 529.219584
},
"latency": {
"unit": "s",
"values": [
0.00877250576019287,
0.008802586555480958,
0.008805947303771973,
0.00912914752960205,
0.008862586975097656,
0.008835866928100585,
0.0088011474609375,
0.008856826782226563,
0.008855707168579101,
0.00876274585723877,
0.00878322696685791,
0.008996347427368163,
0.008790906906127929,
0.008779387474060058,
0.00890434741973877,
0.008904987335205079,
0.008866427421569824,
0.00874722671508789,
0.008795387268066406,
0.00888370704650879,
0.008842906951904296,
0.00879362678527832,
0.008749147415161133,
0.008751707077026367,
0.008752986907958985,
0.00878866672515869,
0.008137624740600586,
0.008134264945983887,
0.007946424007415772,
0.007777624130249024,
0.007777624130249024,
0.0077856240272521976,
0.0077912240028381345,
0.007789943218231201,
0.007762904167175293,
0.007765624046325683,
0.007746263027191162,
0.007806424140930176,
0.007775544166564941,
0.007771702766418457,
0.007776343822479248,
0.007894423961639405,
0.007775383949279785,
0.007923543930053711,
0.007711543083190918,
0.007771063804626465,
0.007756184101104737,
0.007786903858184814,
0.007763703823089599,
0.007795383930206299,
0.0078101038932800295,
0.007798902988433838,
0.007807384014129639,
0.007789624214172363,
0.007861464023590089,
0.007784823894500733,
0.007789622783660888
],
"count": 57,
"total": 0.4719812817573548,
"mean": 0.008280373364164118,
"p50": 0.007946424007415772,
"p90": 0.008864123153686523,
"p95": 0.008904475402832032,
"p99": 0.009054779472351074,
"stdev": 0.0005126952619094894,
"stdev_": 6.191692564593006
},
"throughput": {
"unit": "tokens/s",
"value": 241.5350023533504
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.00826722526550293,
0.008326425552368164,
0.008305624961853027,
0.008614426612854003,
0.00834962558746338,
0.008344985961914063,
0.008282105445861816,
0.008375546455383302,
0.00837634563446045,
0.008281464576721192,
0.008285625457763672,
0.008529306411743164,
0.008319544792175292,
0.008291865348815918,
0.00838450527191162,
0.008406584739685058,
0.00838498592376709,
0.008271864891052246,
0.008296186447143555,
0.008405945777893066,
0.00831474494934082,
0.008310105323791504,
0.008260186195373536,
0.008257306098937989,
0.008278104782104492,
0.008286265373229981,
0.007659704208374024,
0.007637784004211425,
0.007457141876220703,
0.007311861991882324,
0.007273783206939697,
0.00732226276397705,
0.007311861991882324,
0.007313141822814942,
0.007291703224182129,
0.007308181762695313,
0.0072827420234680175,
0.0073424229621887206,
0.007306901931762695,
0.007303701877593994,
0.007278903007507324,
0.007421623229980469,
0.007313941955566406,
0.007443222999572754,
0.007259061813354492,
0.0073257827758789066,
0.007312182903289795,
0.007307382106781006,
0.0073211431503295895,
0.0073278632164001465,
0.00733170223236084,
0.007310101985931397,
0.007326582908630371,
0.00731538200378418,
0.007389301776885986,
0.007305461883544922,
0.0073347420692443845
],
"count": 57,
"total": 0.44455448150634774,
"mean": 0.007799201429935923,
"p50": 0.007457141876220703,
"p90": 0.008379609489440918,
"p95": 0.008406073570251464,
"p99": 0.008566759300231933,
"stdev": 0.0005016659006869048,
"stdev_": 6.432272652445476
},
"throughput": null,
"energy": null,
"efficiency": null
}
}
}