IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a2c8209
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+rocm6.1", | |
"_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": "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.34.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"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": 1391.12448, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.95242822265625, | |
"mean": 7.95242822265625, | |
"stdev": 0.0, | |
"p50": 7.95242822265625, | |
"p90": 7.95242822265625, | |
"p95": 7.95242822265625, | |
"p99": 7.95242822265625, | |
"values": [ | |
7.95242822265625 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1550.290944, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.4985686511993408, | |
"mean": 0.008309477519989013, | |
"stdev": 0.0015998726606334397, | |
"p50": 0.008031014442443848, | |
"p90": 0.008474404621124268, | |
"p95": 0.008659500551223755, | |
"p99": 0.0135328164196014, | |
"values": [ | |
0.008687811851501465, | |
0.008595973014831544, | |
0.008658852577209473, | |
0.008437092781066895, | |
0.008472772598266601, | |
0.008241414070129394, | |
0.008187653541564942, | |
0.008117894172668456, | |
0.008112613677978515, | |
0.007990214824676514, | |
0.02050489616394043, | |
0.008489092826843262, | |
0.008088615417480469, | |
0.008076614379882812, | |
0.008002374649047852, | |
0.007984454154968262, | |
0.00791357421875, | |
0.007971974849700927, | |
0.00823197364807129, | |
0.008030694007873535, | |
0.0080116548538208, | |
0.007987814903259277, | |
0.008049894332885742, | |
0.008070693969726563, | |
0.00808237361907959, | |
0.008030373573303223, | |
0.008671812057495117, | |
0.008308134078979491, | |
0.008178693771362305, | |
0.008120614051818848, | |
0.008041733741760254, | |
0.008211494445800781, | |
0.0081460542678833, | |
0.008152294158935546, | |
0.00811181354522705, | |
0.00803133487701416, | |
0.008036133766174316, | |
0.007968774795532227, | |
0.007981733798980713, | |
0.007960774898529054, | |
0.007883015155792237, | |
0.007905574798583984, | |
0.00793549394607544, | |
0.008252134323120117, | |
0.008089573860168457, | |
0.008002855300903321, | |
0.007996135234832764, | |
0.007975975036621093, | |
0.00800253391265869, | |
0.007968935012817382, | |
0.007971653938293457, | |
0.007966694831848144, | |
0.00795533514022827, | |
0.007945254802703857, | |
0.00800205421447754, | |
0.007964293956756591, | |
0.007950854778289796, | |
0.007979815006256103, | |
0.007942854881286621, | |
0.007926854133605957 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 240.6890198798738 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1550.303232, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.5018215951919555, | |
"mean": 0.008363693253199257, | |
"stdev": 0.00023371302048104796, | |
"p50": 0.008280773162841797, | |
"p90": 0.008562756824493409, | |
"p95": 0.00871258020401001, | |
"p99": 0.009197367668151853, | |
"values": [ | |
0.0089380521774292, | |
0.008936930656433105, | |
0.008700772285461426, | |
0.008666851997375487, | |
0.008551652908325196, | |
0.008416933059692383, | |
0.008384773254394531, | |
0.008300933837890625, | |
0.008269892692565919, | |
0.008483972549438477, | |
0.009570528984069824, | |
0.008351332664489746, | |
0.008346532821655274, | |
0.008249094009399414, | |
0.008236933708190917, | |
0.008214214324951171, | |
0.008194053649902344, | |
0.00839581298828125, | |
0.008262052536010742, | |
0.008196293830871582, | |
0.008205573081970214, | |
0.008386053085327149, | |
0.00850765323638916, | |
0.008242374420166015, | |
0.00818221378326416, | |
0.008224134445190429, | |
0.008662692070007324, | |
0.008467972755432129, | |
0.008270374298095703, | |
0.00832701301574707, | |
0.008336934089660644, | |
0.008415332794189453, | |
0.00852573299407959, | |
0.008464292526245117, | |
0.00835549259185791, | |
0.008448613166809083, | |
0.00828109359741211, | |
0.008229413986206054, | |
0.008154693603515626, | |
0.008186532974243163, | |
0.008177094459533692, | |
0.008125094413757325, | |
0.008466532707214355, | |
0.008440133094787597, | |
0.008322853088378906, | |
0.00825277328491211, | |
0.008191973686218261, | |
0.008199494361877441, | |
0.00836285400390625, | |
0.008214694023132324, | |
0.008181894302368164, | |
0.008216612815856934, | |
0.008207653999328613, | |
0.008208133697509766, | |
0.008222053527832032, | |
0.00823389434814453, | |
0.008216134071350098, | |
0.008257094383239747, | |
0.008280452728271484, | |
0.008502372741699219 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 119.56440411267866 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.4701189770698546, | |
"mean": 0.007835316284497578, | |
"stdev": 0.00019680024955953969, | |
"p50": 0.007772135019302368, | |
"p90": 0.008014487171173095, | |
"p95": 0.008110805892944335, | |
"p99": 0.008533227443695066, | |
"values": [ | |
0.008308613777160644, | |
0.008286212921142578, | |
0.008101573944091797, | |
0.008070054054260254, | |
0.00798141384124756, | |
0.00788829517364502, | |
0.007827815055847167, | |
0.007771814823150635, | |
0.007751015186309815, | |
0.007962374210357667, | |
0.008856451988220215, | |
0.00781357479095459, | |
0.007812934875488281, | |
0.007745094776153564, | |
0.007702535152435303, | |
0.007709895133972168, | |
0.007693895816802979, | |
0.007826535224914551, | |
0.007725415229797364, | |
0.007687016010284424, | |
0.007688135147094727, | |
0.007851335048675537, | |
0.00796477508544922, | |
0.007730694770812988, | |
0.007678534984588623, | |
0.007711335182189942, | |
0.008068774223327637, | |
0.007905573844909667, | |
0.007763656139373779, | |
0.007798534870147705, | |
0.007806536197662354, | |
0.007871173858642578, | |
0.007988934993743896, | |
0.007950375080108643, | |
0.007847175121307374, | |
0.007931973934173584, | |
0.007772455215454102, | |
0.007714855194091797, | |
0.00764797592163086, | |
0.007687815189361572, | |
0.007674215793609619, | |
0.007623974800109863, | |
0.007939175128936767, | |
0.007928773880004883, | |
0.007817255020141602, | |
0.00773869514465332, | |
0.007702215194702149, | |
0.007706055164337158, | |
0.007853575229644775, | |
0.007711655139923096, | |
0.007680456161499024, | |
0.007713574886322022, | |
0.007688135147094727, | |
0.007713255882263184, | |
0.007720136165618897, | |
0.0077289361953735355, | |
0.007723175048828125, | |
0.007766214847564698, | |
0.007777894973754883, | |
0.008008455276489258 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 127.62726655700315 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |