IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b17cf4a verified
raw
history blame
15.3 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": "5",
"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": 1082014.482432,
"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.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.0",
"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.13.0",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1105.928192,
"max_global_vram": 68702.69952,
"max_process_vram": 4416.200704,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.0777890625
],
"count": 1,
"total": 0.0777890625,
"mean": 0.0777890625,
"p50": 0.0777890625,
"p90": 0.0777890625,
"p95": 0.0777890625,
"p99": 0.0777890625,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1272.19712,
"max_global_vram": 68702.69952,
"max_process_vram": 272206.487552,
"max_reserved": 725.614592,
"max_allocated": 513.235456
},
"latency": {
"unit": "s",
"values": [
0.008276936531066894,
0.008361577033996582,
0.008312617301940918,
0.00830861759185791,
0.0083298978805542,
0.008317737579345704,
0.00831789779663086,
0.008303016662597655,
0.008363496780395508,
0.008347176551818847,
0.008412616729736328,
0.008403017044067382,
0.008361577033996582,
0.008530217170715332,
0.008441737174987793,
0.00846445655822754,
0.008402857780456543,
0.008352617263793945,
0.008345096588134766,
0.008341417312622071,
0.008361737251281738,
0.008515656471252442,
0.009349574089050293,
0.00938429355621338,
0.009020936012268067,
0.008649736404418946,
0.008789575576782227,
0.008714216232299805,
0.008886215209960937,
0.00881053638458252,
0.008719335556030274,
0.008306537628173828,
0.008280617713928223,
0.008326216697692871,
0.00836189842224121,
0.008277097702026366,
0.008340456962585448,
0.008255017280578614,
0.00830429744720459,
0.008355337142944336,
0.008383657455444336,
0.008390377044677735,
0.008371816635131837,
0.008384456634521484,
0.008339817047119141,
0.008403817176818847,
0.008321578025817872,
0.008341737747192383,
0.008374537467956543,
0.008321097373962402,
0.008315016746520996,
0.008309576988220215,
0.008404776573181153,
0.008428616523742676,
0.00838797664642334,
0.008430856704711914,
0.008360617637634278,
0.008316617012023925,
0.008283336639404297,
0.008383657455444336
],
"count": 60,
"total": 0.5065578136444091,
"mean": 0.008442630227406819,
"p50": 0.008361657142639159,
"p90": 0.00872635955810547,
"p95": 0.008892951250076293,
"p99": 0.009363809070587158,
"stdev": 0.00023170770533565576,
"stdev_": 2.7444966686267573
},
"throughput": {
"unit": "tokens/s",
"value": 236.89299970849328
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1272.19712,
"max_global_vram": 68702.69952,
"max_process_vram": 267272.568832,
"max_reserved": 725.614592,
"max_allocated": 513.257984
},
"latency": {
"unit": "s",
"values": [
0.007977417945861816,
0.008055337905883789,
0.00835421657562256,
0.008112136840820312,
0.008123817443847657,
0.008125256538391114,
0.008223816871643067,
0.008055018424987794,
0.008272618293762206,
0.008070697784423828,
0.008190056800842286,
0.008133737564086915,
0.008073098182678222,
0.008082217216491699,
0.008125898361206054,
0.008147018432617188,
0.008115656852722168,
0.008197257995605469,
0.008199658393859863,
0.008050377845764161,
0.008092617988586426,
0.008850055694580078,
0.008518536567687989,
0.008805895805358887,
0.008203976631164551,
0.008404136657714844,
0.008411017417907715,
0.008649256706237793,
0.008475176811218262,
0.008364136695861817,
0.008324618339538575,
0.008179977416992187,
0.008253896713256836,
0.00797069787979126,
0.008133256912231445,
0.00799037790298462,
0.0080623779296875,
0.00803133773803711,
0.0080657377243042,
0.008039817810058594,
0.0081038179397583,
0.008192777633666992,
0.008159977912902832,
0.008261576652526855,
0.008170058250427246,
0.008192296981811523,
0.008100457191467285,
0.008077417373657227,
0.008090377807617188,
0.00822989845275879,
0.008198858261108399,
0.008028457641601563,
0.00809677791595459,
0.008322216987609864,
0.008311017036437988,
0.008235177993774413,
0.008182697296142578,
0.00813117790222168,
0.007992138862609863,
0.008149415969848632
],
"count": 60,
"total": 0.49173880767822264,
"mean": 0.008195646794637045,
"p50": 0.00814821720123291,
"p90": 0.00840482473373413,
"p95": 0.008525072574615478,
"p99": 0.008824001359939574,
"stdev": 0.00017819612004389473,
"stdev_": 2.1742776928905756
},
"throughput": {
"unit": "tokens/s",
"value": 122.01599520545058
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.007269740104675293,
0.0073049402236938475,
0.007538539886474609,
0.00734142017364502,
0.0074084591865539555,
0.0074279789924621585,
0.00740765905380249,
0.0073433399200439455,
0.007451019763946533,
0.007353419780731201,
0.0073695797920227055,
0.0073244600296020505,
0.007311019897460937,
0.007374538898468018,
0.007319340229034424,
0.007380300045013428,
0.007298379898071289,
0.007322060108184814,
0.007364620208740234,
0.007349259853363037,
0.007308139801025391,
0.008188458442687988,
0.007855339050292969,
0.00815789794921875,
0.0075676589012146,
0.0076492600440979,
0.007665419101715088,
0.00792669916152954,
0.007820458889007568,
0.007638538837432861,
0.00766973876953125,
0.007345419883728027,
0.007376938819885254,
0.007306700229644776,
0.007293099880218506,
0.0073123002052307125,
0.007241580009460449,
0.007371339797973633,
0.007262220859527588,
0.007364620208740234,
0.007339660167694092,
0.007440939903259277,
0.007375500202178955,
0.00740765905380249,
0.007375020027160645,
0.007326700210571289,
0.007323659896850586,
0.007308619976043701,
0.007264461040496826,
0.007338059902191162,
0.007331019878387452,
0.007304780006408692,
0.00735614013671875,
0.00751133918762207,
0.007512619018554687,
0.007389100074768067,
0.00737709903717041,
0.007308939933776856,
0.007336140155792236,
0.007337739944458008
],
"count": 60,
"total": 0.4458471026420595,
"mean": 0.007430785044034323,
"p50": 0.007360380172729492,
"p90": 0.007665851068496704,
"p95": 0.007858907055854797,
"p99": 0.008170427751541138,
"stdev": 0.00019928779460246123,
"stdev_": 2.6819211351357284
},
"throughput": {
"unit": "tokens/s",
"value": 134.57528297132384
},
"energy": null,
"efficiency": null
}
}
}