
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
81c66fd
verified
{ | |
"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.1", | |
"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": 1099.231232, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.49255766391754163, | |
"mean": 0.008795672569956099, | |
"stdev": 0.0003466033606685189, | |
"p50": 0.008785295963287353, | |
"p90": 0.009197919845581055, | |
"p95": 0.009248640060424805, | |
"p99": 0.009829407596588135, | |
"values": [ | |
0.00997231960296631, | |
0.009712479591369628, | |
0.009205663681030273, | |
0.008882719993591309, | |
0.0092259521484375, | |
0.009032064437866211, | |
0.008768799781799317, | |
0.008910047531127929, | |
0.009210176467895508, | |
0.00931670379638672, | |
0.008921024322509765, | |
0.008807231903076172, | |
0.008834495544433593, | |
0.00870364761352539, | |
0.00907590389251709, | |
0.00907414436340332, | |
0.00886518383026123, | |
0.008958623886108399, | |
0.008790335655212402, | |
0.008884639739990234, | |
0.00914345645904541, | |
0.009049440383911133, | |
0.0090349760055542, | |
0.008697312355041504, | |
0.008731328010559081, | |
0.008800576210021973, | |
0.008919551849365234, | |
0.009032608032226563, | |
0.008780256271362304, | |
0.008979167938232422, | |
0.008670559883117676, | |
0.00877222442626953, | |
0.008466719627380371, | |
0.00881510353088379, | |
0.009021087646484375, | |
0.009190176010131836, | |
0.008752832412719727, | |
0.008673952102661133, | |
0.00862816047668457, | |
0.00864998435974121, | |
0.008541279792785645, | |
0.008565888404846192, | |
0.00829740810394287, | |
0.008550175666809082, | |
0.008533599853515626, | |
0.008519071578979492, | |
0.00853603172302246, | |
0.008528127670288085, | |
0.008569984436035157, | |
0.008402912139892579, | |
0.008236991882324218, | |
0.008261792182922363, | |
0.00823251247406006, | |
0.008256640434265137, | |
0.008285663604736327, | |
0.008277952194213867 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 227.3845443987443 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0239972493886033e-07, | |
"ram": 5.5985884060207564e-08, | |
"gpu": 1.8767735320689545e-07, | |
"total": 3.4606296220596333e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5779295.1526828725 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1099.231232, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 56, | |
"total": 0.5091942071914671, | |
"mean": 0.00909275369984763, | |
"stdev": 0.00032762411218105746, | |
"p50": 0.009115103721618653, | |
"p90": 0.009454416275024413, | |
"p95": 0.00947446370124817, | |
"p99": 0.009920929288864136, | |
"values": [ | |
0.009979519844055176, | |
0.009872991561889649, | |
0.009380288124084472, | |
0.009266016006469726, | |
0.009482624053955079, | |
0.00931760025024414, | |
0.009124575614929199, | |
0.009207039833068848, | |
0.009422656059265136, | |
0.0093155517578125, | |
0.009182304382324218, | |
0.009173791885375976, | |
0.00926636791229248, | |
0.009080767631530762, | |
0.0094519681930542, | |
0.009426719665527343, | |
0.009241151809692382, | |
0.00925273609161377, | |
0.009105631828308106, | |
0.009186688423156739, | |
0.009456864356994629, | |
0.009409760475158692, | |
0.00931884765625, | |
0.009063712120056152, | |
0.009065728187561035, | |
0.009337759971618653, | |
0.0094717435836792, | |
0.009232704162597655, | |
0.009196288108825683, | |
0.009038944244384766, | |
0.008908096313476563, | |
0.008977248191833495, | |
0.00860927963256836, | |
0.009317407608032227, | |
0.009457728385925294, | |
0.009305983543395997, | |
0.008896096229553223, | |
0.008901599884033204, | |
0.00888652801513672, | |
0.00896288013458252, | |
0.008966239929199218, | |
0.008871647834777832, | |
0.008887136459350586, | |
0.008811840057373047, | |
0.008803903579711914, | |
0.00885529613494873, | |
0.008809439659118653, | |
0.008982751846313477, | |
0.00887228775024414, | |
0.008532575607299805, | |
0.008510047912597657, | |
0.00854252815246582, | |
0.008502079963684081, | |
0.008502464294433593, | |
0.00864230442047119, | |
0.008549471855163575 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 109.97768475976176 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.758359094841426e-08, | |
"ram": 5.335646007959691e-08, | |
"gpu": 1.7909608835977672e-07, | |
"total": 3.300361393877877e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3029971.2081682496 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.9838806991577148, | |
"mean": 0.017888739984685726, | |
"stdev": 0.0006177372837586851, | |
"p50": 0.01794246482849121, | |
"p90": 0.018641920471191408, | |
"p95": 0.018679500770568847, | |
"p99": 0.019244379730224612, | |
"values": [ | |
0.01970278358459473, | |
0.01866444778442383, | |
0.018078720092773438, | |
0.0188538875579834, | |
0.018395135879516602, | |
0.017915903091430666, | |
0.018153472900390624, | |
0.0186296329498291, | |
0.018714624404907225, | |
0.018142208099365235, | |
0.01799577522277832, | |
0.018157567977905274, | |
0.01782067108154297, | |
0.018506752014160157, | |
0.018541568756103514, | |
0.018184192657470705, | |
0.018240575790405274, | |
0.01794246482849121, | |
0.018099199295043944, | |
0.01865011215209961, | |
0.018496511459350586, | |
0.01836953544616699, | |
0.01782374382019043, | |
0.017830911636352538, | |
0.0181790714263916, | |
0.018423807144165038, | |
0.018322431564331054, | |
0.01800396728515625, | |
0.018070528030395508, | |
0.017632255554199217, | |
0.017797119140625, | |
0.017154048919677735, | |
0.01807257652282715, | |
0.018471935272216796, | |
0.01865216064453125, | |
0.017671167373657228, | |
0.01765376091003418, | |
0.017542144775390626, | |
0.01762713623046875, | |
0.017547264099121093, | |
0.01744076728820801, | |
0.017236991882324217, | |
0.01739263916015625, | |
0.017341440200805663, | |
0.01742438316345215, | |
0.017375232696533204, | |
0.017526784896850587, | |
0.017475584030151366, | |
0.01697689628601074, | |
0.01678233528137207, | |
0.01681715202331543, | |
0.016772096633911132, | |
0.016784383773803712, | |
0.0169564151763916, | |
0.016845823287963867 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 55.9010864295688 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |