
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
947a77c
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+cu124", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"model_type": "gpt2", | |
"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": {}, | |
"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, | |
"memory": true, | |
"latency": 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.261056, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.10.223-212.873.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.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 791.314432, | |
"max_global_vram": 1355.28448, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.41104638671875, | |
"mean": 7.41104638671875, | |
"stdev": 0.0, | |
"p50": 7.41104638671875, | |
"p90": 7.41104638671875, | |
"p95": 7.41104638671875, | |
"p99": 7.41104638671875, | |
"values": [ | |
7.41104638671875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0194323652776738e-06, | |
"ram": 5.283249009715939e-07, | |
"gpu": 0.0, | |
"total": 1.5477572662492678e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1204.318208, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.4931354269981384, | |
"mean": 0.00704479181425912, | |
"stdev": 0.0003357494982474488, | |
"p50": 0.006947344064712525, | |
"p90": 0.0075821950435638425, | |
"p95": 0.007611393618583679, | |
"p99": 0.007703596901893616, | |
"values": [ | |
0.007832543849945068, | |
0.007616735935211181, | |
0.007636832237243652, | |
0.007604864120483399, | |
0.0075627841949462895, | |
0.00701580810546875, | |
0.006943840026855469, | |
0.007136640071868897, | |
0.007088096141815186, | |
0.006901887893676758, | |
0.007140799999237061, | |
0.0075493440628051755, | |
0.007445184230804444, | |
0.007645664215087891, | |
0.007478559970855713, | |
0.007277120113372803, | |
0.007001215934753418, | |
0.007425407886505127, | |
0.007402207851409912, | |
0.007588384151458741, | |
0.007177472114562988, | |
0.006937535762786865, | |
0.007173247814178467, | |
0.00700710391998291, | |
0.007046976089477539, | |
0.006928639888763428, | |
0.006962816238403321, | |
0.0068793601989746095, | |
0.007386688232421875, | |
0.007340832233428955, | |
0.00729036808013916, | |
0.007581535816192627, | |
0.007588128089904785, | |
0.007400000095367431, | |
0.007117824077606201, | |
0.00695084810256958, | |
0.006792223930358886, | |
0.006618783950805664, | |
0.006802144050598144, | |
0.006673632144927978, | |
0.0065084161758422856, | |
0.00719974422454834, | |
0.007317024230957031, | |
0.007387328147888184, | |
0.0069901118278503415, | |
0.006811615943908692, | |
0.0067112002372741696, | |
0.0069220800399780276, | |
0.006817183971405029, | |
0.006736671924591065, | |
0.006811967849731445, | |
0.00680844783782959, | |
0.006754623889923096, | |
0.0067993922233581545, | |
0.006726175785064697, | |
0.0067283201217651365, | |
0.006757760047912597, | |
0.006805984020233155, | |
0.006737023830413818, | |
0.0067309441566467286, | |
0.006768608093261718, | |
0.006809216022491455, | |
0.006722527980804444, | |
0.006736063957214355, | |
0.0067268161773681645, | |
0.006776192188262939, | |
0.006703104019165039, | |
0.006750016212463379, | |
0.0063968319892883305, | |
0.0067339520454406734 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 283.89767259720423 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 8.081087627078506e-08, | |
"ram": 4.4185149899461805e-08, | |
"gpu": 1.5408364556462613e-07, | |
"total": 2.79079671734873e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7166412.327946299 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1223.266304, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.5181583018302918, | |
"mean": 0.007402261454718454, | |
"stdev": 0.000334456460935368, | |
"p50": 0.007368607997894287, | |
"p90": 0.007841552114486694, | |
"p95": 0.00798498544692993, | |
"p99": 0.008106050567626952, | |
"values": [ | |
0.008080575942993164, | |
0.008039839744567871, | |
0.008162752151489257, | |
0.007828351974487304, | |
0.00778115177154541, | |
0.0073656001091003415, | |
0.0074273600578308105, | |
0.007424799919128418, | |
0.007445312023162841, | |
0.007520383834838868, | |
0.007567872047424316, | |
0.007814496040344239, | |
0.0077881598472595214, | |
0.0078373761177063, | |
0.0077749438285827635, | |
0.007654335975646973, | |
0.0074843201637268065, | |
0.007689568042755127, | |
0.007879136085510254, | |
0.007976607799530029, | |
0.007387392044067383, | |
0.007430975914001465, | |
0.007488607883453369, | |
0.007371615886688232, | |
0.007177887916564941, | |
0.00733568000793457, | |
0.007440159797668457, | |
0.007280799865722656, | |
0.007752736091613769, | |
0.007746304035186767, | |
0.0077669119834899904, | |
0.00799183988571167, | |
0.007933407783508302, | |
0.007784543991088867, | |
0.007309855937957764, | |
0.007231135845184326, | |
0.007029183864593506, | |
0.006908991813659668, | |
0.007046144008636474, | |
0.006756671905517578, | |
0.0073770880699157715, | |
0.007587296009063721, | |
0.007673759937286377, | |
0.007727871894836426, | |
0.007215936183929444, | |
0.007104671955108642, | |
0.007392191886901855, | |
0.0072477121353149414, | |
0.007088575839996338, | |
0.007157279968261719, | |
0.007075200080871582, | |
0.007107071876525879, | |
0.007182528018951416, | |
0.007067264080047608, | |
0.007065760135650635, | |
0.007078911781311035, | |
0.007104415893554688, | |
0.0071664958000183104, | |
0.007142111778259277, | |
0.007087264060974121, | |
0.007180416107177735, | |
0.007081920146942138, | |
0.0071280961036682125, | |
0.007057631969451904, | |
0.007062528133392334, | |
0.0070340800285339355, | |
0.007076064109802246, | |
0.007051136016845703, | |
0.007045023918151856, | |
0.007078207969665527 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 135.09385018581935 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.48057490719305e-08, | |
"ram": 4.090531383219656e-08, | |
"gpu": 1.4133866869511648e-07, | |
"total": 2.570497315992437e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3890297.779260324 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 70, | |
"total": 0.4844176001548767, | |
"mean": 0.006920251430783953, | |
"stdev": 0.0002818395924148247, | |
"p50": 0.006848991870880127, | |
"p90": 0.00730018858909607, | |
"p95": 0.007412889647483826, | |
"p99": 0.007524691576957703, | |
"values": [ | |
0.007492640018463135, | |
0.007490560054779053, | |
0.00759603214263916, | |
0.007291903972625732, | |
0.00725708818435669, | |
0.006853631973266602, | |
0.006913023948669434, | |
0.0068986878395080565, | |
0.006918144226074219, | |
0.006970367908477783, | |
0.0070225920677185055, | |
0.007251967906951904, | |
0.007229440212249756, | |
0.00729702377319336, | |
0.00724889612197876, | |
0.007144447803497315, | |
0.006842368125915528, | |
0.007168000221252442, | |
0.007328671932220459, | |
0.00740556812286377, | |
0.006890495777130127, | |
0.0069212160110473635, | |
0.006978559970855713, | |
0.006855679988861084, | |
0.00669593620300293, | |
0.006840320110321045, | |
0.006929471969604493, | |
0.006788095951080322, | |
0.007226367950439453, | |
0.007199711799621582, | |
0.007229440212249756, | |
0.007418879985809326, | |
0.007365632057189942, | |
0.007250944137573242, | |
0.006804704189300537, | |
0.006757279872894287, | |
0.006563839912414551, | |
0.006469632148742676, | |
0.006612991809844971, | |
0.006358016014099121, | |
0.0069069118499755855, | |
0.007095359802246094, | |
0.007168000221252442, | |
0.007194623947143554, | |
0.006806528091430664, | |
0.00667952013015747, | |
0.006909952163696289, | |
0.006844351768493653, | |
0.00667852783203125, | |
0.006737919807434082, | |
0.006673408031463623, | |
0.0066744318008422855, | |
0.006776832103729248, | |
0.006643712043762207, | |
0.006661056041717529, | |
0.006661119937896728, | |
0.006690815925598144, | |
0.006752255916595459, | |
0.00673689603805542, | |
0.006677504062652588, | |
0.0067686400413513184, | |
0.00667955207824707, | |
0.0066835517883300785, | |
0.006641727924346924, | |
0.006655007839202881, | |
0.006619135856628418, | |
0.006668288230895996, | |
0.006651936054229736, | |
0.006636544227600098, | |
0.006665215969085693 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 144.50342014332216 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |