IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c742f45 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.2.1",
"optimum_benchmark_commit": "0d561969d04a7091baf8691bc894eb753a189d4f",
"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.612864,
"max_global_vram": 1107.542016,
"max_process_vram": 248126.717952,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.49974564838409447,
"mean": 0.008329094139734905,
"stdev": 0.0003948795939095298,
"p50": 0.008130939960479736,
"p90": 0.008629242324829102,
"p95": 0.008959554100036621,
"p99": 0.009760368709564204,
"values": [
0.010604774475097656,
0.009018378257751465,
0.00895645809173584,
0.008585577964782714,
0.00843917942047119,
0.008378060340881347,
0.008480619430541993,
0.008475659370422363,
0.008446699142456054,
0.008520138740539552,
0.008628618240356446,
0.008634859085083008,
0.00866445827484131,
0.008574538230895996,
0.008231019973754883,
0.008126859664916991,
0.008124460220336914,
0.008119020462036133,
0.008119178771972655,
0.008108779907226563,
0.008115819931030274,
0.008114219665527344,
0.008260299682617187,
0.008104780197143554,
0.008257740020751953,
0.00812205982208252,
0.008091179847717286,
0.008122540473937989,
0.008115819931030274,
0.00813245964050293,
0.008103500366210938,
0.008129899978637695,
0.008109419822692872,
0.00812094020843506,
0.008090379714965821,
0.00813245964050293,
0.00813341999053955,
0.008111499786376953,
0.008102860450744629,
0.009173578262329101,
0.008601258277893067,
0.008529417991638184,
0.008490219116210937,
0.008568458557128907,
0.00855021858215332,
0.008607019424438476,
0.008269100189208985,
0.008079819679260254,
0.008096940040588379,
0.008110859870910644,
0.008124939918518067,
0.008087820053100585,
0.008099340438842773,
0.008148460388183594,
0.008131979942321777,
0.008069419860839843,
0.008065420150756836,
0.008089260101318359,
0.008056779861450196,
0.008086700439453125
]
},
"throughput": {
"unit": "tokens/s",
"value": 240.12215091419958
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1048.612864,
"max_global_vram": 1107.546112,
"max_process_vram": 238434.24256,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.49785541152954105,
"mean": 0.008297590192159015,
"stdev": 0.0001846287248903861,
"p50": 0.008217419147491455,
"p90": 0.008546059131622314,
"p95": 0.00866105875968933,
"p99": 0.008919918880462646,
"values": [
0.008897418022155762,
0.008669418334960937,
0.008600619316101074,
0.008336460113525391,
0.008326699256896972,
0.00827885913848877,
0.00844429874420166,
0.008304619789123535,
0.008386539459228516,
0.008463499069213867,
0.008660618782043456,
0.008376619338989259,
0.008410220146179198,
0.00822622013092041,
0.008176299095153808,
0.00811981964111328,
0.008163180351257324,
0.008169899940490723,
0.008302220344543457,
0.008127659797668456,
0.008146220207214356,
0.008206379890441895,
0.00818493938446045,
0.008122699737548828,
0.008544299125671386,
0.008242539405822754,
0.008244939804077148,
0.008156459808349609,
0.008219499588012696,
0.00816510009765625,
0.00821277904510498,
0.00820382022857666,
0.0082804594039917,
0.008086700439453125,
0.008203180313110351,
0.008252779006958007,
0.008132940292358398,
0.008195500373840332,
0.008402540206909179,
0.008499979019165039,
0.008398539543151855,
0.008952298164367677,
0.008466058731079102,
0.008416138648986816,
0.00841757869720459,
0.008561899185180664,
0.008191980361938477,
0.008205899238586426,
0.00819021987915039,
0.008201740264892577,
0.008215338706970214,
0.008235340118408202,
0.00810733985900879,
0.008156139373779297,
0.008139340400695801,
0.008102219581604004,
0.008168299674987793,
0.008195659637451173,
0.008192138671875,
0.008196298599243163
]
},
"throughput": {
"unit": "tokens/s",
"value": 120.51691838733748
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 59,
"total": 0.9805817317962646,
"mean": 0.01662002935247906,
"stdev": 0.0004186274861671032,
"p50": 0.016408599853515626,
"p90": 0.01713253288269043,
"p95": 0.017438308143615723,
"p99": 0.017815395889282225,
"values": [
0.01774651527404785,
0.01762939643859863,
0.01696731758117676,
0.016810037612915038,
0.01672395896911621,
0.016926998138427733,
0.0168884391784668,
0.016825878143310546,
0.017054197311401367,
0.017299636840820313,
0.017083797454833984,
0.017088117599487303,
0.016873558044433593,
0.016425878524780273,
0.016293880462646484,
0.016315639495849608,
0.01630780029296875,
0.016484439849853514,
0.016246360778808595,
0.01635371971130371,
0.016272119522094727,
0.016464759826660156,
0.01629355812072754,
0.016785400390625,
0.01641659927368164,
0.016357400894165038,
0.016368438720703125,
0.01633452033996582,
0.016354839324951173,
0.016270999908447267,
0.016419158935546876,
0.016408599853515626,
0.016315639495849608,
0.016294519424438478,
0.016404598236083985,
0.016385719299316405,
0.016341079711914064,
0.016463159561157226,
0.017910516738891602,
0.01712939643859863,
0.017417076110839844,
0.01708955764770508,
0.017034677505493163,
0.017060277938842773,
0.01714507865905762,
0.016467479705810546,
0.016342199325561524,
0.01631755828857422,
0.016343000411987305,
0.016326679229736327,
0.01648331832885742,
0.01628572082519531,
0.016326519012451173,
0.01628652000427246,
0.016186519622802733,
0.016269880294799803,
0.01632588005065918,
0.016242679595947267,
0.016294517517089845
]
},
"throughput": {
"unit": "tokens/s",
"value": 60.16836545784072
},
"energy": null,
"efficiency": null
}
}
}