IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
fa16b58
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.2.0.dev20231010+rocm5.7", | |
"_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": "5", | |
"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": "warn", | |
"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.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": "0.12.0", | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 954.81856, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 45882.630144, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.1251474609375, | |
"mean": 8.1251474609375, | |
"stdev": 0.0, | |
"p50": 8.1251474609375, | |
"p90": 8.1251474609375, | |
"p95": 8.1251474609375, | |
"p99": 8.1251474609375, | |
"values": [ | |
8.1251474609375 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1129.127936, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 287725.912064, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 52, | |
"total": 0.5273786725997924, | |
"mean": 0.010141897549996011, | |
"stdev": 0.004187029943277179, | |
"p50": 0.009780216217041015, | |
"p90": 0.009920102977752686, | |
"p95": 0.01015798201560974, | |
"p99": 0.02495633235931402, | |
"values": [ | |
0.009310056686401367, | |
0.009317096710205077, | |
0.009292616844177246, | |
0.009179656982421874, | |
0.009020137786865234, | |
0.00899437713623047, | |
0.009083816528320313, | |
0.009167656898498536, | |
0.009042057037353515, | |
0.00905661678314209, | |
0.009072136878967286, | |
0.009283496856689452, | |
0.00921757698059082, | |
0.009348776817321778, | |
0.009081096649169921, | |
0.00895933723449707, | |
0.009021257400512695, | |
0.009008617401123046, | |
0.008987017631530762, | |
0.009263336181640625, | |
0.009041096687316895, | |
0.00905997657775879, | |
0.03990565872192383, | |
0.010143653869628906, | |
0.009920454978942872, | |
0.009883654594421388, | |
0.009813096046447754, | |
0.009911495208740234, | |
0.009861735343933106, | |
0.00981517505645752, | |
0.00991309642791748, | |
0.009889095306396485, | |
0.00990013599395752, | |
0.009872454643249512, | |
0.009823655128479004, | |
0.009821894645690919, | |
0.009886054992675782, | |
0.009790535926818847, | |
0.009806535720825195, | |
0.009900774955749512, | |
0.009803335189819335, | |
0.00989869499206543, | |
0.00993037509918213, | |
0.009793095588684082, | |
0.010593254089355469, | |
0.010175494194030762, | |
0.009916934967041015, | |
0.009659015655517578, | |
0.00973597526550293, | |
0.009777416229248046, | |
0.009783016204833985, | |
0.009645094871520996 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 197.20175540530744 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1129.357312, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 287275.08992, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 52, | |
"total": 0.47628664302825924, | |
"mean": 0.009159358519774216, | |
"stdev": 0.0011544538998680732, | |
"p50": 0.009252696990966796, | |
"p90": 0.009438744735717772, | |
"p95": 0.009506544160842895, | |
"p99": 0.013484606046676648, | |
"values": [ | |
0.008719497680664063, | |
0.008675818443298339, | |
0.008619977951049804, | |
0.008533577919006347, | |
0.008412939071655273, | |
0.00846829891204834, | |
0.008513258934020997, | |
0.008467498779296876, | |
0.008404298782348633, | |
0.008705099105834961, | |
0.00849469757080078, | |
0.008645418167114258, | |
0.008607978820800782, | |
0.008466379165649414, | |
0.008420139312744141, | |
0.008384458541870117, | |
0.008544618606567383, | |
0.008416138648986816, | |
0.00873213768005371, | |
0.0084977388381958, | |
0.008463818550109864, | |
0.008456938743591309, | |
0.010332934379577637, | |
0.00949293613433838, | |
0.009439976692199707, | |
0.009383975982666016, | |
0.009392775535583497, | |
0.009246537208557129, | |
0.009319336891174316, | |
0.009337257385253907, | |
0.00937005615234375, | |
0.009358217239379883, | |
0.009358375549316407, | |
0.009258856773376465, | |
0.009301576614379883, | |
0.009356296539306641, | |
0.00930237579345703, | |
0.009403176307678222, | |
0.009314855575561524, | |
0.009208617210388183, | |
0.009342857360839844, | |
0.009274057388305664, | |
0.009340456008911133, | |
0.016764917373657227, | |
0.009523176193237304, | |
0.009427657127380371, | |
0.00933565616607666, | |
0.009280137062072754, | |
0.009463656425476074, | |
0.009262215614318848, | |
0.009240616798400879, | |
0.009202377319335937 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 109.17795147346744 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 52, | |
"total": 0.4432168054580688, | |
"mean": 0.008523400104962862, | |
"stdev": 0.0011373872945682612, | |
"p50": 0.008571019172668457, | |
"p90": 0.008720554542541503, | |
"p95": 0.008796770143508912, | |
"p99": 0.012817602815628066, | |
"values": [ | |
0.008116140365600585, | |
0.008098539352416992, | |
0.008062699317932128, | |
0.007991179943084717, | |
0.007879499912261962, | |
0.00789870023727417, | |
0.007971980094909669, | |
0.007925900936126709, | |
0.007883981227874755, | |
0.00815213966369629, | |
0.007921259880065918, | |
0.008043660163879394, | |
0.008021419525146484, | |
0.007935979843139648, | |
0.007863339900970458, | |
0.007864459991455078, | |
0.007968299865722657, | |
0.007865900993347169, | |
0.008129098892211913, | |
0.007954380035400391, | |
0.007916940212249755, | |
0.007911340236663818, | |
0.009581416130065919, | |
0.008784458160400391, | |
0.008718539237976074, | |
0.008711817741394044, | |
0.008667657852172852, | |
0.008576619148254394, | |
0.008640458106994629, | |
0.008644457817077636, | |
0.008638697624206543, | |
0.008631657600402833, | |
0.008634057998657227, | |
0.008579018592834473, | |
0.008622538566589356, | |
0.00869837760925293, | |
0.008611818313598633, | |
0.008720778465270996, | |
0.008619017601013183, | |
0.008534539222717285, | |
0.008658538818359375, | |
0.00856541919708252, | |
0.008644457817077636, | |
0.01618587875366211, | |
0.00881181812286377, | |
0.008718378067016601, | |
0.008629898071289062, | |
0.00860445785522461, | |
0.008750537872314453, | |
0.008583337783813476, | |
0.008554537773132325, | |
0.008516778945922851 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 117.3240711083992 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |