IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f0cce8b
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.1+rocm6.1", | |
"_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": "4", | |
"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": 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.256576, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-5.15.0-101-generic-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.12", | |
"gpu": [ | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]", | |
"Advanced Micro Devices, Inc. [AMD/ATI]" | |
], | |
"gpu_count": 8, | |
"gpu_vram_mb": 549621596160, | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": null, | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.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": 1390.444544, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.68026123046875, | |
"mean": 7.68026123046875, | |
"stdev": 0.0, | |
"p50": 7.68026123046875, | |
"p90": 7.68026123046875, | |
"p95": 7.68026123046875, | |
"p99": 7.68026123046875, | |
"values": [ | |
7.68026123046875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1549.234176, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.4923347024917603, | |
"mean": 0.0072402162131141225, | |
"stdev": 0.0012521386410122418, | |
"p50": 0.006983282327651977, | |
"p90": 0.007503250169754028, | |
"p95": 0.00784121060371399, | |
"p99": 0.010989122691154464, | |
"values": [ | |
0.007740801811218262, | |
0.007238081932067871, | |
0.0071248021125793455, | |
0.007180482864379883, | |
0.007092001914978027, | |
0.007078882217407227, | |
0.007037601947784424, | |
0.007100162029266358, | |
0.007081922054290772, | |
0.007048642158508301, | |
0.007085762023925781, | |
0.007074081897735595, | |
0.007086562156677246, | |
0.007062081813812256, | |
0.0070513620376586915, | |
0.006980802059173584, | |
0.006979201793670654, | |
0.006944801807403565, | |
0.006972161769866944, | |
0.006957602024078369, | |
0.006930243015289306, | |
0.006974081993103027, | |
0.006990561962127686, | |
0.006969282150268555, | |
0.006957441806793213, | |
0.00696800184249878, | |
0.006981282234191894, | |
0.0069499220848083494, | |
0.007230401992797852, | |
0.0069689621925354, | |
0.006954401969909668, | |
0.006990881919860839, | |
0.006936001777648926, | |
0.006982081890106201, | |
0.006960321903228759, | |
0.006961761951446533, | |
0.006959842205047607, | |
0.017292484283447266, | |
0.007018561840057373, | |
0.006984161853790283, | |
0.00699472188949585, | |
0.006971682071685791, | |
0.0069657621383666995, | |
0.006955202102661133, | |
0.006984322071075439, | |
0.00697664213180542, | |
0.006983522891998291, | |
0.006954562187194824, | |
0.0069644818305969235, | |
0.006986241817474365, | |
0.006983041763305664, | |
0.006978722095489502, | |
0.006943841934204101, | |
0.0069211220741271975, | |
0.006920162200927734, | |
0.00691824197769165, | |
0.006913601875305176, | |
0.006898561954498291, | |
0.006911521911621094, | |
0.007841602802276611, | |
0.007840482234954834, | |
0.007507842063903808, | |
0.007325602054595947, | |
0.007221121788024903, | |
0.007881762981414795, | |
0.007884481906890868, | |
0.0073260822296142575, | |
0.007501282215118408 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 276.23484453094403 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1549.377536, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.5143092656135557, | |
"mean": 0.007563371553140527, | |
"stdev": 0.0012019307970004493, | |
"p50": 0.007342242002487183, | |
"p90": 0.007719569873809814, | |
"p95": 0.007813410115242005, | |
"p99": 0.011190185537338242, | |
"values": [ | |
0.007653441905975342, | |
0.007365762233734131, | |
0.007334402084350586, | |
0.00738496208190918, | |
0.007574882030487061, | |
0.007309281826019287, | |
0.0072886419296264646, | |
0.007370242118835449, | |
0.007323362827301025, | |
0.007532482147216797, | |
0.0073003220558166505, | |
0.007320802211761474, | |
0.007312161922454834, | |
0.007348002910614014, | |
0.007333601951599121, | |
0.007371682167053223, | |
0.007416162014007568, | |
0.007336482048034668, | |
0.007330562114715576, | |
0.007383681774139404, | |
0.00734240198135376, | |
0.007315681934356689, | |
0.007420802116394043, | |
0.007353762149810791, | |
0.007306881904602051, | |
0.007310562133789063, | |
0.007292643070220948, | |
0.00752416181564331, | |
0.007404642105102539, | |
0.007508162021636963, | |
0.007325761795043946, | |
0.007372161865234375, | |
0.007327523231506348, | |
0.007319362163543701, | |
0.007291841983795166, | |
0.007438241958618164, | |
0.007360802173614502, | |
0.007282721996307373, | |
0.007342082023620605, | |
0.007328642845153809, | |
0.007396321773529052, | |
0.0073436818122863765, | |
0.007297922134399414, | |
0.007304481983184815, | |
0.007275362014770508, | |
0.007324801921844482, | |
0.007328001976013183, | |
0.007332481861114502, | |
0.007502721786499023, | |
0.0073150420188903805, | |
0.007288802146911621, | |
0.0073571219444274905, | |
0.007281123161315918, | |
0.00731232213973999, | |
0.007254881858825684, | |
0.007304001808166504, | |
0.007345761775970459, | |
0.007329442024230957, | |
0.007716641902923584, | |
0.008174081802368165, | |
0.017280004501342774, | |
0.007776483058929444, | |
0.007557921886444092, | |
0.007611522197723389, | |
0.008190722465515136, | |
0.007801762104034424, | |
0.007726401805877686, | |
0.007819682121276856 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 132.21616748218216 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 68, | |
"total": 0.4805358176231384, | |
"mean": 0.00706670320034027, | |
"stdev": 0.0012067980811996302, | |
"p50": 0.006845602035522461, | |
"p90": 0.007218290090560913, | |
"p95": 0.007324394035339356, | |
"p99": 0.010688239526748642, | |
"values": [ | |
0.007129921913146973, | |
0.006877761840820312, | |
0.0068483219146728514, | |
0.00690352201461792, | |
0.007109762191772461, | |
0.006843842029571533, | |
0.006808321952819824, | |
0.006882882118225098, | |
0.0068544020652771, | |
0.007055362224578857, | |
0.006823522090911865, | |
0.006840482234954834, | |
0.0068409619331359865, | |
0.006859201908111573, | |
0.006843681812286377, | |
0.006866241931915283, | |
0.006909282207489014, | |
0.006851202011108399, | |
0.006844962120056152, | |
0.006863361835479737, | |
0.006853600978851318, | |
0.00682816219329834, | |
0.0069430418014526365, | |
0.006858881950378418, | |
0.006809601783752442, | |
0.00682000207901001, | |
0.006799521923065185, | |
0.007017282009124756, | |
0.006897922039031982, | |
0.0069876818656921386, | |
0.006836802005767822, | |
0.0068734421730041505, | |
0.006838881969451904, | |
0.006838881969451904, | |
0.0067902421951293946, | |
0.006943202018737793, | |
0.006829442024230957, | |
0.006744962215423584, | |
0.006828961849212646, | |
0.00684624195098877, | |
0.0068862419128417965, | |
0.006827682018280029, | |
0.006813282012939453, | |
0.0068000020980834965, | |
0.00679376220703125, | |
0.006815522193908691, | |
0.006824161052703857, | |
0.006803202152252197, | |
0.006991201877593994, | |
0.006823681831359864, | |
0.006815042018890381, | |
0.0068292818069458005, | |
0.00678288221359253, | |
0.0067816019058227536, | |
0.006778882026672363, | |
0.006782721996307373, | |
0.006796321868896484, | |
0.006838081836700439, | |
0.007207682132720947, | |
0.007655362129211426, | |
0.01682608413696289, | |
0.007309123039245606, | |
0.007060001850128174, | |
0.007095841884613037, | |
0.007665122032165527, | |
0.007327362060546875, | |
0.0072430419921875, | |
0.007318881988525391 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 141.50870238215873 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |