IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8e08afe
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.2+rocm5.7", | |
"_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": false, | |
"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 7763 64-Core Processor", | |
"cpu_count": 128, | |
"cpu_ram_mb": 1082015.236096, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 1, | |
"gpu_vram_mb": 68702699520, | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "c594845efb520077430f4fe3f536bc1756e2b290", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.02656, | |
"max_global_vram": 1107.533824, | |
"max_process_vram": 252970.8032, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.5044121918678284, | |
"mean": 0.008269052325702105, | |
"stdev": 0.0004197418506483549, | |
"p50": 0.008025423049926757, | |
"p90": 0.008773261070251465, | |
"p95": 0.008946380615234374, | |
"p99": 0.009566250801086425, | |
"values": [ | |
0.010285097122192383, | |
0.008891501426696778, | |
0.009087019920349122, | |
0.008441422462463379, | |
0.008700141906738281, | |
0.008743821144104004, | |
0.008773261070251465, | |
0.008895500183105469, | |
0.008733901023864746, | |
0.008347182273864747, | |
0.008425262451171875, | |
0.008373902320861817, | |
0.008401902198791503, | |
0.00856606101989746, | |
0.008259502410888672, | |
0.00862670135498047, | |
0.008732781410217286, | |
0.007974702835083008, | |
0.007987183094024658, | |
0.007987983226776123, | |
0.007974382877349853, | |
0.008029102325439453, | |
0.00799662208557129, | |
0.007980941772460937, | |
0.007986862182617188, | |
0.008031343460083008, | |
0.008017102241516113, | |
0.008057262420654297, | |
0.007966221809387207, | |
0.008177581787109376, | |
0.0079719820022583, | |
0.008196782112121583, | |
0.008003502845764161, | |
0.007996303081512451, | |
0.007981263160705566, | |
0.008032623291015626, | |
0.008025423049926757, | |
0.008003183364868164, | |
0.007988623142242432, | |
0.008024943351745606, | |
0.008946380615234374, | |
0.008987979888916016, | |
0.00839342212677002, | |
0.00840494155883789, | |
0.008519660949707032, | |
0.008564141273498535, | |
0.007986062049865723, | |
0.00797838306427002, | |
0.008021102905273438, | |
0.008040302276611328, | |
0.007968303203582763, | |
0.007971982955932617, | |
0.008017422676086426, | |
0.00800078296661377, | |
0.007998383045196534, | |
0.007984142780303955, | |
0.007992783069610595, | |
0.00800782299041748, | |
0.00800190258026123, | |
0.007972942829132081, | |
0.007976462841033935 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 241.8656843884689 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.02656, | |
"max_global_vram": 1107.533824, | |
"max_process_vram": 225832.177664, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 61, | |
"total": 0.5019441852569579, | |
"mean": 0.008228593200933738, | |
"stdev": 0.00028628612601654764, | |
"p50": 0.008108302116394043, | |
"p90": 0.008686861038208009, | |
"p95": 0.008851341247558594, | |
"p99": 0.009086668205261229, | |
"values": [ | |
0.008922861099243165, | |
0.009007180213928222, | |
0.008851341247558594, | |
0.008752301216125488, | |
0.008548140525817871, | |
0.008623340606689452, | |
0.00880142116546631, | |
0.008512142181396485, | |
0.008406862258911133, | |
0.008314702033996582, | |
0.008266382217407227, | |
0.008332621574401856, | |
0.008449102401733398, | |
0.008339661598205567, | |
0.008364301681518554, | |
0.009205900192260742, | |
0.008109581947326661, | |
0.008134061813354493, | |
0.008021581649780273, | |
0.008078062057495117, | |
0.00801982307434082, | |
0.008059983253479003, | |
0.00801486301422119, | |
0.00804558277130127, | |
0.008011343002319336, | |
0.008191182136535644, | |
0.00798494291305542, | |
0.008124942779541016, | |
0.008051663398742677, | |
0.007963182926177979, | |
0.008072783470153808, | |
0.008032462120056153, | |
0.008167021751403809, | |
0.008067981719970703, | |
0.008062702178955078, | |
0.008068781852722168, | |
0.008072141647338868, | |
0.00810526180267334, | |
0.008135662078857422, | |
0.00807790184020996, | |
0.008686861038208009, | |
0.00820078182220459, | |
0.008225742340087891, | |
0.008304302215576171, | |
0.00836350154876709, | |
0.008018703460693359, | |
0.008002862930297852, | |
0.007909101963043213, | |
0.007970542907714843, | |
0.008025423049926757, | |
0.008140782356262206, | |
0.008079822540283204, | |
0.008066701889038085, | |
0.007995022773742675, | |
0.008095501899719238, | |
0.008108302116394043, | |
0.008135501861572265, | |
0.008087501525878907, | |
0.007994701862335205, | |
0.008152780532836914, | |
0.008007983207702636 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 121.52745622259285 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 60, | |
"total": 0.9898772125244143, | |
"mean": 0.01649795354207357, | |
"stdev": 0.0005743026282437969, | |
"p50": 0.016163885116577147, | |
"p90": 0.017389451599121097, | |
"p95": 0.017663401985168456, | |
"p99": 0.01793472827911377, | |
"values": [ | |
0.01786716079711914, | |
0.018031959533691407, | |
0.01726476287841797, | |
0.017377723693847658, | |
0.017368282318115234, | |
0.017653242111206054, | |
0.017583160400390624, | |
0.017029403686523437, | |
0.016716123580932617, | |
0.01677772331237793, | |
0.016808603286743166, | |
0.01682332420349121, | |
0.016988443374633788, | |
0.01663340377807617, | |
0.01749500274658203, | |
0.0172956428527832, | |
0.016138364791870117, | |
0.01614732551574707, | |
0.016006685256958007, | |
0.016060445785522463, | |
0.01610604476928711, | |
0.016071165084838867, | |
0.016018205642700196, | |
0.016052125930786133, | |
0.01621260452270508, | |
0.016147804260253907, | |
0.01608140563964844, | |
0.016128925323486327, | |
0.01622828483581543, | |
0.016021085739135743, | |
0.01632220458984375, | |
0.016100605010986327, | |
0.016125244140625, | |
0.01605404472351074, | |
0.016160924911499022, | |
0.016127645492553713, | |
0.016166845321655274, | |
0.01617132568359375, | |
0.016139324188232423, | |
0.0178564395904541, | |
0.017235164642333985, | |
0.016599483489990234, | |
0.01679388427734375, | |
0.016859323501586913, | |
0.016522043228149413, | |
0.016059484481811524, | |
0.016055004119873047, | |
0.015979804992675782, | |
0.01609276580810547, | |
0.016069564819335937, | |
0.016227964401245118, | |
0.016117244720458983, | |
0.016046365737915038, | |
0.016108924865722657, | |
0.016117725372314453, | |
0.01618748474121094, | |
0.016125085830688477, | |
0.01610748481750488, | |
0.01603132438659668, | |
0.016182044982910156 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 60.613578371994464 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |