
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c70dfc3
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_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.293824, | |
"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.3.1", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 720.338944, | |
"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.137076171875, | |
"mean": 7.137076171875, | |
"stdev": 0.0, | |
"p50": 7.137076171875, | |
"p90": 7.137076171875, | |
"p95": 7.137076171875, | |
"p99": 7.137076171875, | |
"values": [ | |
7.137076171875 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0029407011138068e-06, | |
"ram": 5.339818376741808e-07, | |
"gpu": 1.8572237079996813e-06, | |
"total": 3.394146246787669e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1022.971904, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 80, | |
"total": 0.492234112739563, | |
"mean": 0.006152926409244537, | |
"stdev": 0.00021565683668976418, | |
"p50": 0.006087103843688965, | |
"p90": 0.006284863805770874, | |
"p95": 0.006329395294189453, | |
"p99": 0.007213331565856931, | |
"values": [ | |
0.007121664047241211, | |
0.007558176040649414, | |
0.006230688095092774, | |
0.006055776119232178, | |
0.006148352146148682, | |
0.006074848175048828, | |
0.006096352100372315, | |
0.006159488201141357, | |
0.006126944065093994, | |
0.006122176170349121, | |
0.0060581121444702145, | |
0.006075200080871582, | |
0.00605347204208374, | |
0.006210303783416748, | |
0.006174752235412598, | |
0.006147520065307617, | |
0.0061488962173461914, | |
0.006083263874053955, | |
0.006059360027313232, | |
0.006089087963104248, | |
0.0060392642021179195, | |
0.006068287849426269, | |
0.006066112041473388, | |
0.006001887798309326, | |
0.006009183883666992, | |
0.00607366418838501, | |
0.006073887825012207, | |
0.0060514240264892575, | |
0.00610643196105957, | |
0.006083936214447022, | |
0.006233983993530273, | |
0.006148831844329834, | |
0.00609164810180664, | |
0.006083871841430664, | |
0.006034527778625488, | |
0.0060414400100708004, | |
0.006108287811279297, | |
0.006037055969238281, | |
0.006078976154327393, | |
0.006067327976226807, | |
0.006158624172210693, | |
0.006087679862976075, | |
0.006011519908905029, | |
0.00601577615737915, | |
0.0060107197761535645, | |
0.006044352054595947, | |
0.00605350399017334, | |
0.006022111892700195, | |
0.006095136165618896, | |
0.006040351867675781, | |
0.0064107198715209965, | |
0.006094240188598633, | |
0.006267583847045898, | |
0.006329152107238769, | |
0.006253759860992431, | |
0.006260960102081299, | |
0.0062605757713317875, | |
0.006243040084838867, | |
0.0062820158004760745, | |
0.006047264099121093, | |
0.006067647933959961, | |
0.006086527824401855, | |
0.006005856037139892, | |
0.006074848175048828, | |
0.0062708802223205564, | |
0.006318431854248047, | |
0.006313055992126465, | |
0.006157472133636475, | |
0.006020448207855225, | |
0.006024127960205078, | |
0.00606825590133667, | |
0.0060408000946044925, | |
0.006170976161956787, | |
0.0063340158462524415, | |
0.006208831787109375, | |
0.0062102718353271484, | |
0.006219136238098145, | |
0.006310495853424072, | |
0.006034912109375, | |
0.006013567924499512 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 325.0485812726569 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.527959015634326e-08, | |
"ram": 4.109993554484851e-08, | |
"gpu": 1.5239815286076272e-07, | |
"total": 2.687776785619544e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7441094.10684932 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1038.344192, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 80, | |
"total": 0.5150244488716127, | |
"mean": 0.006437805610895157, | |
"stdev": 0.00016052825085435864, | |
"p50": 0.006383136034011841, | |
"p90": 0.006585449409484864, | |
"p95": 0.006719652628898621, | |
"p99": 0.006991691975593564, | |
"values": [ | |
0.007324831962585449, | |
0.006886208057403564, | |
0.006362592220306397, | |
0.006352384090423584, | |
0.006349855899810791, | |
0.006418623924255371, | |
0.0064019842147827145, | |
0.006319968223571777, | |
0.00646127986907959, | |
0.006359744071960449, | |
0.006352447986602784, | |
0.006391488075256348, | |
0.006448095798492432, | |
0.006404799938201904, | |
0.006341216087341309, | |
0.006368383884429931, | |
0.006403552055358887, | |
0.006346144199371338, | |
0.006317183971405029, | |
0.006355391979217529, | |
0.006355743885040283, | |
0.0064356160163879395, | |
0.0063348798751831055, | |
0.006231391906738281, | |
0.006238592147827148, | |
0.006399136066436767, | |
0.006556672096252441, | |
0.0064193282127380374, | |
0.006355072021484375, | |
0.006345568180084228, | |
0.006543551921844483, | |
0.006337696075439453, | |
0.006367680072784424, | |
0.006468192100524902, | |
0.006433279991149903, | |
0.006375616073608399, | |
0.006384928226470948, | |
0.006368735790252686, | |
0.006310848236083985, | |
0.006322783946990967, | |
0.006320000171661377, | |
0.00642848014831543, | |
0.006309631824493408, | |
0.006337088108062744, | |
0.006393280029296875, | |
0.006341343879699707, | |
0.006393087863922119, | |
0.006382463932037353, | |
0.006317887783050537, | |
0.0063838081359863285, | |
0.006444255828857422, | |
0.006528704166412353, | |
0.006630752086639404, | |
0.006527135848999024, | |
0.006582719802856445, | |
0.006610015869140625, | |
0.006618720054626465, | |
0.006531871795654297, | |
0.006361055850982666, | |
0.006380415916442871, | |
0.006400000095367431, | |
0.00637395191192627, | |
0.006362304210662841, | |
0.006389984130859375, | |
0.0065565438270568845, | |
0.00651094388961792, | |
0.006547967910766602, | |
0.0063311362266540525, | |
0.006346943855285644, | |
0.006336160182952881, | |
0.00638153600692749, | |
0.006361248016357422, | |
0.006903135776519775, | |
0.006716159820556641, | |
0.0065411520004272465, | |
0.006560768127441406, | |
0.006786015987396241, | |
0.006529600143432617, | |
0.006375872135162354, | |
0.006338816165924072 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 155.33243164528434 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.046696131791523e-08, | |
"ram": 3.858996972277958e-08, | |
"gpu": 1.4366576962703704e-07, | |
"total": 2.527227006677319e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3956906.11629999 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 80, | |
"total": 0.4843832306861879, | |
"mean": 0.006054790383577346, | |
"stdev": 0.00014459388607411126, | |
"p50": 0.006008831977844238, | |
"p90": 0.006195712184906006, | |
"p95": 0.006314291095733642, | |
"p99": 0.006561914992332457, | |
"values": [ | |
0.006781951904296875, | |
0.006456319808959961, | |
0.005987328052520752, | |
0.005980160236358643, | |
0.005970943927764893, | |
0.006038432121276856, | |
0.006025216102600098, | |
0.005950463771820068, | |
0.006079423904418946, | |
0.005962751865386963, | |
0.005981184005737304, | |
0.006020095825195313, | |
0.006074304103851318, | |
0.0060191359519958494, | |
0.005968992233276367, | |
0.00597811222076416, | |
0.006000639915466309, | |
0.005976064205169678, | |
0.00594649600982666, | |
0.005983295917510986, | |
0.005985280036926269, | |
0.006055039882659912, | |
0.005953536033630371, | |
0.005855231761932373, | |
0.005863423824310303, | |
0.00601804780960083, | |
0.006180863857269287, | |
0.006039552211761475, | |
0.005984255790710449, | |
0.005972991943359375, | |
0.006155263900756836, | |
0.005956607818603516, | |
0.005985280036926269, | |
0.00607539176940918, | |
0.0060631041526794435, | |
0.005997568130493164, | |
0.006008831977844238, | |
0.0059985918998718265, | |
0.005942272186279297, | |
0.005946368217468262, | |
0.005947391986846923, | |
0.006038527965545654, | |
0.0059391999244689945, | |
0.005958655834197998, | |
0.006022208213806153, | |
0.005974016189575195, | |
0.006021247863769531, | |
0.00601087999343872, | |
0.0059391999244689945, | |
0.006003712177276611, | |
0.006032383918762207, | |
0.0061521921157836916, | |
0.006242303848266601, | |
0.006145023822784424, | |
0.00619212818145752, | |
0.006227968215942382, | |
0.006239232063293457, | |
0.006145984172821045, | |
0.005978047847747803, | |
0.006008831977844238, | |
0.006020095825195313, | |
0.005963776111602783, | |
0.005992447853088379, | |
0.006017024040222168, | |
0.006174719810485839, | |
0.006127615928649902, | |
0.006147071838378906, | |
0.005956607818603516, | |
0.005974016189575195, | |
0.005962816238403321, | |
0.006012928009033203, | |
0.005990399837493897, | |
0.006503424167633057, | |
0.006309887886047363, | |
0.006155263900756836, | |
0.006180863857269287, | |
0.006397952079772949, | |
0.006126719951629639, | |
0.005970943927764893, | |
0.005960703849792481 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 165.1584838861376 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |