
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c70711d
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": {}, | |
"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, | |
"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": 718.508032, | |
"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.2100087890625, | |
"mean": 7.2100087890625, | |
"stdev": 0.0, | |
"p50": 7.2100087890625, | |
"p90": 7.2100087890625, | |
"p95": 7.2100087890625, | |
"p99": 7.2100087890625, | |
"values": [ | |
7.2100087890625 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0180498162905375e-06, | |
"ram": 5.217483470642038e-07, | |
"gpu": 0.0, | |
"total": 1.5397981633547413e-06 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1036.84096, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.210304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.48972707176208485, | |
"mean": 0.006199076857747911, | |
"stdev": 0.0001864026977678395, | |
"p50": 0.006156415939331055, | |
"p90": 0.006307539176940918, | |
"p95": 0.0064457247734069825, | |
"p99": 0.007037365198135376, | |
"values": [ | |
0.007329472064971924, | |
0.0069549760818481444, | |
0.0064061121940612795, | |
0.0061394238471984865, | |
0.006170559883117676, | |
0.006138720035552978, | |
0.006190048217773437, | |
0.006157919883728027, | |
0.006168000221252442, | |
0.00607689619064331, | |
0.006061344146728515, | |
0.0061879677772521974, | |
0.006165535926818848, | |
0.006158080101013184, | |
0.006170783996582031, | |
0.006154848098754883, | |
0.006143487930297851, | |
0.006159103870391845, | |
0.0061924481391906734, | |
0.006165311813354492, | |
0.0061467838287353515, | |
0.006131360054016113, | |
0.006131872177124024, | |
0.006171487808227539, | |
0.0061402559280395504, | |
0.006147488117218018, | |
0.0061641278266906735, | |
0.006134751796722412, | |
0.006040639877319336, | |
0.006285823822021484, | |
0.006109856128692627, | |
0.006151519775390625, | |
0.00617900800704956, | |
0.006139584064483642, | |
0.006106783866882324, | |
0.006087039947509766, | |
0.006074751853942871, | |
0.006160543918609619, | |
0.006184544086456299, | |
0.006305727958679199, | |
0.006203199863433838, | |
0.006138271808624267, | |
0.0061512961387634275, | |
0.00614796781539917, | |
0.006160192012786865, | |
0.006110655784606934, | |
0.006138783931732178, | |
0.006073440074920654, | |
0.0061283202171325685, | |
0.006156415939331055, | |
0.006486303806304931, | |
0.006231935977935791, | |
0.006226240158081054, | |
0.006259712219238281, | |
0.006326176166534424, | |
0.006314784049987793, | |
0.006178656101226807, | |
0.006132768154144287, | |
0.006171552181243897, | |
0.006441215991973877, | |
0.006207680225372315, | |
0.006207615852355957, | |
0.0061346240043640135, | |
0.006134528160095215, | |
0.006202271938323975, | |
0.006160543918609619, | |
0.006113344192504882, | |
0.006138175964355469, | |
0.006185664176940918, | |
0.006138751983642578, | |
0.006762271881103516, | |
0.006288479804992675, | |
0.006089503765106201, | |
0.006053440093994141, | |
0.006073535919189453, | |
0.0060299839973449705, | |
0.006093696117401123, | |
0.006142752170562744, | |
0.006107327938079834 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 322.62868260784694 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.633945541164474e-08, | |
"ram": 4.1727280643698715e-08, | |
"gpu": 1.5388367011537875e-07, | |
"total": 2.7195040617072223e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7354282.0845961915 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1052.213248, | |
"max_global_vram": 1365.77024, | |
"max_process_vram": 0.0, | |
"max_reserved": 725.614592, | |
"max_allocated": 522.434048 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.5152644147872927, | |
"mean": 0.006522334364396107, | |
"stdev": 0.00018618306393485419, | |
"p50": 0.006476255893707275, | |
"p90": 0.006654476737976075, | |
"p95": 0.006698966407775879, | |
"p99": 0.007529101581573486, | |
"values": [ | |
0.007521632194519043, | |
0.007555583953857422, | |
0.006647871971130371, | |
0.0064468798637390134, | |
0.006487775802612305, | |
0.006478655815124512, | |
0.006454304218292236, | |
0.0064551677703857425, | |
0.0066847681999206545, | |
0.006388288021087646, | |
0.0066969280242919925, | |
0.006462656021118164, | |
0.006460864067077637, | |
0.006446623802185058, | |
0.0064726719856262206, | |
0.006496416091918945, | |
0.006487584114074707, | |
0.006459551811218262, | |
0.006454527854919434, | |
0.006806719779968262, | |
0.006538656234741211, | |
0.006615039825439453, | |
0.0064860482215881345, | |
0.006381440162658692, | |
0.006450399875640869, | |
0.006479968070983886, | |
0.006467391967773437, | |
0.006367743968963623, | |
0.006486271858215332, | |
0.006370240211486816, | |
0.006440959930419922, | |
0.006455264091491699, | |
0.006522784233093262, | |
0.006476255893707275, | |
0.0064776320457458495, | |
0.006490303993225098, | |
0.006417632102966309, | |
0.006401599884033203, | |
0.006680895805358886, | |
0.006492447853088379, | |
0.006494431972503662, | |
0.00651423978805542, | |
0.006440095901489258, | |
0.00650438404083252, | |
0.00652288007736206, | |
0.006477375984191894, | |
0.006455743789672851, | |
0.006520639896392822, | |
0.00644326400756836, | |
0.006447872161865234, | |
0.0067173118591308595, | |
0.006602880001068115, | |
0.006545663833618164, | |
0.006589248180389405, | |
0.006620384216308593, | |
0.00659497594833374, | |
0.0064917120933532715, | |
0.00650108814239502, | |
0.006439871788024902, | |
0.006544864177703858, | |
0.006647264003753662, | |
0.006499423980712891, | |
0.006457952022552491, | |
0.0064445118904113766, | |
0.006448031902313233, | |
0.006460608005523682, | |
0.006462080001831055, | |
0.006463168144226074, | |
0.0064716157913208006, | |
0.006436992168426514, | |
0.0066119680404663084, | |
0.006687935829162598, | |
0.006405695915222168, | |
0.006400991916656494, | |
0.0063433279991149906, | |
0.006331679821014405, | |
0.006416287899017334, | |
0.006473631858825684, | |
0.006467872142791748 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 153.31933999869207 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.400362908925087e-08, | |
"ram": 4.0180875581516895e-08, | |
"gpu": 1.4775546008462374e-07, | |
"total": 2.619399647553913e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 3817668.681958612 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 79, | |
"total": 0.48471446418762226, | |
"mean": 0.0061356261289572415, | |
"stdev": 0.0001676824339344295, | |
"p50": 0.0060928001403808595, | |
"p90": 0.0062580673217773435, | |
"p95": 0.006309580659866333, | |
"p99": 0.0069985645675659175, | |
"values": [ | |
0.006965216159820557, | |
0.007116799831390381, | |
0.006255616188049316, | |
0.006062079906463623, | |
0.006106112003326416, | |
0.006100992202758789, | |
0.006074368000030517, | |
0.006072319984436035, | |
0.006280191898345947, | |
0.006017024040222168, | |
0.006307839870452881, | |
0.006082560062408447, | |
0.006080512046813965, | |
0.00606822395324707, | |
0.00608358383178711, | |
0.006116352081298828, | |
0.006106112003326416, | |
0.006080512046813965, | |
0.006074431896209717, | |
0.006397952079772949, | |
0.006157311916351318, | |
0.006239168167114258, | |
0.006106143951416016, | |
0.0060067839622497555, | |
0.006062079906463623, | |
0.006080512046813965, | |
0.006086656093597412, | |
0.006000639915466309, | |
0.006110208034515381, | |
0.005991424083709717, | |
0.006062079906463623, | |
0.006071296215057373, | |
0.006131711959838867, | |
0.006097919940948486, | |
0.006104063987731933, | |
0.006118368148803711, | |
0.006043744087219238, | |
0.00602623987197876, | |
0.006232096195220947, | |
0.006113279819488526, | |
0.006114304065704346, | |
0.006135807991027832, | |
0.006061056137084961, | |
0.0061224961280822755, | |
0.006132736206054688, | |
0.006097919940948486, | |
0.006078464031219482, | |
0.006131519794464111, | |
0.006065152168273926, | |
0.0060702719688415525, | |
0.006325247764587402, | |
0.0062197761535644535, | |
0.006158336162567139, | |
0.006201344013214111, | |
0.00621670389175415, | |
0.006214655876159668, | |
0.006111231803894043, | |
0.0061224961280822755, | |
0.0060631041526794435, | |
0.0061224961280822755, | |
0.006267871856689453, | |
0.006108160018920898, | |
0.0060661759376525876, | |
0.006064191818237304, | |
0.00606822395324707, | |
0.006072319984436035, | |
0.006083615779876709, | |
0.006090752124786377, | |
0.0060928001403808595, | |
0.006052864074707031, | |
0.006201344013214111, | |
0.006299647808074951, | |
0.0060282878875732426, | |
0.006022143840789795, | |
0.005971968173980713, | |
0.005962751865386963, | |
0.0060364799499511715, | |
0.006082560062408447, | |
0.006086656093597412 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 162.98255124778137 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |