IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9f4f6b6
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": "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": "88e73025c13ec1a964328bd3aa8fa3b1b8ab2582", | |
"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.86272, | |
"max_global_vram": 1107.546112, | |
"max_process_vram": 241343.025152, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 65, | |
"total": 0.5163975925445556, | |
"mean": 0.007944578346839317, | |
"stdev": 0.0009825618085995305, | |
"p50": 0.0077545599937438965, | |
"p90": 0.008092192268371582, | |
"p95": 0.00828995189666748, | |
"p99": 0.011302662734985347, | |
"values": [ | |
0.01563920021057129, | |
0.007828479766845703, | |
0.007855359077453614, | |
0.007824639797210693, | |
0.007768320083618164, | |
0.0077545599937438965, | |
0.007817439079284668, | |
0.00782144021987915, | |
0.00781983995437622, | |
0.00782863998413086, | |
0.007872159957885743, | |
0.007828000068664551, | |
0.00790447998046875, | |
0.00797327995300293, | |
0.007894239902496337, | |
0.00782528018951416, | |
0.007862400054931641, | |
0.007892960071563721, | |
0.008863360404968261, | |
0.00790127992630005, | |
0.007719840049743652, | |
0.00780079984664917, | |
0.007716320037841797, | |
0.007716958999633789, | |
0.007717120170593262, | |
0.007696640014648437, | |
0.007719520092010498, | |
0.007698079109191894, | |
0.007713280200958252, | |
0.007715839862823487, | |
0.007681600093841553, | |
0.007722239971160888, | |
0.007689119815826416, | |
0.007714399814605713, | |
0.00771343994140625, | |
0.007692480087280273, | |
0.007880799770355225, | |
0.007693120002746582, | |
0.007698880195617676, | |
0.007972799777984619, | |
0.008103039741516114, | |
0.008239520072937013, | |
0.008097760200500488, | |
0.008083840370178223, | |
0.008359198570251464, | |
0.008302559852600097, | |
0.00790496015548706, | |
0.007878079891204834, | |
0.007809759140014649, | |
0.007728799819946289, | |
0.007668799877166748, | |
0.00770911979675293, | |
0.007676798820495606, | |
0.0076902399063110355, | |
0.007903840065002441, | |
0.007672800064086914, | |
0.007663680076599121, | |
0.007694079875946045, | |
0.00766431999206543, | |
0.007687839984893799, | |
0.007691679954528808, | |
0.0076743998527526855, | |
0.0076763200759887695, | |
0.007702879905700684, | |
0.007664639949798584 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 251.74400864152634 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1048.86272, | |
"max_global_vram": 1107.53792, | |
"max_process_vram": 225835.036672, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 65, | |
"total": 0.48887598991394055, | |
"mean": 0.007521169075599084, | |
"stdev": 0.0003763639788376211, | |
"p50": 0.00743552017211914, | |
"p90": 0.007669696140289307, | |
"p95": 0.0077675838470458985, | |
"p99": 0.00877142967224121, | |
"values": [ | |
0.01037183952331543, | |
0.007521279811859131, | |
0.007409440040588379, | |
0.007405439853668213, | |
0.007390880107879639, | |
0.00743936014175415, | |
0.0074345598220825196, | |
0.007417280197143555, | |
0.00744543981552124, | |
0.007484640121459961, | |
0.007425279140472412, | |
0.007414239883422852, | |
0.007460800170898438, | |
0.00743552017211914, | |
0.0075742387771606445, | |
0.00766864013671875, | |
0.007474559783935547, | |
0.007487040042877197, | |
0.007871199131011962, | |
0.007383039951324463, | |
0.0075318398475646975, | |
0.007327839851379394, | |
0.007391039848327637, | |
0.007336160182952881, | |
0.00736575984954834, | |
0.0074481601715087895, | |
0.007395679950714111, | |
0.007392320156097412, | |
0.007387199878692627, | |
0.007415679931640625, | |
0.007376480102539063, | |
0.007378559112548828, | |
0.0074561600685119625, | |
0.007397600173950195, | |
0.007414400100708008, | |
0.007410239219665527, | |
0.007616159915924073, | |
0.007376959800720215, | |
0.007547039985656739, | |
0.007824479103088379, | |
0.0076315197944641115, | |
0.007670400142669678, | |
0.007723840236663818, | |
0.0077740797996520995, | |
0.007741600036621094, | |
0.007551839828491211, | |
0.007600319862365723, | |
0.007610400199890136, | |
0.007501760005950928, | |
0.007494080066680908, | |
0.00737663984298706, | |
0.007549600124359131, | |
0.007312160015106201, | |
0.0073827199935913084, | |
0.007349440097808838, | |
0.007392960071563721, | |
0.007475998878479004, | |
0.007395999908447266, | |
0.00738431978225708, | |
0.007420159816741943, | |
0.007452639102935791, | |
0.007458240032196045, | |
0.007383200168609619, | |
0.007425600051879882, | |
0.007511998176574707 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.95805345531966 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.9816087818145751, | |
"mean": 0.015337637215852738, | |
"stdev": 0.0003005180037101079, | |
"p50": 0.015244400024414063, | |
"p90": 0.01581836748123169, | |
"p95": 0.015880624198913576, | |
"p99": 0.01637363670349121, | |
"values": [ | |
0.015378239631652833, | |
0.015316799163818359, | |
0.015300000190734863, | |
0.015182399749755859, | |
0.015187199592590333, | |
0.015292478561401366, | |
0.015291040420532226, | |
0.01530239963531494, | |
0.015330400466918945, | |
0.015358558654785156, | |
0.015258879661560058, | |
0.01539136028289795, | |
0.015468640327453613, | |
0.015452158927917481, | |
0.015592639923095702, | |
0.015326239585876466, | |
0.015436320304870606, | |
0.01674175834655762, | |
0.015360159873962402, | |
0.015245280265808105, | |
0.015243519783020019, | |
0.015101119995117188, | |
0.015132319450378419, | |
0.015097760200500488, | |
0.015220479965209961, | |
0.015090080261230468, | |
0.015158079147338866, | |
0.015118720054626465, | |
0.015149600028991699, | |
0.01508784008026123, | |
0.015126399040222168, | |
0.015179519653320312, | |
0.015158559799194336, | |
0.015187840461730957, | |
0.015115678787231445, | |
0.01553983974456787, | |
0.015120320320129395, | |
0.015270400047302245, | |
0.015853599548339845, | |
0.015736159324645997, | |
0.015904959678649903, | |
0.01587600040435791, | |
0.015875359535217286, | |
0.016157438278198242, | |
0.015881440162658692, | |
0.015581279754638673, | |
0.015515199661254883, | |
0.01532063865661621, | |
0.0152675199508667, | |
0.0151310396194458, | |
0.01521407985687256, | |
0.015145599365234375, | |
0.01504736042022705, | |
0.015324640274047851, | |
0.01510591983795166, | |
0.015159198760986328, | |
0.015119839668273925, | |
0.015108799934387207, | |
0.015134079933166504, | |
0.015156478881835937, | |
0.015153759956359864, | |
0.015143839836120606, | |
0.015153759956359864, | |
0.01522976016998291 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 65.19909070260287 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |