
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
05fc441
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cuda", | |
"device_ids": "0", | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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.14", | |
"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": 1058.123776, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.007552 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.4957021436691284, | |
"mean": 0.008546588683950489, | |
"stdev": 0.000287137221825618, | |
"p50": 0.008596111774444581, | |
"p90": 0.008880102252960206, | |
"p95": 0.008912732553482055, | |
"p99": 0.009281315336227417, | |
"values": [ | |
0.009319071769714355, | |
0.008819616317749024, | |
0.008879679679870606, | |
0.008713055610656738, | |
0.008638400077819824, | |
0.008571488380432129, | |
0.008606368064880372, | |
0.00880297565460205, | |
0.00872447967529297, | |
0.00879036808013916, | |
0.008722432136535644, | |
0.008612735748291016, | |
0.008638431549072265, | |
0.008533472061157227, | |
0.008909055709838867, | |
0.008881088256835937, | |
0.008840415954589844, | |
0.008757151603698731, | |
0.008623200416564942, | |
0.008820608139038085, | |
0.008888992309570312, | |
0.008618335723876953, | |
0.00874950408935547, | |
0.008594847679138184, | |
0.008597375869750977, | |
0.008599136352539062, | |
0.009252832412719727, | |
0.008933568000793457, | |
0.00886899185180664, | |
0.008680383682250976, | |
0.008737631797790527, | |
0.008616543769836426, | |
0.008280192375183106, | |
0.00848681640625, | |
0.00855731201171875, | |
0.008427935600280762, | |
0.00831935977935791, | |
0.008583552360534668, | |
0.008425503730773927, | |
0.008432000160217286, | |
0.008176159858703614, | |
0.00816038417816162, | |
0.008172896385192871, | |
0.008202336311340331, | |
0.008449567794799804, | |
0.008364352226257324, | |
0.008139936447143555, | |
0.008162176132202149, | |
0.008199872016906739, | |
0.008278271675109864, | |
0.008160256385803222, | |
0.008151359558105468, | |
0.008135616302490234, | |
0.008196319580078125, | |
0.008190912246704101, | |
0.008408543586730956, | |
0.008138272285461426, | |
0.008159999847412109 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 234.0114955755119 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0099154379632739e-07, | |
"ram": 5.521635364980823e-08, | |
"gpu": 1.762807436610531e-07, | |
"total": 3.324886411071887e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 6015243.087222441 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1058.123776, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.4576 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 58, | |
"total": 0.5149062719345093, | |
"mean": 0.008877694343698435, | |
"stdev": 0.00030454188383811985, | |
"p50": 0.008946063995361329, | |
"p90": 0.009254518604278564, | |
"p95": 0.009315148448944092, | |
"p99": 0.00944474871635437, | |
"values": [ | |
0.009094304084777832, | |
0.009119199752807618, | |
0.00912185573577881, | |
0.009247232437133789, | |
0.00899942398071289, | |
0.008929984092712402, | |
0.00904035186767578, | |
0.009104191780090332, | |
0.008981216430664062, | |
0.009295807838439942, | |
0.009078304290771484, | |
0.009124320030212402, | |
0.0090830078125, | |
0.008959712028503418, | |
0.00934876823425293, | |
0.009228960037231445, | |
0.009198080062866211, | |
0.009082112312316894, | |
0.009092639923095704, | |
0.009211487770080566, | |
0.009109312057495118, | |
0.008954591751098633, | |
0.008913727760314941, | |
0.00900879955291748, | |
0.00900879955291748, | |
0.009423104286193848, | |
0.009271519660949707, | |
0.009125056266784668, | |
0.009015872001647949, | |
0.008937536239624023, | |
0.008859840393066407, | |
0.008762080192565918, | |
0.008668864250183105, | |
0.00878377628326416, | |
0.009309215545654297, | |
0.00855843162536621, | |
0.008662176132202149, | |
0.008710687637329101, | |
0.008701184272766112, | |
0.008831040382385254, | |
0.008566047668457031, | |
0.008441856384277344, | |
0.008515999794006348, | |
0.009473440170288085, | |
0.008684512138366698, | |
0.008449536323547363, | |
0.00843939208984375, | |
0.00844809627532959, | |
0.008473535537719727, | |
0.008671039581298829, | |
0.00842473602294922, | |
0.008481568336486816, | |
0.008430527687072755, | |
0.008542943954467773, | |
0.00857260799407959, | |
0.008452032089233398, | |
0.008440735816955567, | |
0.00844108772277832 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 112.64185961863173 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.454757870872165e-08, | |
"ram": 5.1691457932129477e-08, | |
"gpu": 1.6773137125687736e-07, | |
"total": 3.139704078977285e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3185013.539001217 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 57, | |
"total": 0.9940080699920656, | |
"mean": 0.017438738070036236, | |
"stdev": 0.0005475800710235602, | |
"p50": 0.017617919921875, | |
"p90": 0.018079539108276366, | |
"p95": 0.018116607666015624, | |
"p99": 0.018420817947387695, | |
"values": [ | |
0.017977344512939454, | |
0.01803264045715332, | |
0.01799580764770508, | |
0.01767318344116211, | |
0.017526784896850587, | |
0.017666048049926757, | |
0.017954816818237306, | |
0.017732608795166017, | |
0.018108415603637695, | |
0.017838079452514647, | |
0.017754112243652344, | |
0.017779712677001954, | |
0.017510400772094727, | |
0.018282495498657226, | |
0.018149375915527344, | |
0.018068479537963866, | |
0.017884159088134767, | |
0.017679359436035155, | |
0.018096128463745118, | |
0.01804083251953125, | |
0.01763020706176758, | |
0.017711103439331053, | |
0.017617919921875, | |
0.01762713623046875, | |
0.01801420783996582, | |
0.01859686470031738, | |
0.018104320526123048, | |
0.017937408447265626, | |
0.017648639678955077, | |
0.017613824844360353, | |
0.017480703353881837, | |
0.01696051216125488, | |
0.017297407150268555, | |
0.017846271514892577, | |
0.017118207931518553, | |
0.01697689628601074, | |
0.017367071151733398, | |
0.017157119750976564, | |
0.01728713607788086, | |
0.016730112075805666, | |
0.016677888870239257, | |
0.016709632873535156, | |
0.017672191619873046, | |
0.017184768676757813, | |
0.016827392578125, | |
0.01662668800354004, | |
0.01663692855834961, | |
0.016691200256347655, | |
0.016954368591308593, | |
0.01663795280456543, | |
0.0166297607421875, | |
0.01661440086364746, | |
0.01677110481262207, | |
0.016776159286499025, | |
0.016900096893310547, | |
0.01658367919921875, | |
0.016639999389648438 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 57.34359883059601 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |