IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4969406
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": "074fc31a7e13e70facbebbf8b363a0c312f75f69", | |
"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": 1051.136, | |
"max_global_vram": 1107.51744, | |
"max_process_vram": 238430.212096, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.5126005516052246, | |
"mean": 0.008403287731233191, | |
"stdev": 0.00031360517079430665, | |
"p50": 0.00824987506866455, | |
"p90": 0.008699631690979004, | |
"p95": 0.008806672096252442, | |
"p99": 0.00961322727203369, | |
"values": [ | |
0.010083145141601562, | |
0.008806672096252442, | |
0.008885870933532715, | |
0.008793552398681641, | |
0.008604752540588378, | |
0.008524593353271484, | |
0.008517072677612305, | |
0.008638993263244629, | |
0.008553712844848634, | |
0.00849467372894287, | |
0.008541393280029296, | |
0.008694992065429688, | |
0.008573232650756836, | |
0.00835771369934082, | |
0.008216114997863769, | |
0.008198675155639648, | |
0.008238195419311523, | |
0.008213234901428222, | |
0.008225395202636718, | |
0.00826347541809082, | |
0.00821339511871338, | |
0.008226354598999024, | |
0.00826027488708496, | |
0.008230355262756348, | |
0.008248595237731934, | |
0.008233075141906738, | |
0.008257875442504883, | |
0.008212274551391601, | |
0.008241074562072754, | |
0.008242514610290528, | |
0.008242995262145995, | |
0.008242034912109375, | |
0.008209554672241211, | |
0.008215154647827148, | |
0.008276274681091308, | |
0.008262834548950194, | |
0.008215635299682618, | |
0.008265554428100586, | |
0.008222834587097168, | |
0.008275955200195313, | |
0.008803151130676269, | |
0.009299948692321777, | |
0.008594033241271972, | |
0.00860027313232422, | |
0.008681551933288574, | |
0.008699631690979004, | |
0.008360274314880371, | |
0.008312435150146484, | |
0.008244435310363769, | |
0.008218674659729005, | |
0.008212594985961915, | |
0.008219155311584472, | |
0.00824459457397461, | |
0.008249714851379394, | |
0.008224274635314941, | |
0.008246994972229004, | |
0.00824987506866455, | |
0.00831995391845703, | |
0.00819979476928711, | |
0.008201395034790039, | |
0.008197714805603027 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 238.0020848942772 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1051.136, | |
"max_global_vram": 1107.525632, | |
"max_process_vram": 223891.808256, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.4930440230369569, | |
"mean": 0.008082688902245193, | |
"stdev": 0.0004787741863612726, | |
"p50": 0.007933075904846192, | |
"p90": 0.008288755416870117, | |
"p95": 0.008442354202270509, | |
"p99": 0.009805673980712887, | |
"values": [ | |
0.008699312210083007, | |
0.008442354202270509, | |
0.008424914360046387, | |
0.008275954246520997, | |
0.008219155311584472, | |
0.0080765962600708, | |
0.008129555702209473, | |
0.008235955238342285, | |
0.008149076461791992, | |
0.0081445951461792, | |
0.008288755416870117, | |
0.011465216636657715, | |
0.00794715690612793, | |
0.007872117042541505, | |
0.007932916164398193, | |
0.007860756874084473, | |
0.007910356998443604, | |
0.007988595962524414, | |
0.007898996829986573, | |
0.007877717018127442, | |
0.00789307689666748, | |
0.007932435989379883, | |
0.00790459680557251, | |
0.008144435882568359, | |
0.007983635902404786, | |
0.007925236225128173, | |
0.007912597179412843, | |
0.007889556884765624, | |
0.007906836986541748, | |
0.007923635959625244, | |
0.007907156944274902, | |
0.007941397190093994, | |
0.007911797046661378, | |
0.007945237159729003, | |
0.007951796054840088, | |
0.007933075904846192, | |
0.007891797065734863, | |
0.008017236709594727, | |
0.007890996932983398, | |
0.00784667682647705, | |
0.008642192840576171, | |
0.008217394828796387, | |
0.008147954940795898, | |
0.008258515357971192, | |
0.00826027488708496, | |
0.008411634445190429, | |
0.00802763557434082, | |
0.00781883716583252, | |
0.00791835594177246, | |
0.007908116817474366, | |
0.008006356239318847, | |
0.007939796924591064, | |
0.007908277034759522, | |
0.007938995838165283, | |
0.007875796794891357, | |
0.007897396087646485, | |
0.007871636867523193, | |
0.00783195686340332, | |
0.00787019681930542, | |
0.007915956020355224, | |
0.007883477210998534 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 123.72120368535056 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.9889862613677978, | |
"mean": 0.016483104356129964, | |
"stdev": 0.0006110984630012372, | |
"p50": 0.016218470573425292, | |
"p90": 0.01712597007751465, | |
"p95": 0.017326335620880127, | |
"p99": 0.01863036542892455, | |
"values": [ | |
0.01729318428039551, | |
0.017323583602905274, | |
0.017176225662231447, | |
0.016858787536621095, | |
0.016656389236450197, | |
0.016672548294067384, | |
0.016930627822875976, | |
0.016730308532714844, | |
0.016669187545776367, | |
0.01685942840576172, | |
0.020137170791625976, | |
0.016645349502563477, | |
0.01628295135498047, | |
0.016134471893310548, | |
0.016166791915893555, | |
0.01613639259338379, | |
0.01623895072937012, | |
0.01615239143371582, | |
0.01619367027282715, | |
0.016133832931518554, | |
0.016163270950317384, | |
0.01622359275817871, | |
0.01638887023925781, | |
0.016286470413208007, | |
0.01615431022644043, | |
0.016235271453857423, | |
0.01611815071105957, | |
0.01619687271118164, | |
0.016175590515136718, | |
0.016202152252197264, | |
0.01617159080505371, | |
0.016179752349853516, | |
0.016207590103149414, | |
0.016250471115112304, | |
0.016220870971679686, | |
0.01616471290588379, | |
0.016307750701904298, | |
0.016165510177612304, | |
0.016203750610351564, | |
0.017378623962402345, | |
0.017583263397216796, | |
0.016783267974853515, | |
0.016941987991333007, | |
0.016940547943115235, | |
0.017120386123657228, | |
0.016376230239868166, | |
0.01627975082397461, | |
0.016122631072998047, | |
0.016155271530151366, | |
0.016277191162109374, | |
0.016138792037963867, | |
0.016204071044921876, | |
0.01619175148010254, | |
0.016185991287231444, | |
0.016191110610961915, | |
0.016142471313476563, | |
0.016216070175170898, | |
0.016085031509399415, | |
0.016114631652832032, | |
0.01614839172363281 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 60.66818351654167 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |