IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
be0ab49
verified
{ | |
"config": { | |
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.1+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": "6", | |
"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.2", | |
"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": 1043.902464, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 45025.071104, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 7.82226904296875, | |
"mean": 7.82226904296875, | |
"stdev": 0.0, | |
"p50": 7.82226904296875, | |
"p90": 7.82226904296875, | |
"p95": 7.82226904296875, | |
"p99": 7.82226904296875, | |
"values": [ | |
7.82226904296875 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null, | |
"measures": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1213.157376, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 283424.600064, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.5177685408592223, | |
"mean": 0.008218548267606703, | |
"stdev": 0.0018956683495927962, | |
"p50": 0.0077100911140441895, | |
"p90": 0.00862957935333252, | |
"p95": 0.008676492214202882, | |
"p99": 0.01757199449539186, | |
"values": [ | |
0.008591212272644044, | |
0.008318571090698243, | |
0.008324971199035644, | |
0.008067371368408204, | |
0.00800913143157959, | |
0.007896650791168212, | |
0.007828169822692872, | |
0.007795690059661865, | |
0.007903531074523925, | |
0.02083458709716797, | |
0.00799617099761963, | |
0.00781489086151123, | |
0.00794481086730957, | |
0.008033930778503418, | |
0.007863370895385743, | |
0.007773770809173584, | |
0.00781344985961914, | |
0.008011530876159668, | |
0.00791313123703003, | |
0.007654890060424805, | |
0.007650730133056641, | |
0.007647531032562256, | |
0.0076668901443481445, | |
0.007673611164093017, | |
0.007845930099487305, | |
0.007675530910491943, | |
0.007682730197906494, | |
0.007661129951477051, | |
0.007644491195678711, | |
0.007674089908599854, | |
0.007697610855102539, | |
0.007846409797668458, | |
0.007677771091461181, | |
0.0076840100288391115, | |
0.007689929962158203, | |
0.007659049987792968, | |
0.007678249835968018, | |
0.007684010982513428, | |
0.007694570064544678, | |
0.0077100911140441895, | |
0.007668489933013916, | |
0.00766657018661499, | |
0.007669130802154541, | |
0.007650569915771484, | |
0.007672969818115234, | |
0.007798410892486572, | |
0.007647689819335938, | |
0.007664491176605224, | |
0.007682409763336182, | |
0.007697609901428223, | |
0.007681291103363037, | |
0.00867825222015381, | |
0.015572340965270996, | |
0.008744332313537597, | |
0.008660652160644532, | |
0.00865809154510498, | |
0.008633451461791992, | |
0.00861409091949463, | |
0.008568012237548828, | |
0.007912489891052246, | |
0.0076587309837341305, | |
0.0076747298240661625, | |
0.007659531116485595 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 243.35198077292713 | |
}, | |
"energy": null, | |
"efficiency": null, | |
"measures": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1213.280256, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 284040.802304, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.4882945852279663, | |
"mean": 0.007750707702031213, | |
"stdev": 0.0013535177482878493, | |
"p50": 0.007414569854736328, | |
"p90": 0.008135659217834473, | |
"p95": 0.008201675128936768, | |
"p99": 0.013506614151000993, | |
"values": [ | |
0.007910730838775635, | |
0.007890251159667969, | |
0.007716489791870117, | |
0.0075944108963012695, | |
0.007607210159301758, | |
0.007460330009460449, | |
0.007467531204223633, | |
0.007453770160675049, | |
0.0075774497985839845, | |
0.008071690559387208, | |
0.007452330112457275, | |
0.007545289993286133, | |
0.007457769870758056, | |
0.0074369702339172365, | |
0.007435210227966308, | |
0.007412169933319092, | |
0.010994415283203125, | |
0.0073334498405456545, | |
0.007332170009613037, | |
0.007344170093536377, | |
0.007338409900665283, | |
0.007328010082244873, | |
0.0075206499099731445, | |
0.007323850154876709, | |
0.007379209995269776, | |
0.007350890159606933, | |
0.0073212900161743165, | |
0.007344810009002686, | |
0.007325769901275635, | |
0.007414569854736328, | |
0.017605464935302736, | |
0.0073990502357482914, | |
0.007396170139312744, | |
0.007343369960784912, | |
0.007377930164337158, | |
0.0074608101844787595, | |
0.007316969871520996, | |
0.0073017702102661135, | |
0.007365610122680664, | |
0.007385930061340332, | |
0.0073267297744750975, | |
0.007301449775695801, | |
0.007321770191192627, | |
0.00730033016204834, | |
0.007355370044708252, | |
0.0073120098114013675, | |
0.007355370044708252, | |
0.007324009895324707, | |
0.008030091285705566, | |
0.007353129863739013, | |
0.007694729804992676, | |
0.008192171096801757, | |
0.00805889129638672, | |
0.008167210578918458, | |
0.00814177131652832, | |
0.008202731132507324, | |
0.008281452178955078, | |
0.008111210823059082, | |
0.007764010906219482, | |
0.007367050170898438, | |
0.007345610141754151, | |
0.007460649967193604, | |
0.007432488918304443 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 129.02047638023197 | |
}, | |
"energy": null, | |
"efficiency": null, | |
"measures": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 63, | |
"total": 0.45371757411956765, | |
"mean": 0.007201866255866156, | |
"stdev": 0.0013552332318642348, | |
"p50": 0.006839688777923584, | |
"p90": 0.007608362293243408, | |
"p95": 0.0076704740047454836, | |
"p99": 0.012916890792846697, | |
"values": [ | |
0.007297770023345947, | |
0.007270890235900879, | |
0.007168010234832763, | |
0.007038410186767578, | |
0.007061129093170166, | |
0.006930408954620361, | |
0.006924650192260742, | |
0.006911368846893311, | |
0.00700800895690918, | |
0.00745793104171753, | |
0.006914569854736328, | |
0.006963688850402832, | |
0.006918249130249024, | |
0.006909129142761231, | |
0.006891048908233642, | |
0.006887689113616944, | |
0.010347053527832032, | |
0.00681312894821167, | |
0.006811688899993897, | |
0.0068224091529846195, | |
0.006790090084075928, | |
0.006780488967895508, | |
0.006968649864196777, | |
0.006796329021453857, | |
0.006828969955444336, | |
0.006805929183959961, | |
0.006764968872070312, | |
0.006776169776916504, | |
0.0067849688529968265, | |
0.006837928771972656, | |
0.01710978317260742, | |
0.00681584882736206, | |
0.006798569202423096, | |
0.006800008773803711, | |
0.006828649997711182, | |
0.0069257688522338864, | |
0.006789289951324463, | |
0.006769928932189941, | |
0.006839688777923584, | |
0.006826249122619629, | |
0.006764968872070312, | |
0.006782730102539062, | |
0.006787368774414063, | |
0.0067777690887451175, | |
0.006792329788208008, | |
0.00677920913696289, | |
0.006818249225616455, | |
0.0067899289131164555, | |
0.007492650032043457, | |
0.006827529907226563, | |
0.007161289215087891, | |
0.007653289794921875, | |
0.007521289825439453, | |
0.007662409782409668, | |
0.007613130092620849, | |
0.007671370029449463, | |
0.007684811115264893, | |
0.007589291095733643, | |
0.007219850063323974, | |
0.006821450233459473, | |
0.006796009063720703, | |
0.006918088912963867, | |
0.0068070487976074215 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.85289791176936 | |
}, | |
"energy": null, | |
"efficiency": null, | |
"measures": null | |
} | |
} | |
} |