IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d4a57ae
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.0.dev20231010+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": 1082015.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"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.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 957.566976, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 45745.504256, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.9270029296875, | |
"mean": 7.9270029296875, | |
"stdev": 0.0, | |
"p50": 7.9270029296875, | |
"p90": 7.9270029296875, | |
"p95": 7.9270029296875, | |
"p99": 7.9270029296875, | |
"values": [ | |
7.9270029296875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1132.060672, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 284108.468224, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5171664481163024, | |
"mean": 0.008341394324456493, | |
"stdev": 0.0005046599076878145, | |
"p50": 0.008525774002075194, | |
"p90": 0.009025614738464355, | |
"p95": 0.009133055019378663, | |
"p99": 0.009450681419372558, | |
"values": [ | |
0.009469615936279296, | |
0.009438575744628907, | |
0.009347374916076661, | |
0.009135375022888184, | |
0.009036014556884766, | |
0.009088974952697754, | |
0.008993934631347657, | |
0.009029134750366211, | |
0.008708654403686523, | |
0.00874033546447754, | |
0.008885934829711914, | |
0.008561293601989746, | |
0.008553454399108887, | |
0.008693453788757324, | |
0.008545133590698242, | |
0.008561134338378906, | |
0.008529933929443359, | |
0.00852161407470703, | |
0.008549134254455566, | |
0.008534093856811524, | |
0.008515052795410157, | |
0.008504014015197753, | |
0.008531853675842286, | |
0.00847473430633545, | |
0.008567214012145996, | |
0.007748173236846924, | |
0.007891693115234376, | |
0.0076662530899047855, | |
0.007761773109436035, | |
0.007776971817016602, | |
0.0075934529304504395, | |
0.007875213146209717, | |
0.007539691925048828, | |
0.007784653186798096, | |
0.008069293022155762, | |
0.008115853309631348, | |
0.008634573936462402, | |
0.0082059326171875, | |
0.007567051887512207, | |
0.007874573230743408, | |
0.007732492923736572, | |
0.007713452816009521, | |
0.007867853164672851, | |
0.007545292854309082, | |
0.0077704119682312014, | |
0.007977773189544677, | |
0.007705613136291504, | |
0.008553293228149414, | |
0.008519054412841797, | |
0.008574414253234863, | |
0.008586254119873047, | |
0.008586573600769042, | |
0.00856369400024414, | |
0.00856865406036377, | |
0.008550733566284179, | |
0.008551214218139648, | |
0.008530734062194824, | |
0.008370094299316407, | |
0.007908652782440186, | |
0.007694732189178466, | |
0.007895372867584228, | |
0.007778892993927002 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 239.76806780805384 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1132.105728, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 294351.273984, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.4941591973304748, | |
"mean": 0.007970309634362497, | |
"stdev": 0.0020645139167727936, | |
"p50": 0.00785001254081726, | |
"p90": 0.008480909824371339, | |
"p95": 0.008833542156219482, | |
"p99": 0.01591673385620118, | |
"values": [ | |
0.008977133750915528, | |
0.008849614143371582, | |
0.00852817440032959, | |
0.008496013641357422, | |
0.008425613403320313, | |
0.008487053871154785, | |
0.023211076736450197, | |
0.008300973892211913, | |
0.008344013214111328, | |
0.011253137588500977, | |
0.00793697214126587, | |
0.007852333068847656, | |
0.007884172916412354, | |
0.007894093036651612, | |
0.007909772872924804, | |
0.007887853145599364, | |
0.007857932090759277, | |
0.007849133014678955, | |
0.007896492958068848, | |
0.007887372970581055, | |
0.007857933044433593, | |
0.007869132995605469, | |
0.007984492778778076, | |
0.007844811916351318, | |
0.007726892948150634, | |
0.007152650833129883, | |
0.006946890830993652, | |
0.00696721076965332, | |
0.007135692119598388, | |
0.0073740921020507815, | |
0.007090731143951416, | |
0.007184971809387207, | |
0.007341772079467773, | |
0.006967851161956787, | |
0.007197931766510009, | |
0.007985612869262696, | |
0.00781825304031372, | |
0.007168652057647705, | |
0.0073153719902038575, | |
0.006956010818481445, | |
0.007337451934814453, | |
0.006992331027984619, | |
0.007158891201019287, | |
0.007386092185974121, | |
0.007001612186431885, | |
0.007161130905151367, | |
0.007057610988616943, | |
0.007862573146820068, | |
0.00801041316986084, | |
0.007870092868804931, | |
0.007849613189697265, | |
0.007908812999725342, | |
0.007841931819915772, | |
0.007874252796173096, | |
0.007855213165283204, | |
0.007862253189086914, | |
0.007850411891937257, | |
0.007506412029266357, | |
0.007247211933135986, | |
0.006925931930541992, | |
0.006936009883880615, | |
0.0070470509529113766 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 125.46564009115623 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.46783195734024047, | |
"mean": 0.007545676731294201, | |
"stdev": 0.0020184016051937007, | |
"p50": 0.007447132349014282, | |
"p90": 0.007907117080688477, | |
"p95": 0.008168116664886474, | |
"p99": 0.015317643909454351, | |
"values": [ | |
0.008309773445129395, | |
0.00817857265472412, | |
0.00796945285797119, | |
0.007941772937774658, | |
0.007871692180633544, | |
0.00791105318069458, | |
0.022540836334228515, | |
0.0077640128135681155, | |
0.00782545280456543, | |
0.01069953727722168, | |
0.007495532035827637, | |
0.007446252822875977, | |
0.007463372230529785, | |
0.007476972103118896, | |
0.007485772132873535, | |
0.007470571994781494, | |
0.00744353199005127, | |
0.007448011875152588, | |
0.007483851909637451, | |
0.007472492218017578, | |
0.0074582529067993165, | |
0.007456171989440918, | |
0.007572651863098145, | |
0.007425131797790527, | |
0.0073104119300842286, | |
0.00679745101928711, | |
0.006575531005859375, | |
0.006609930992126465, | |
0.006712971210479736, | |
0.007015851974487305, | |
0.006723371028900147, | |
0.006784971237182617, | |
0.006981610774993896, | |
0.006592010021209717, | |
0.006812010765075684, | |
0.007576012134552002, | |
0.007463531970977783, | |
0.00681217098236084, | |
0.0069080119132995605, | |
0.006599050998687744, | |
0.00698305082321167, | |
0.006633769989013672, | |
0.0068004908561706545, | |
0.00701793098449707, | |
0.0065889711380004885, | |
0.006802250862121582, | |
0.006621291160583496, | |
0.007458093166351318, | |
0.007610572814941406, | |
0.007463692188262939, | |
0.0074553718566894535, | |
0.007486732006072998, | |
0.007439531803131103, | |
0.007470571994781494, | |
0.007453611850738525, | |
0.007464332103729248, | |
0.0074456119537353515, | |
0.007085291862487793, | |
0.006834250926971435, | |
0.006567370891571045, | |
0.006578889846801758, | |
0.00668464994430542 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.52621807301895 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |