IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1c053c7
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": "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.3.1", | |
"optimum_benchmark_commit": "4f83ff1670dec8f273c8beb893e9243ca1209582", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"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": 1053.831168, | |
"max_global_vram": 1107.492864, | |
"max_process_vram": 262650.925056, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5059475173950194, | |
"mean": 0.008160443828951928, | |
"stdev": 0.0005160749831251589, | |
"p50": 0.00789006233215332, | |
"p90": 0.008807788181304932, | |
"p95": 0.009139603805541992, | |
"p99": 0.010087424364089966, | |
"values": [ | |
0.010222697257995605, | |
0.009019980430603028, | |
0.009380298614501953, | |
0.009145899772644043, | |
0.008751020431518555, | |
0.00845118236541748, | |
0.008335982322692871, | |
0.008263980865478516, | |
0.00838606071472168, | |
0.008380460739135741, | |
0.008323981285095214, | |
0.008346381187438965, | |
0.008795980453491212, | |
0.010000938415527344, | |
0.008091181755065917, | |
0.007905742168426514, | |
0.007873422145843505, | |
0.007902701854705811, | |
0.007866383075714111, | |
0.007853423118591309, | |
0.007868143081665039, | |
0.00786750316619873, | |
0.007861742973327637, | |
0.007847183227539063, | |
0.00784734296798706, | |
0.007874542236328125, | |
0.007873901844024658, | |
0.00786382293701172, | |
0.00787742280960083, | |
0.007904623031616211, | |
0.00794526195526123, | |
0.007892141819000244, | |
0.007897263050079345, | |
0.007887982845306396, | |
0.00787438201904297, | |
0.007902542114257812, | |
0.007900462150573731, | |
0.007840143203735352, | |
0.007837903022766114, | |
0.007879662990570068, | |
0.007884302139282227, | |
0.007850381851196289, | |
0.007858861923217773, | |
0.007880622863769532, | |
0.008053901672363282, | |
0.0087606201171875, | |
0.008809100151062012, | |
0.008823180198669433, | |
0.008318222045898438, | |
0.008237261772155762, | |
0.007838383197784423, | |
0.007840621948242187, | |
0.007875021934509277, | |
0.007860301971435547, | |
0.007827022075653077, | |
0.007842543125152588, | |
0.007827982902526856, | |
0.007857422828674316, | |
0.007819023132324219, | |
0.007847823143005372, | |
0.008092942237854004, | |
0.00810030174255371 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 245.08470886158486 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1053.831168, | |
"max_global_vram": 1107.488768, | |
"max_process_vram": 281065.59488, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5048235321044922, | |
"mean": 0.008142315033943422, | |
"stdev": 0.0003059660680466049, | |
"p50": 0.008021903038024903, | |
"p90": 0.008550797271728515, | |
"p95": 0.008840221023559571, | |
"p99": 0.009020514287948608, | |
"values": [ | |
0.00859278106689453, | |
0.009040619850158691, | |
0.009007659912109375, | |
0.008765741348266602, | |
0.008554381370544433, | |
0.008247502326965332, | |
0.008177581787109376, | |
0.008390381813049316, | |
0.008408461570739746, | |
0.008334542274475098, | |
0.008300782203674317, | |
0.008490861892700196, | |
0.00839118194580078, | |
0.00890510082244873, | |
0.00806046199798584, | |
0.008024143218994141, | |
0.007860783100128175, | |
0.007878862857818603, | |
0.008011981964111329, | |
0.007962862014770507, | |
0.007876942157745362, | |
0.007986701965332032, | |
0.007895981788635254, | |
0.007903501987457276, | |
0.008123982429504394, | |
0.008034222602844239, | |
0.008071822166442871, | |
0.00785982322692871, | |
0.007847023010253907, | |
0.007864303112030029, | |
0.007886542797088622, | |
0.008011502265930176, | |
0.008017742156982421, | |
0.00802542209625244, | |
0.007960302829742432, | |
0.007973583221435546, | |
0.00805934238433838, | |
0.00806318187713623, | |
0.00808126163482666, | |
0.007970861911773682, | |
0.008019662857055665, | |
0.007817583084106445, | |
0.007915183067321778, | |
0.00801406192779541, | |
0.008322381973266601, | |
0.008300782203674317, | |
0.008844141006469727, | |
0.008300461769104005, | |
0.008276781082153321, | |
0.008343341827392579, | |
0.007928302764892578, | |
0.0079740629196167, | |
0.00792158317565918, | |
0.007795662879943848, | |
0.007798862934112549, | |
0.007945422172546387, | |
0.007917421817779541, | |
0.00798398208618164, | |
0.007839982032775878, | |
0.008518540382385253, | |
0.008235502243041991, | |
0.007889102935791016 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 122.81519393823895 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.454523962020874, | |
"mean": 0.007331031645497968, | |
"stdev": 0.0002888607073520212, | |
"p50": 0.007177984476089477, | |
"p90": 0.007652030992507935, | |
"p95": 0.007990437865257263, | |
"p99": 0.008209170513153076, | |
"values": [ | |
0.007842382907867432, | |
0.008232301712036132, | |
0.008194381713867188, | |
0.007993261814117431, | |
0.007626543998718262, | |
0.007487183094024658, | |
0.007407023906707764, | |
0.007481904029846192, | |
0.007544464111328125, | |
0.007457263946533203, | |
0.007448624134063721, | |
0.007621103763580322, | |
0.007556622982025147, | |
0.008120302200317384, | |
0.007166224002838135, | |
0.007167345046997071, | |
0.0071460652351379396, | |
0.00713790512084961, | |
0.0071646242141723635, | |
0.0071287841796875, | |
0.007111023902893066, | |
0.007118383884429932, | |
0.007145103931427002, | |
0.00711294412612915, | |
0.007356304168701172, | |
0.007214384078979492, | |
0.007197103977203369, | |
0.007108943939208984, | |
0.007159823894500732, | |
0.007137423992156983, | |
0.007087344169616699, | |
0.007111184120178223, | |
0.007197264194488525, | |
0.007211184024810791, | |
0.0071374249458312986, | |
0.0071755051612854, | |
0.007180463790893554, | |
0.0071633439064025875, | |
0.007215824127197266, | |
0.007120143890380859, | |
0.007162545204162598, | |
0.007160305023193359, | |
0.007089105129241944, | |
0.0071387038230896, | |
0.007418223857879639, | |
0.007431503772735596, | |
0.007936782836914062, | |
0.007517263889312744, | |
0.007484142780303955, | |
0.007516303062438965, | |
0.0071327838897705075, | |
0.0072195038795471195, | |
0.007128143787384033, | |
0.007119824886322021, | |
0.007108624935150147, | |
0.007117263793945313, | |
0.007131184101104736, | |
0.0071180639266967775, | |
0.007121903896331787, | |
0.007654862880706787, | |
0.0074068641662597655, | |
0.007224624156951904 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 136.40644978174473 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |