
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b0b7efc
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.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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1077.436416, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.49330476665496836, | |
"mean": 0.00896917757554488, | |
"stdev": 0.0004105828956469848, | |
"p50": 0.008976608276367188, | |
"p90": 0.009429792022705077, | |
"p95": 0.009601888179779052, | |
"p99": 0.009917103176116944, | |
"values": [ | |
0.010005887985229492, | |
0.009841471672058106, | |
0.009280799865722656, | |
0.009130559921264648, | |
0.008982303619384766, | |
0.008853407859802246, | |
0.008908160209655762, | |
0.009051775932312012, | |
0.008976608276367188, | |
0.0095250883102417, | |
0.009080384254455566, | |
0.00951734447479248, | |
0.009781087875366211, | |
0.00932953643798828, | |
0.009357343673706055, | |
0.00936563205718994, | |
0.009151935577392578, | |
0.009124287605285645, | |
0.009298208236694337, | |
0.009375871658325196, | |
0.009251839637756347, | |
0.009305248260498047, | |
0.00944540786743164, | |
0.008890848159790039, | |
0.00889907169342041, | |
0.008924896240234376, | |
0.009104351997375488, | |
0.009051199913024902, | |
0.009303744316101075, | |
0.008866527557373046, | |
0.008780223846435547, | |
0.008695903778076173, | |
0.00855187225341797, | |
0.009326784133911133, | |
0.009406368255615234, | |
0.009277695655822754, | |
0.008907679557800294, | |
0.00902889633178711, | |
0.008455167770385743, | |
0.008473504066467285, | |
0.008467071533203125, | |
0.008476127624511718, | |
0.008464320182800293, | |
0.008440447807312011, | |
0.008528127670288085, | |
0.008445568084716797, | |
0.00855561637878418, | |
0.008486271858215332, | |
0.00854371166229248, | |
0.008534912109375, | |
0.008393952369689942, | |
0.008437888145446777, | |
0.008448287963867188, | |
0.008522144317626953, | |
0.008675392150878907 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 222.98588506633504 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0483324850086148e-07, | |
"ram": 5.7314553453426796e-08, | |
"gpu": 1.8762797704424724e-07, | |
"total": 3.4977577899853547e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 5717948.812025586 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1077.436416, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.5112034559249878, | |
"mean": 0.009294608289545231, | |
"stdev": 0.00046507313092237075, | |
"p50": 0.009285856246948242, | |
"p90": 0.009907603645324708, | |
"p95": 0.00999760341644287, | |
"p99": 0.010189241123199463, | |
"values": [ | |
0.010117152214050292, | |
0.010147392272949219, | |
0.00956326389312744, | |
0.009324671745300293, | |
0.009355135917663574, | |
0.00923798370361328, | |
0.009342528343200684, | |
0.009354111671447753, | |
0.00958790397644043, | |
0.009824095726013183, | |
0.009318079948425293, | |
0.009921248435974122, | |
0.010238368034362793, | |
0.009784704208374023, | |
0.009773440361022949, | |
0.009797087669372559, | |
0.009392800331115723, | |
0.009285856246948242, | |
0.009946368217468261, | |
0.009804384231567383, | |
0.009717951774597168, | |
0.009934207916259766, | |
0.009707136154174805, | |
0.00928435230255127, | |
0.00925715160369873, | |
0.009495583534240723, | |
0.009555839538574218, | |
0.00943286418914795, | |
0.009887136459350587, | |
0.00906332778930664, | |
0.009262944221496582, | |
0.008764703750610352, | |
0.009199392318725587, | |
0.009690367698669433, | |
0.009734016418457031, | |
0.009258720397949219, | |
0.009194463729858398, | |
0.009180895805358887, | |
0.008727295875549317, | |
0.008701536178588867, | |
0.008803872108459473, | |
0.008721216201782227, | |
0.00871116828918457, | |
0.008700799942016602, | |
0.0087042875289917, | |
0.00871110439300537, | |
0.008715359687805176, | |
0.00873423957824707, | |
0.008706239700317383, | |
0.008713215827941894, | |
0.008793055534362793, | |
0.00872428798675537, | |
0.00873852825164795, | |
0.008717472076416016, | |
0.008842144012451172 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 107.58925700234413 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0249066361635484e-07, | |
"ram": 5.5831596856129535e-08, | |
"gpu": 2.191970610592011e-07, | |
"total": 3.7751932153168547e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 2648871.045706383 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.9863301143646239, | |
"mean": 0.018265372488233775, | |
"stdev": 0.0008394046828926431, | |
"p50": 0.018305024147033694, | |
"p90": 0.019244748687744142, | |
"p95": 0.01942108144760132, | |
"p99": 0.02005508577346802, | |
"values": [ | |
0.020031488418579102, | |
0.018955263137817382, | |
0.018531328201293946, | |
0.018338815689086914, | |
0.018153472900390624, | |
0.01827123260498047, | |
0.01845145606994629, | |
0.018534400939941405, | |
0.01941606330871582, | |
0.018469888687133788, | |
0.019430400848388672, | |
0.020081695556640626, | |
0.01914467239379883, | |
0.019135488510131835, | |
0.019182592391967773, | |
0.01862144088745117, | |
0.018456607818603515, | |
0.01926243209838867, | |
0.019195903778076173, | |
0.01902592086791992, | |
0.01925119972229004, | |
0.019200000762939453, | |
0.0182476806640625, | |
0.018183168411254884, | |
0.01839206314086914, | |
0.0187423038482666, | |
0.01849852752685547, | |
0.01922969627380371, | |
0.018052095413208007, | |
0.018034719467163087, | |
0.017571807861328125, | |
0.017649663925170898, | |
0.019070016860961915, | |
0.019194816589355467, | |
0.01864499282836914, | |
0.018149375915527344, | |
0.018226175308227538, | |
0.017238016128540038, | |
0.01720319938659668, | |
0.017289215087890625, | |
0.01722777557373047, | |
0.0172042236328125, | |
0.017168384552001953, | |
0.01725951957702637, | |
0.017176576614379883, | |
0.017275903701782228, | |
0.017266687393188478, | |
0.017285120010375975, | |
0.01724723243713379, | |
0.01723391914367676, | |
0.017188863754272463, | |
0.01722163200378418, | |
0.017242111206054688, | |
0.017572864532470703 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 54.74840442723969 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |