
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8ef0d70
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+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", | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7R32", | |
"cpu_count": 16, | |
"cpu_ram_mb": 66697.285632, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.219-208.866.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.1", | |
"optimum_benchmark_commit": null, | |
"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": 1047.273472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210816 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.4890661430358888, | |
"mean": 0.006699536205971078, | |
"stdev": 0.0003653837260245848, | |
"p50": 0.00678278398513794, | |
"p90": 0.007035961532592773, | |
"p95": 0.007592620658874512, | |
"p99": 0.0077780903434753424, | |
"values": [ | |
0.00790006399154663, | |
0.007730656147003174, | |
0.007673696041107177, | |
0.007620287895202637, | |
0.007574175834655762, | |
0.006643328189849853, | |
0.006567008018493652, | |
0.00639686393737793, | |
0.006395359992980957, | |
0.007061471939086914, | |
0.006901120185852051, | |
0.006854015827178955, | |
0.006804255962371826, | |
0.00707587194442749, | |
0.007043551921844482, | |
0.0063927359580993656, | |
0.00678278398513794, | |
0.006835487842559815, | |
0.006836319923400879, | |
0.006795423984527588, | |
0.0068148159980773925, | |
0.007005599975585938, | |
0.006980063915252685, | |
0.006398687839508057, | |
0.006829855918884277, | |
0.006917568206787109, | |
0.00683135986328125, | |
0.006807392120361328, | |
0.006824319839477539, | |
0.006960544109344482, | |
0.0068113598823547365, | |
0.006360288143157959, | |
0.006767136096954346, | |
0.006791296005249023, | |
0.006795968055725098, | |
0.006802464008331299, | |
0.006783775806427002, | |
0.00692303991317749, | |
0.006787648200988769, | |
0.006932991981506348, | |
0.006866911888122559, | |
0.00700105619430542, | |
0.006815775871276856, | |
0.006838655948638916, | |
0.006860991954803467, | |
0.006375967979431152, | |
0.00632863998413086, | |
0.006383743762969971, | |
0.006356256008148193, | |
0.006378592014312744, | |
0.006521056175231934, | |
0.00638976001739502, | |
0.006356863975524902, | |
0.006348512172698975, | |
0.006401631832122803, | |
0.006619872093200684, | |
0.006387519836425781, | |
0.006392352104187012, | |
0.006365471839904785, | |
0.006340288162231446, | |
0.006339871883392334, | |
0.0063983359336853025, | |
0.006362559795379638, | |
0.006321280002593994, | |
0.006358272075653077, | |
0.006369952201843262, | |
0.0063705921173095705, | |
0.006327775955200196, | |
0.006491871833801269, | |
0.006352704048156738, | |
0.006333471775054932, | |
0.006336575984954834, | |
0.006362304210662841 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 298.5281276959837 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.041716933071434e-08, | |
"ram": 4.395791250005737e-08, | |
"gpu": 1.5659359374325792e-07, | |
"total": 2.8096867557402964e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7118231.22600384 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1047.273472, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.43456 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 73, | |
"total": 0.5147850241661072, | |
"mean": 0.0070518496461110585, | |
"stdev": 0.00036970695019734407, | |
"p50": 0.00714188814163208, | |
"p90": 0.007438643264770508, | |
"p95": 0.007938259315490722, | |
"p99": 0.008099677543640138, | |
"values": [ | |
0.007960896015167236, | |
0.008097984313964844, | |
0.008035776138305663, | |
0.007923168182373047, | |
0.008104031562805175, | |
0.006903039932250977, | |
0.0067264318466186525, | |
0.006721727848052979, | |
0.006769023895263672, | |
0.007460576057434082, | |
0.00722102403640747, | |
0.007316895961761475, | |
0.007235040187835693, | |
0.007221856117248535, | |
0.007141695976257324, | |
0.006744863986968994, | |
0.007593920230865478, | |
0.007199808120727539, | |
0.007185599803924561, | |
0.00718998384475708, | |
0.00717903995513916, | |
0.007211584091186524, | |
0.007149759769439697, | |
0.006756800174713135, | |
0.007313663959503174, | |
0.007200479984283447, | |
0.007177599906921387, | |
0.0072197442054748534, | |
0.007178624153137207, | |
0.00733900785446167, | |
0.0071601920127868654, | |
0.006738080024719238, | |
0.007177567958831787, | |
0.007177152156829834, | |
0.007199935913085938, | |
0.007184991836547852, | |
0.007350912094116211, | |
0.007266464233398437, | |
0.007151167869567871, | |
0.007261280059814453, | |
0.00714188814163208, | |
0.0071981120109558105, | |
0.007149087905883789, | |
0.007540383815765381, | |
0.0071823039054870605, | |
0.0066969280242919925, | |
0.006694623947143555, | |
0.006662144184112549, | |
0.0068853759765625, | |
0.006698112010955811, | |
0.006745759963989258, | |
0.0066908798217773435, | |
0.006723680019378662, | |
0.00668998384475708, | |
0.006646624088287353, | |
0.006723648071289063, | |
0.006695744037628174, | |
0.0067957439422607424, | |
0.006810175895690918, | |
0.006686560153961182, | |
0.006696383953094482, | |
0.006662816047668457, | |
0.006707136154174805, | |
0.006807744026184082, | |
0.00665670394897461, | |
0.006670112133026123, | |
0.006854976177215576, | |
0.006689407825469971, | |
0.006669888019561768, | |
0.006720191955566406, | |
0.006742144107818603, | |
0.006696191787719727, | |
0.007006175994873047 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.80676704465446 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.387706981943894e-08, | |
"ram": 4.0405519431404435e-08, | |
"gpu": 1.481829848541535e-07, | |
"total": 2.6246557410499686e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3810023.4798791534 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 72, | |
"total": 0.9900646390914919, | |
"mean": 0.013750897765159607, | |
"stdev": 0.0006876950531519037, | |
"p50": 0.013964287757873535, | |
"p90": 0.01433763885498047, | |
"p95": 0.01499021615982056, | |
"p99": 0.015781519565582276, | |
"values": [ | |
0.015865856170654297, | |
0.015738880157470703, | |
0.015599616050720215, | |
0.015747072219848633, | |
0.013703167915344238, | |
0.013320192337036133, | |
0.013143039703369141, | |
0.013186079978942871, | |
0.014491616249084472, | |
0.01419878387451172, | |
0.01418239974975586, | |
0.014065664291381836, | |
0.014340096473693848, | |
0.014212096214294433, | |
0.013165568351745606, | |
0.014392319679260255, | |
0.0140697603225708, | |
0.014048255920410157, | |
0.014004223823547364, | |
0.014020607948303223, | |
0.01425715160369873, | |
0.014158847808837891, | |
0.013178879737854005, | |
0.014167039871215821, | |
0.014155776023864745, | |
0.014026752471923828, | |
0.01405951976776123, | |
0.014030847549438476, | |
0.014315520286560059, | |
0.013996031761169434, | |
0.01313587188720703, | |
0.013972479820251465, | |
0.013993984222412109, | |
0.014021632194519042, | |
0.014013440132141113, | |
0.014163968086242675, | |
0.014216192245483398, | |
0.013956095695495606, | |
0.014226431846618653, | |
0.014036992073059081, | |
0.014221311569213867, | |
0.013993984222412109, | |
0.014393343925476074, | |
0.014053376197814941, | |
0.01314406394958496, | |
0.013046784400939941, | |
0.01306828784942627, | |
0.01326591968536377, | |
0.013093888282775879, | |
0.013307904243469238, | |
0.013083647727966309, | |
0.013126655578613282, | |
0.01306931209564209, | |
0.013070367813110351, | |
0.013366239547729492, | |
0.013115391731262208, | |
0.013200384140014648, | |
0.013181952476501465, | |
0.013080575942993163, | |
0.01306828784942627, | |
0.013083647727966309, | |
0.013087743759155274, | |
0.013162495613098145, | |
0.013042688369750977, | |
0.013065216064453124, | |
0.013245439529418946, | |
0.01304371166229248, | |
0.01317683219909668, | |
0.013093888282775879, | |
0.013117440223693847, | |
0.01305907154083252, | |
0.013356032371520997 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 72.72252452735714 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |