IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
be1ddf5
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_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": {}, | |
"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.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.3.1", | |
"optimum_benchmark_commit": "9337b863a5d9e4991ca83847e6c2f66a543b52d9", | |
"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": 901.337088, | |
"max_global_vram": 1011.744768, | |
"max_process_vram": 44411.666432, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 6.89594287109375, | |
"mean": 6.89594287109375, | |
"stdev": 0.0, | |
"p50": 6.89594287109375, | |
"p90": 6.89594287109375, | |
"p95": 6.89594287109375, | |
"p99": 6.89594287109375, | |
"values": [ | |
6.89594287109375 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1055.821824, | |
"max_global_vram": 1106.128896, | |
"max_process_vram": 277387.706368, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.512474127292633, | |
"mean": 0.008007408238947392, | |
"stdev": 0.00026691809325690675, | |
"p50": 0.007941738605499269, | |
"p90": 0.00836408920288086, | |
"p95": 0.008494136714935303, | |
"p99": 0.008802112083435058, | |
"values": [ | |
0.008428618431091309, | |
0.008479177474975586, | |
0.008391977310180664, | |
0.008203657150268554, | |
0.008148777961730956, | |
0.008252137184143067, | |
0.008003977775573731, | |
0.008254537582397461, | |
0.008140777587890625, | |
0.008674216270446778, | |
0.007996459007263184, | |
0.007974859237670898, | |
0.008012937545776368, | |
0.008170537948608399, | |
0.00801837921142578, | |
0.008005417823791505, | |
0.008064618110656738, | |
0.008057578086853028, | |
0.00802797794342041, | |
0.0079497389793396, | |
0.007933738231658936, | |
0.007961257934570313, | |
0.007796779155731202, | |
0.007779338836669922, | |
0.007807498931884766, | |
0.007777578830718994, | |
0.007784778118133545, | |
0.0077839789390563964, | |
0.0077978987693786625, | |
0.0077858991622924804, | |
0.007775659084320068, | |
0.007756618976593017, | |
0.007789898872375489, | |
0.007796938896179199, | |
0.007781259059906006, | |
0.007803819179534912, | |
0.007788457870483398, | |
0.0078004589080810545, | |
0.007804459095001221, | |
0.00782733917236328, | |
0.0077716588973999025, | |
0.007792939186096191, | |
0.0077906990051269534, | |
0.007792459011077881, | |
0.007788778781890869, | |
0.007847339153289794, | |
0.008792936325073242, | |
0.00824765682220459, | |
0.008496776580810547, | |
0.008817735671997071, | |
0.008299016952514648, | |
0.008290377616882325, | |
0.008280938148498534, | |
0.008186376571655274, | |
0.008145737648010253, | |
0.007789419174194336, | |
0.0077982177734375, | |
0.0077999792098999024, | |
0.00797309923171997, | |
0.007871977806091309, | |
0.007746539115905762, | |
0.008183656692504883, | |
0.007775978088378906, | |
0.007803819179534912 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 249.76870671738206 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1055.821824, | |
"max_global_vram": 1107.513344, | |
"max_process_vram": 254904.95488, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4979125661849977, | |
"mean": 0.007779883846640587, | |
"stdev": 0.0005253625709886658, | |
"p50": 0.007662379026412964, | |
"p90": 0.008028681945800782, | |
"p95": 0.008281794261932372, | |
"p99": 0.009599175672531119, | |
"values": [ | |
0.007994378089904785, | |
0.007935018062591552, | |
0.007859179019927979, | |
0.00784605884552002, | |
0.007718379020690918, | |
0.00848781681060791, | |
0.007863819122314453, | |
0.007703659057617188, | |
0.011491489410400391, | |
0.008147018432617188, | |
0.0077238187789917, | |
0.00772813892364502, | |
0.0077772588729858394, | |
0.007745258808135987, | |
0.008030697822570801, | |
0.008023978233337403, | |
0.00766365909576416, | |
0.007788619041442871, | |
0.007762059211730957, | |
0.007674859046936035, | |
0.007794058799743652, | |
0.007485579967498779, | |
0.007648299217224121, | |
0.007554218769073486, | |
0.007516298770904541, | |
0.007524779796600342, | |
0.007522540092468262, | |
0.007523179054260254, | |
0.007532619953155518, | |
0.00751117992401123, | |
0.0074945387840270996, | |
0.007519659996032715, | |
0.007499659061431884, | |
0.007500938892364502, | |
0.007510379791259765, | |
0.007661098957061767, | |
0.007556620121002197, | |
0.007566699028015137, | |
0.0075638189315795894, | |
0.007556939125061035, | |
0.007488460063934326, | |
0.0074660592079162594, | |
0.007565898895263672, | |
0.007497580051422119, | |
0.007522539138793945, | |
0.007802059173583984, | |
0.008305578231811524, | |
0.007975179195404053, | |
0.00847757625579834, | |
0.007993578910827637, | |
0.007955818176269532, | |
0.008011178016662597, | |
0.008037097930908203, | |
0.007843338966369628, | |
0.007870378017425537, | |
0.007512460231781006, | |
0.007480299949645996, | |
0.007528779029846192, | |
0.00761453914642334, | |
0.007763178825378418, | |
0.00749597978591919, | |
0.007628300189971924, | |
0.0075353398323059085, | |
0.007533098220825195 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 128.53662338825376 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 64, | |
"total": 0.4615021047592165, | |
"mean": 0.007210970386862754, | |
"stdev": 0.0005169537508574578, | |
"p50": 0.007078299999237061, | |
"p90": 0.0074703152656555175, | |
"p95": 0.007702396202087402, | |
"p99": 0.009021052713394158, | |
"values": [ | |
0.007388938903808593, | |
0.0073476600646972656, | |
0.007297100067138672, | |
0.007258380889892578, | |
0.007173900127410889, | |
0.007965579032897949, | |
0.007311660766601563, | |
0.0071586999893188475, | |
0.010818210601806641, | |
0.007600940227508545, | |
0.007168620109558105, | |
0.007196619987487793, | |
0.0072107000350952145, | |
0.007196300029754639, | |
0.007472138881683349, | |
0.007466060161590576, | |
0.007117101192474365, | |
0.007235980987548828, | |
0.007216461181640625, | |
0.007085579872131348, | |
0.0072386999130249026, | |
0.006937581062316895, | |
0.007071020126342774, | |
0.006969100952148437, | |
0.006918540954589844, | |
0.006943661212921143, | |
0.006985261917114258, | |
0.006966540813446045, | |
0.006984460830688477, | |
0.006985741138458252, | |
0.006939980983734131, | |
0.006937740802764892, | |
0.006933260917663575, | |
0.006949420928955078, | |
0.0069297409057617184, | |
0.007052140235900879, | |
0.006966221809387207, | |
0.006963341236114502, | |
0.007015340805053711, | |
0.006994380950927735, | |
0.0069407811164855955, | |
0.006934061050415039, | |
0.006968300819396972, | |
0.006952301025390625, | |
0.006948461055755615, | |
0.007273419857025147, | |
0.007720300197601318, | |
0.007385580062866211, | |
0.007956138134002685, | |
0.007483339786529541, | |
0.007424459934234619, | |
0.007456140041351318, | |
0.007424298763275146, | |
0.007252460956573487, | |
0.007266059875488281, | |
0.006937901020050049, | |
0.006916461944580078, | |
0.0069150209426879885, | |
0.006995020866394043, | |
0.007179181098937989, | |
0.0068819007873535155, | |
0.007052300930023193, | |
0.006913422107696533, | |
0.006955980777740478 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 138.67759071952946 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |