IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
022d6b8
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": "9a8b29987613b8b04c221447a49b37ee314548ff", | |
"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.4736, | |
"max_global_vram": 1108.107264, | |
"max_process_vram": 265574.260736, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.5235039882659911, | |
"mean": 0.009184280495894582, | |
"stdev": 0.000607815465618184, | |
"p50": 0.009090112686157227, | |
"p90": 0.009714627075195312, | |
"p95": 0.010002180099487303, | |
"p99": 0.01130628768920898, | |
"values": [ | |
0.01264500617980957, | |
0.009952515602111816, | |
0.010200838088989257, | |
0.010254437446594239, | |
0.009603395462036132, | |
0.009549955368041992, | |
0.009695875167846679, | |
0.009576515197753906, | |
0.009323233604431153, | |
0.009742754936218262, | |
0.009459874153137208, | |
0.009359554290771484, | |
0.0097885160446167, | |
0.009671074867248535, | |
0.00934083366394043, | |
0.00914051342010498, | |
0.009090112686157227, | |
0.00903731346130371, | |
0.009173953056335449, | |
0.0092779541015625, | |
0.00922115421295166, | |
0.009232192993164063, | |
0.00925843334197998, | |
0.009160673141479492, | |
0.009113312721252442, | |
0.009121474266052245, | |
0.009431074142456055, | |
0.009349953651428223, | |
0.009202273368835449, | |
0.008975393295288086, | |
0.008890111923217774, | |
0.008836511611938477, | |
0.008780351638793945, | |
0.008771712303161622, | |
0.008769791603088379, | |
0.008756192207336425, | |
0.008750592231750488, | |
0.008776512145996094, | |
0.008773152351379394, | |
0.008814751625061035, | |
0.008810272216796875, | |
0.008828512191772461, | |
0.008786751747131347, | |
0.0088603515625, | |
0.00884435272216797, | |
0.009299873352050781, | |
0.008747871398925782, | |
0.008759712219238281, | |
0.008761152267456055, | |
0.008742752075195313, | |
0.00875331211090088, | |
0.008730912208557129, | |
0.008723551750183106, | |
0.008757792472839355, | |
0.008763392448425293, | |
0.008730112075805664, | |
0.008733471870422364 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 217.76338395740524 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1048.743936, | |
"max_global_vram": 1108.103168, | |
"max_process_vram": 269451.214848, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.4900481843948366, | |
"mean": 0.008597336568330465, | |
"stdev": 0.00039231663146501843, | |
"p50": 0.008473791122436524, | |
"p90": 0.009097601127624512, | |
"p95": 0.009305345726013183, | |
"p99": 0.009928131675720214, | |
"values": [ | |
0.009998915672302246, | |
0.009872515678405762, | |
0.009359873771667481, | |
0.009291713714599609, | |
0.009040833473205567, | |
0.008857631683349609, | |
0.008995232582092285, | |
0.008775712013244629, | |
0.00918179416656494, | |
0.008869313240051269, | |
0.008674912452697754, | |
0.009009153366088866, | |
0.00921875286102295, | |
0.008718432426452637, | |
0.008599552154541015, | |
0.008507551193237305, | |
0.008498910903930665, | |
0.008372671127319336, | |
0.008859711647033692, | |
0.00853011131286621, | |
0.008646430969238282, | |
0.008629952430725098, | |
0.00855843162536621, | |
0.008496830940246582, | |
0.008514591217041016, | |
0.009041472434997559, | |
0.008612191200256348, | |
0.008819232940673829, | |
0.008435070991516113, | |
0.008310270309448243, | |
0.008344831466674805, | |
0.008310270309448243, | |
0.00829171085357666, | |
0.008250269889831543, | |
0.008270910263061523, | |
0.008282110214233399, | |
0.008297309875488282, | |
0.00829026985168457, | |
0.008564190864562988, | |
0.008314909934997559, | |
0.008304829597473145, | |
0.008313791275024414, | |
0.008473791122436524, | |
0.008342909812927245, | |
0.008450590133666992, | |
0.008289629936218262, | |
0.00829939079284668, | |
0.008272669792175292, | |
0.008292189598083496, | |
0.008329629898071289, | |
0.008279230117797852, | |
0.008431230545043945, | |
0.008274589538574219, | |
0.008331870079040527, | |
0.008283709526062012, | |
0.008273309707641601, | |
0.008290268898010255 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 116.31509270948457 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.9934737110137939, | |
"mean": 0.017740601982389175, | |
"stdev": 0.000727736821720229, | |
"p50": 0.017543824195861816, | |
"p90": 0.01872782802581787, | |
"p95": 0.019214670658111572, | |
"p99": 0.01972384843826294, | |
"values": [ | |
0.019772071838378907, | |
0.019682792663574217, | |
0.019684392929077147, | |
0.01871078872680664, | |
0.01845254707336426, | |
0.018745508193969727, | |
0.018462627410888673, | |
0.018390308380126952, | |
0.018744867324829103, | |
0.01823590660095215, | |
0.01836678886413574, | |
0.019058629989624022, | |
0.018509828567504882, | |
0.017991264343261718, | |
0.017724544525146484, | |
0.017631103515625, | |
0.017456544876098632, | |
0.018016223907470704, | |
0.017888864517211913, | |
0.017912063598632812, | |
0.01788870429992676, | |
0.017890464782714843, | |
0.01772598457336426, | |
0.0176661434173584, | |
0.018113826751708983, | |
0.01817526626586914, | |
0.018179906845092773, | |
0.017761503219604492, | |
0.017355424880981445, | |
0.017262624740600585, | |
0.01718246269226074, | |
0.017110624313354493, | |
0.01707126235961914, | |
0.01708150291442871, | |
0.017061981201171875, | |
0.017078941345214843, | |
0.017108381271362303, | |
0.01736390495300293, | |
0.017181184768676756, | |
0.017140222549438477, | |
0.01721062469482422, | |
0.017250783920288087, | |
0.017264381408691406, | |
0.01731590461730957, | |
0.017645824432373048, | |
0.01708854293823242, | |
0.01706182289123535, | |
0.017085981369018555, | |
0.017115741729736327, | |
0.017055261611938478, | |
0.01719718360900879, | |
0.017046142578125, | |
0.017125022888183593, | |
0.01706982231140137, | |
0.017048381805419923, | |
0.017054302215576172 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 56.36787302892454 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |