IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9385d32
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": "9c5b122c5b131ce085c14c11b158b31af90e674e", | |
"transformers_version": "4.41.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1047.18336, | |
"max_global_vram": 3306.201088, | |
"max_process_vram": 255801.708544, | |
"max_reserved": 725.614592, | |
"max_allocated": 512.83456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.48350126361846923, | |
"mean": 0.00879093206579035, | |
"stdev": 0.0005947397474994762, | |
"p50": 0.0086300630569458, | |
"p90": 0.00927230110168457, | |
"p95": 0.009649996471405029, | |
"p99": 0.010706356143951417, | |
"values": [ | |
0.011578216552734374, | |
0.009697259902954102, | |
0.009412461280822754, | |
0.008639022827148438, | |
0.008468942642211914, | |
0.008337903022766113, | |
0.008541902542114259, | |
0.008442063331604004, | |
0.008486223220825196, | |
0.008926061630249024, | |
0.008707343101501465, | |
0.009034221649169921, | |
0.00996366024017334, | |
0.008510703086853028, | |
0.008705581665039062, | |
0.009629740715026855, | |
0.009270381927490235, | |
0.00924542236328125, | |
0.009204780578613281, | |
0.00925854206085205, | |
0.009216781616210937, | |
0.009236781120300293, | |
0.009248942375183105, | |
0.009273580551147461, | |
0.009268141746520997, | |
0.009267341613769532, | |
0.008953581809997559, | |
0.0086300630569458, | |
0.008134863853454589, | |
0.008526702880859376, | |
0.008407822608947754, | |
0.008423502922058106, | |
0.008176142692565919, | |
0.008577902793884278, | |
0.00835118293762207, | |
0.008375823020935058, | |
0.008410223007202148, | |
0.008449583053588868, | |
0.009242060661315919, | |
0.009239340782165527, | |
0.008987821578979493, | |
0.00876510238647461, | |
0.008768301963806152, | |
0.008657101631164552, | |
0.008391822814941406, | |
0.0083494234085083, | |
0.008302223205566407, | |
0.008320782661437988, | |
0.008215343475341797, | |
0.008298382759094239, | |
0.008217424392700194, | |
0.008172944068908691, | |
0.008235982894897461, | |
0.00818990421295166, | |
0.008157902717590333 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 227.50716136039094 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1047.18336, | |
"max_global_vram": 3306.192896, | |
"max_process_vram": 251925.929984, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.058304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.5162535181045532, | |
"mean": 0.009386427601900968, | |
"stdev": 0.0006229616342710471, | |
"p50": 0.009237421035766602, | |
"p90": 0.00991985206604004, | |
"p95": 0.009995595836639405, | |
"p99": 0.0114138169670105, | |
"values": [ | |
0.010219658851623535, | |
0.009996939659118652, | |
0.009334060668945312, | |
0.009349261283874512, | |
0.008782542228698731, | |
0.00944542121887207, | |
0.008905901908874511, | |
0.009211821556091309, | |
0.009145260810852051, | |
0.009666860580444336, | |
0.00912590217590332, | |
0.009508621215820313, | |
0.00908830165863037, | |
0.009417421340942382, | |
0.012815654754638672, | |
0.009798540115356445, | |
0.009918700218200684, | |
0.00985614013671875, | |
0.009803180694580077, | |
0.009695019721984863, | |
0.009735340118408204, | |
0.009848620414733887, | |
0.00975022029876709, | |
0.009832300186157227, | |
0.009937258720397949, | |
0.009920619964599609, | |
0.009154701232910156, | |
0.009076300621032716, | |
0.008914381980895995, | |
0.009271981239318848, | |
0.008769902229309082, | |
0.008967501640319824, | |
0.009030542373657226, | |
0.009237421035766602, | |
0.008995182037353515, | |
0.008877581596374511, | |
0.00889150333404541, | |
0.009770060539245605, | |
0.009995019912719727, | |
0.009883020401000977, | |
0.009267021179199218, | |
0.009514540672302245, | |
0.009516140937805177, | |
0.008736303329467773, | |
0.008834701538085937, | |
0.008977102279663087, | |
0.008979182243347168, | |
0.008956782341003418, | |
0.009009262084960938, | |
0.008854702949523926, | |
0.009107340812683105, | |
0.00898686122894287, | |
0.008734862327575683, | |
0.008766861915588378, | |
0.009067181587219239 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 106.53680424674846 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.9809842414855957, | |
"mean": 0.018166374842325847, | |
"stdev": 0.0009243541101000971, | |
"p50": 0.01792332363128662, | |
"p90": 0.019235546112060548, | |
"p95": 0.01949774398803711, | |
"p99": 0.020604304389953608, | |
"values": [ | |
0.019767480850219725, | |
0.01860860252380371, | |
0.01812332344055176, | |
0.017399484634399415, | |
0.01767660331726074, | |
0.01762556457519531, | |
0.017649564743041992, | |
0.017627323150634765, | |
0.018656442642211914, | |
0.017996923446655273, | |
0.018630844116210937, | |
0.019024120330810548, | |
0.018053564071655273, | |
0.021547956466674803, | |
0.01953820037841797, | |
0.019091320037841798, | |
0.019152761459350586, | |
0.019095319747924805, | |
0.019117082595825195, | |
0.018998039245605468, | |
0.019025562286376953, | |
0.019113880157470703, | |
0.019078041076660158, | |
0.019197240829467773, | |
0.019318679809570312, | |
0.018077404022216796, | |
0.0177050838470459, | |
0.017239324569702147, | |
0.01779548454284668, | |
0.017347003936767576, | |
0.017364124298095703, | |
0.01728764533996582, | |
0.01784972381591797, | |
0.017460763931274412, | |
0.017394044876098632, | |
0.01749516487121582, | |
0.018011804580688476, | |
0.019475959777832032, | |
0.019251962661743165, | |
0.01831660461425781, | |
0.018446041107177735, | |
0.018188283920288085, | |
0.017534683227539063, | |
0.01719964599609375, | |
0.017412603378295897, | |
0.017273563385009766, | |
0.017298683166503907, | |
0.017243963241577148, | |
0.017324283599853517, | |
0.017291803359985352, | |
0.017364124298095703, | |
0.016967805862426757, | |
0.01703452682495117, | |
0.017218204498291017 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 55.04675581559065 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |