IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8d41a77
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": "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, | |
"latency": true, | |
"memory": 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.2.1", | |
"optimum_benchmark_commit": "8320ce6f24eaa5099bd3b49d8d44c0c1368af14b", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.903104, | |
"max_global_vram": 1107.554304, | |
"max_process_vram": 227775.42656, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035776 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.501430368423462, | |
"mean": 0.009116915789517491, | |
"stdev": 0.0007145054113880196, | |
"p50": 0.009029122352600097, | |
"p90": 0.00958358669281006, | |
"p95": 0.009593490314483642, | |
"p99": 0.01161352951049805, | |
"values": [ | |
0.010792963027954102, | |
0.009583842277526856, | |
0.009583203315734864, | |
0.009364322662353515, | |
0.009029122352600097, | |
0.008921281814575195, | |
0.009048481941223145, | |
0.008988483428955078, | |
0.008998722076416015, | |
0.012576803207397461, | |
0.008639521598815918, | |
0.008470561981201172, | |
0.008458882331848145, | |
0.008660482406616212, | |
0.00844512176513672, | |
0.008450242042541503, | |
0.009421603202819824, | |
0.00953440284729004, | |
0.00953536319732666, | |
0.009528801918029786, | |
0.009535362243652343, | |
0.0095934419631958, | |
0.009580162048339844, | |
0.009528962135314942, | |
0.00957376194000244, | |
0.009591682434082031, | |
0.009560961723327637, | |
0.00955360221862793, | |
0.009528482437133789, | |
0.0095604829788208, | |
0.009593603134155273, | |
0.009557123184204102, | |
0.009496163368225098, | |
0.009529282569885254, | |
0.008572161674499512, | |
0.00845472240447998, | |
0.008479042053222656, | |
0.009567201614379883, | |
0.009547041893005372, | |
0.009111842155456544, | |
0.00889024257659912, | |
0.009016161918640136, | |
0.00844416332244873, | |
0.008466721534729004, | |
0.00846336269378662, | |
0.00854160213470459, | |
0.008462722778320313, | |
0.008455842018127442, | |
0.008468002319335937, | |
0.008435522079467773, | |
0.00845488166809082, | |
0.008432802200317382, | |
0.008436801910400391, | |
0.008427842140197754, | |
0.008486401557922364 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 219.37243319715353 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1049.903104, | |
"max_global_vram": 1107.554304, | |
"max_process_vram": 244252.831744, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.25952 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 55, | |
"total": 0.49807517147064206, | |
"mean": 0.009055912208557127, | |
"stdev": 0.00036102537063846345, | |
"p50": 0.009014883041381837, | |
"p90": 0.009522370147705078, | |
"p95": 0.009584658908843994, | |
"p99": 0.00970297218322754, | |
"values": [ | |
0.009014883041381837, | |
0.009310881614685058, | |
0.009283681869506837, | |
0.009057762145996094, | |
0.008947202682495117, | |
0.009124642372131347, | |
0.009068801879882812, | |
0.009161441802978516, | |
0.009200642585754395, | |
0.008834562301635741, | |
0.008744482994079589, | |
0.008763682365417481, | |
0.008684963226318359, | |
0.008665282249450684, | |
0.008696482658386231, | |
0.00874736213684082, | |
0.009775201797485351, | |
0.00945552158355713, | |
0.009343522071838379, | |
0.00932960319519043, | |
0.009368642807006836, | |
0.009330883026123046, | |
0.009427522659301758, | |
0.00957520294189453, | |
0.009641443252563477, | |
0.009509602546691894, | |
0.009606722831726075, | |
0.009558563232421874, | |
0.009390241622924804, | |
0.009475042343139648, | |
0.009468642234802246, | |
0.009530881881713867, | |
0.009399682044982911, | |
0.009139681816101074, | |
0.008614083290100098, | |
0.008655362129211426, | |
0.008923683166503906, | |
0.009507843017578125, | |
0.009492802619934081, | |
0.008901601791381835, | |
0.008932962417602539, | |
0.008618561744689942, | |
0.008803682327270508, | |
0.008656641960144044, | |
0.008732481956481934, | |
0.008702402114868163, | |
0.008728322029113769, | |
0.008647361755371093, | |
0.00860848331451416, | |
0.008639202117919922, | |
0.00869536304473877, | |
0.00852800178527832, | |
0.008734883308410645, | |
0.008647682189941407, | |
0.008670401573181153 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 110.42509876090432 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 54, | |
"total": 0.982280698776245, | |
"mean": 0.018190383310671205, | |
"stdev": 0.0009477776191301808, | |
"p50": 0.01810136413574219, | |
"p90": 0.019158131217956544, | |
"p95": 0.01924619626998901, | |
"p99": 0.020362498264312745, | |
"values": [ | |
0.019028484344482424, | |
0.01892832374572754, | |
0.01833232307434082, | |
0.018057924270629883, | |
0.018016164779663085, | |
0.018217283248901366, | |
0.01812848472595215, | |
0.01819984436035156, | |
0.021464643478393556, | |
0.017429283142089844, | |
0.017332164764404297, | |
0.01712288475036621, | |
0.017363523483276366, | |
0.01716576385498047, | |
0.017186723709106445, | |
0.019164804458618165, | |
0.019340003967285156, | |
0.018969444274902342, | |
0.01889248466491699, | |
0.018935043334960936, | |
0.018992963790893554, | |
0.01898320388793945, | |
0.01892912483215332, | |
0.01938512420654297, | |
0.019112964630126954, | |
0.01916096305847168, | |
0.019151523590087892, | |
0.01905200386047363, | |
0.019051204681396483, | |
0.01910128402709961, | |
0.01902736473083496, | |
0.01906208419799805, | |
0.01869840431213379, | |
0.01712096405029297, | |
0.017217124938964844, | |
0.017518884658813478, | |
0.019195684432983397, | |
0.01903680419921875, | |
0.018074243545532227, | |
0.017814563751220702, | |
0.017595684051513672, | |
0.017221603393554687, | |
0.017281604766845704, | |
0.01715264320373535, | |
0.01730048370361328, | |
0.01728560447692871, | |
0.01726112365722656, | |
0.017191043853759767, | |
0.017136804580688475, | |
0.01724160385131836, | |
0.017103683471679686, | |
0.017214244842529296, | |
0.01707248306274414, | |
0.0172600040435791 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 54.97410268498081 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |