{ "config": { "name": "cuda_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cu121", "_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": true, "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", "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7R32", "cpu_count": 16, "cpu_ram_mb": 66697.29792, "system": "Linux", "machine": "x86_64", "platform": "Linux-5.10.215-203.850.amzn2.x86_64-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.12", "gpu": [ "NVIDIA A10G" ], "gpu_count": 1, "gpu_vram_mb": 24146608128, "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": null, "transformers_version": "4.40.2", "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": 1087.684608, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.007552 }, "latency": { "unit": "s", "count": 54, "total": 0.49054825973510735, "mean": 0.009084227032131617, "stdev": 0.0003686174622490919, "p50": 0.009014544010162353, "p90": 0.009477856159210206, "p95": 0.009733108901977537, "p99": 0.009999635238647461, "values": [ 0.009975872039794921, 0.009279552459716798, 0.009173312187194825, 0.0091561279296875, 0.008910976409912109, 0.00887622356414795, 0.008838496208190917, 0.009023232460021973, 0.00923519992828369, 0.009306719779968262, 0.009459232330322266, 0.00995356845855713, 0.009387264251708985, 0.009238944053649903, 0.010026432037353516, 0.008950976371765137, 0.009475616455078125, 0.009478816032409668, 0.009280832290649414, 0.009382944107055664, 0.008867039680480956, 0.008847647666931153, 0.009005855560302735, 0.008725024223327637, 0.009354911804199218, 0.009333248138427735, 0.009614399909973145, 0.00952889633178711, 0.009348416328430175, 0.009335552215576172, 0.009153247833251953, 0.009177248001098632, 0.009298848152160645, 0.009238240242004394, 0.009329824447631837, 0.008951647758483887, 0.008797632217407227, 0.008824352264404298, 0.008718720436096191, 0.008783295631408691, 0.008291104316711425, 0.008396287918090821, 0.008580896377563476, 0.008805120468139648, 0.008866720199584961, 0.00885324764251709, 0.00873366355895996, 0.00877558422088623, 0.00871292781829834, 0.008744832038879394, 0.008966655731201171, 0.008722623825073243, 0.008697919845581055, 0.008756287574768066 ] }, "throughput": { "unit": "tokens/s", "value": 220.16182476790206 }, "energy": { "unit": "kWh", "cpu": 1.0575116538102666e-07, "ram": 5.7818274085873004e-08, "gpu": 1.8925114346428393e-07, "total": 3.528205829311836e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 5668603.524727164 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1087.684608, "max_global_vram": 1365.77024, "max_process_vram": 0.0, "max_reserved": 725.614592, "max_allocated": 522.4576 }, "latency": { "unit": "s", "count": 54, "total": 0.509202208518982, "mean": 0.009429670528129297, "stdev": 0.00040095026574013483, "p50": 0.009444143772125244, "p90": 0.009863750648498535, "p95": 0.009920473432540893, "p99": 0.010405652170181273, "values": [ 0.009501279830932617, 0.009538271903991698, 0.00951308822631836, 0.009387007713317871, 0.009265439987182617, 0.00913657569885254, 0.009245696067810059, 0.009708383560180663, 0.009715167999267579, 0.009857791900634766, 0.010813183784484863, 0.009787232398986816, 0.009866304397583008, 0.009707584381103515, 0.009884320259094238, 0.00952780818939209, 0.009884991645812989, 0.009739007949829102, 0.009815072059631348, 0.009772480010986328, 0.009157407760620117, 0.009188128471374511, 0.009093791961669921, 0.009202048301696778, 0.009668000221252441, 0.00974240016937256, 0.010044256210327148, 0.009786911964416504, 0.009812671661376953, 0.009633343696594238, 0.00968835163116455, 0.009243519783020019, 0.009521504402160645, 0.00962889575958252, 0.00963209629058838, 0.009123007774353027, 0.009098752021789551, 0.008947392463684083, 0.009056511878967286, 0.009051551818847656, 0.008692031860351562, 0.008609087944030761, 0.009355711936950683, 0.009317791938781739, 0.009067520141601563, 0.009066016197204589, 0.00900928020477295, 0.009039679527282714, 0.009081472396850586, 0.00998636817932129, 0.008911231994628906, 0.00904905605316162, 0.009022591590881347, 0.009007136344909667 ] }, "throughput": { "unit": "tokens/s", "value": 106.048243893245 }, "energy": { "unit": "kWh", "cpu": 1.011474413331343e-07, "ram": 5.530085263968752e-08, "gpu": 2.1869458519089062e-07, "total": 3.7514287916371243e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 2665651.024029167 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 53, "total": 0.9820938911437986, "mean": 0.018530073417807522, "stdev": 0.0007140829420694909, "p50": 0.018554880142211915, "p90": 0.019351347351074216, "p95": 0.019790439224243166, "p99": 0.020044143981933594, "values": [ 0.01885491180419922, 0.018719743728637696, 0.018611200332641603, 0.01820159912109375, 0.018070528030395508, 0.018094079971313477, 0.018717695236206054, 0.01903206443786621, 0.019182592391967773, 0.020114431381225584, 0.019979263305664064, 0.019301376342773437, 0.018959360122680666, 0.019937280654907227, 0.018514944076538087, 0.019392511367797852, 0.01923174476623535, 0.019138559341430664, 0.019155967712402345, 0.018141183853149414, 0.018027519226074217, 0.018190336227416993, 0.01783500862121582, 0.019149824142456053, 0.01908121681213379, 0.01969254493713379, 0.019363840103149413, 0.019155967712402345, 0.01906483268737793, 0.01887539291381836, 0.018554880142211915, 0.018727935791015626, 0.018936832427978514, 0.0190382080078125, 0.018145280838012694, 0.017949695587158202, 0.017810432434082032, 0.01779814338684082, 0.017855487823486327, 0.017028127670288086, 0.017030111312866213, 0.017937408447265626, 0.018140159606933593, 0.017984512329101563, 0.017939456939697264, 0.017777664184570312, 0.017836032867431642, 0.01782579231262207, 0.018722816467285155, 0.01794867134094238, 0.01779302406311035, 0.017735679626464843, 0.017790016174316407 ] }, "throughput": { "unit": "tokens/s", "value": 53.96632692447907 }, "energy": null, "efficiency": null } } }