IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
48fbcf7 verified
raw
history blame
13.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": "d920fe9626db1e7915f6d3574b5b54b0159cd100",
"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": 1050.853376,
"max_global_vram": 1107.542016,
"max_process_vram": 267510.493184,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.5091489295959473,
"mean": 0.00942868388140643,
"stdev": 0.0010745259369302589,
"p50": 0.009065342426300048,
"p90": 0.010429579830169679,
"p95": 0.01207458391189575,
"p99": 0.013167001438140868,
"values": [
0.01194925594329834,
0.010126059532165527,
0.009553741455078125,
0.009356461524963378,
0.009125741958618164,
0.00894638156890869,
0.009120781898498536,
0.008960943222045898,
0.009163982391357422,
0.009274222373962403,
0.009139342308044434,
0.009022062301635742,
0.010559659957885742,
0.009160621643066406,
0.01230733585357666,
0.009934221267700195,
0.009739340782165528,
0.009689420700073241,
0.009698540687561034,
0.009715500831604005,
0.00930222225189209,
0.009060622215270996,
0.008845743179321288,
0.009310381889343262,
0.00891822338104248,
0.008884943008422852,
0.008749902725219727,
0.008620463371276855,
0.008599184036254882,
0.008599502563476562,
0.008581263542175293,
0.008662702560424805,
0.008875343322753906,
0.009060942649841308,
0.008792303085327148,
0.0090438232421875,
0.008880783081054687,
0.009662542343139648,
0.00971838092803955,
0.00906974220275879,
0.00920606231689453,
0.008999502182006836,
0.008764142990112305,
0.008624303817749023,
0.008577742576599122,
0.008767983436584473,
0.008903021812438966,
0.008578702926635743,
0.0085721435546875,
0.008767823219299316,
0.00975182056427002,
0.011454378128051758,
0.013738212585449218,
0.012660455703735352
]
},
"throughput": {
"unit": "tokens/s",
"value": 212.1186822207544
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1050.853376,
"max_global_vram": 1107.533824,
"max_process_vram": 250064.125952,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.5053090991973876,
"mean": 0.009357575911062734,
"stdev": 0.0007867235499716697,
"p50": 0.009186061859130859,
"p90": 0.009776877117156982,
"p95": 0.010498123121261593,
"p99": 0.01261235454559326,
"values": [
0.010327659606933593,
0.009469902038574219,
0.009439182281494141,
0.009051181793212891,
0.008990543365478516,
0.009065262794494629,
0.009117741584777832,
0.009124462127685546,
0.009287342071533203,
0.00918878173828125,
0.009207342147827148,
0.009241581916809082,
0.009522860527038574,
0.00885550308227539,
0.010106220245361328,
0.009755821228027343,
0.009667501449584961,
0.00973806095123291,
0.009657421112060548,
0.009785901069641114,
0.009361421585083008,
0.008832303047180176,
0.009307501792907714,
0.009525581359863282,
0.009025422096252442,
0.008849263191223145,
0.008834543228149415,
0.008668304443359375,
0.008747503280639649,
0.00902766227722168,
0.00862574291229248,
0.00890638256072998,
0.009277742385864257,
0.009028621673583984,
0.009483820915222168,
0.008874542236328125,
0.009570220947265624,
0.009604941368103028,
0.00918334197998047,
0.009006543159484863,
0.009196621894836426,
0.009001743316650391,
0.008890542030334472,
0.008591023445129395,
0.008573423385620118,
0.009083823204040527,
0.009329742431640625,
0.008753263473510742,
0.008730382919311523,
0.008975823402404786,
0.009729901313781738,
0.01324589443206787,
0.012050536155700684,
0.010814698219299316
]
},
"throughput": {
"unit": "tokens/s",
"value": 106.86528322124299
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 53,
"total": 0.9947175712585449,
"mean": 0.01876825606148198,
"stdev": 0.001738045419610838,
"p50": 0.018263483047485353,
"p90": 0.019722681045532226,
"p95": 0.02297163505554199,
"p99": 0.025207917709350578,
"values": [
0.019695161819458008,
0.01903724479675293,
0.018444923400878905,
0.0180938835144043,
0.017968765258789064,
0.018268924713134765,
0.018245723724365233,
0.018520923614501954,
0.018511003494262695,
0.01839804458618164,
0.01822940444946289,
0.020140920639038086,
0.018131963729858397,
0.02256779670715332,
0.019667322158813477,
0.019522361755371094,
0.01942348289489746,
0.01949980163574219,
0.019424762725830078,
0.01870668411254883,
0.017942363739013673,
0.018294364929199218,
0.018807964324951174,
0.01813628387451172,
0.017677244186401368,
0.01754012680053711,
0.017457725524902344,
0.01729180717468262,
0.01763388442993164,
0.017414045333862305,
0.01744300651550293,
0.018224124908447267,
0.01810988426208496,
0.018263483047485353,
0.017944284439086914,
0.01862604331970215,
0.019463321685791016,
0.018877723693847655,
0.018171323776245116,
0.018363643646240234,
0.018114843368530274,
0.017586206436157225,
0.017343645095825196,
0.017196928024291992,
0.01769292449951172,
0.018277084350585938,
0.01739900588989258,
0.01737932586669922,
0.01775420570373535,
0.01972956085205078,
0.02438155174255371,
0.026103147506713865,
0.023577392578125
]
},
"throughput": {
"unit": "tokens/s",
"value": 53.28145549187685
},
"energy": null,
"efficiency": null
}
}
}