IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e22390d
verified
{ | |
"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_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": "error", | |
"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.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 907.522048, | |
"max_global_vram": 1011.871744, | |
"max_process_vram": 39400.005632, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.405955078125, | |
"mean": 7.405955078125, | |
"stdev": 0.0, | |
"p50": 7.405955078125, | |
"p90": 7.405955078125, | |
"p95": 7.405955078125, | |
"p99": 7.405955078125, | |
"values": [ | |
7.405955078125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1063.022592, | |
"max_global_vram": 1107.542016, | |
"max_process_vram": 284434.898944, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5192167339324952, | |
"mean": 0.008374463450524115, | |
"stdev": 0.0016233455128275608, | |
"p50": 0.007900818347930908, | |
"p90": 0.009001413440704346, | |
"p95": 0.009301886177062988, | |
"p99": 0.014755159635543828, | |
"values": [ | |
0.009282581329345703, | |
0.009365141868591309, | |
0.009302902221679687, | |
0.009129141807556152, | |
0.009001781463623047, | |
0.008623700141906738, | |
0.007972979068756103, | |
0.007954419136047363, | |
0.007968019008636475, | |
0.00787889814376831, | |
0.008061939239501954, | |
0.011259066581726073, | |
0.00794753885269165, | |
0.020223407745361327, | |
0.007893458843231201, | |
0.007830419063568116, | |
0.007831539154052734, | |
0.007820498943328858, | |
0.007877298831939697, | |
0.007840498924255371, | |
0.00784737777709961, | |
0.007860817909240723, | |
0.007842257976531982, | |
0.007862098217010498, | |
0.007851058006286622, | |
0.007853457927703858, | |
0.007847057819366456, | |
0.007864977836608887, | |
0.007844977855682373, | |
0.007868978023529052, | |
0.007855058193206787, | |
0.007849298000335693, | |
0.007883539199829101, | |
0.007875699043273926, | |
0.00788257884979248, | |
0.007955698013305664, | |
0.007870738983154296, | |
0.007912659168243408, | |
0.007908177852630616, | |
0.007874897956848145, | |
0.00791169786453247, | |
0.007855058193206787, | |
0.007887857913970947, | |
0.008307379722595215, | |
0.00840369987487793, | |
0.008998101234436034, | |
0.008376338958740234, | |
0.008295378684997558, | |
0.008340338706970214, | |
0.00896194076538086, | |
0.008655699729919433, | |
0.008433300018310547, | |
0.00837537956237793, | |
0.008363059043884277, | |
0.008291540145874023, | |
0.008028179168701173, | |
0.007824337959289551, | |
0.007846898078918457, | |
0.007845617771148682, | |
0.007878258228302001, | |
0.007852017879486084, | |
0.00800801944732666 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 238.82127037939728 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1063.120896, | |
"max_global_vram": 1107.652608, | |
"max_process_vram": 276229.001216, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.47883088445663446, | |
"mean": 0.007723078781558621, | |
"stdev": 0.0003933768934841407, | |
"p50": 0.007529618024826049, | |
"p90": 0.008427060317993165, | |
"p95": 0.008590204381942749, | |
"p99": 0.008872896013259888, | |
"values": [ | |
0.008849620819091797, | |
0.008909300804138183, | |
0.00867986011505127, | |
0.008596500396728516, | |
0.008460339546203613, | |
0.007698738098144532, | |
0.007734578132629394, | |
0.007586897850036621, | |
0.007423057079315186, | |
0.007750898838043213, | |
0.007574097156524658, | |
0.0074934568405151366, | |
0.007376176834106445, | |
0.007481457233428955, | |
0.007439857006072998, | |
0.007445137023925782, | |
0.007455377101898193, | |
0.007504177093505859, | |
0.007412497043609619, | |
0.007452497005462647, | |
0.00744993782043457, | |
0.00739745807647705, | |
0.007548178195953369, | |
0.0074486579895019535, | |
0.00742529821395874, | |
0.0074443378448486325, | |
0.007454418182373047, | |
0.007425457000732422, | |
0.007535858154296875, | |
0.0074841780662536625, | |
0.007536498069763184, | |
0.007552338123321533, | |
0.007541457176208496, | |
0.0075070571899414065, | |
0.007503857135772705, | |
0.00764097785949707, | |
0.007522256851196289, | |
0.007510256767272949, | |
0.007454897880554199, | |
0.00748865795135498, | |
0.007524497985839844, | |
0.00747825813293457, | |
0.007922099113464356, | |
0.007934577941894531, | |
0.008425620079040528, | |
0.008353618621826172, | |
0.007832658767700196, | |
0.007936018943786621, | |
0.008427220344543457, | |
0.008470580101013184, | |
0.007907858848571777, | |
0.007929937839508057, | |
0.007997939109802246, | |
0.00799937915802002, | |
0.007872337818145753, | |
0.007489138126373291, | |
0.007528178215026856, | |
0.007421136856079102, | |
0.007499698162078857, | |
0.007531057834625244, | |
0.007483057975769043, | |
0.0076694579124450685 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 129.48204055458135 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.44689016675949095, | |
"mean": 0.00720790591547566, | |
"stdev": 0.0003680110556079708, | |
"p50": 0.007009135961532593, | |
"p90": 0.00790126600265503, | |
"p95": 0.008031603145599364, | |
"p99": 0.008232615242004394, | |
"values": [ | |
0.00821090030670166, | |
0.008266579627990723, | |
0.008088019371032715, | |
0.008037299156188964, | |
0.007923378944396972, | |
0.007134097099304199, | |
0.007162416934967041, | |
0.00706145715713501, | |
0.0069572958946228025, | |
0.007236816883087158, | |
0.007076975822448731, | |
0.007008016109466553, | |
0.006916175842285157, | |
0.007001296043395996, | |
0.006940656185150147, | |
0.006957615852355957, | |
0.006964816093444824, | |
0.0070161762237548825, | |
0.006923056125640869, | |
0.006964335918426514, | |
0.006937936782836914, | |
0.006924817085266113, | |
0.007077937126159668, | |
0.006968976974487305, | |
0.006937936782836914, | |
0.006965456962585449, | |
0.006965456008911133, | |
0.006961935997009277, | |
0.006996496200561524, | |
0.006981455802917481, | |
0.007000176906585693, | |
0.007020816802978515, | |
0.0070099358558654784, | |
0.00698689603805542, | |
0.007008336067199707, | |
0.007127696990966797, | |
0.007039055824279785, | |
0.007012495994567871, | |
0.006996496200561524, | |
0.006987696170806885, | |
0.006984976768493653, | |
0.006968817234039307, | |
0.007388658046722412, | |
0.00743537712097168, | |
0.007902577877044677, | |
0.007825778007507325, | |
0.007338097095489502, | |
0.007454576969146728, | |
0.007889459133148194, | |
0.007914258956909179, | |
0.007363858222961425, | |
0.007413776874542236, | |
0.007484976768493652, | |
0.007503057956695557, | |
0.0073436970710754395, | |
0.006982096195220947, | |
0.006986576080322266, | |
0.00695633602142334, | |
0.006933616161346435, | |
0.0069921760559082035, | |
0.006960336208343506, | |
0.007111695766448975 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.7365500780137 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |