IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1f6776d
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": "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": 1079.427072, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 48210.128896, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.2098349609375, | |
"mean": 8.2098349609375, | |
"stdev": 0.0, | |
"p50": 8.2098349609375, | |
"p90": 8.2098349609375, | |
"p95": 8.2098349609375, | |
"p99": 8.2098349609375, | |
"values": [ | |
8.2098349609375 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.661504, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 292966.27712, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.5162918047904969, | |
"mean": 0.008327287174040274, | |
"stdev": 0.00048310163198400695, | |
"p50": 0.00828285837173462, | |
"p90": 0.008949465370178223, | |
"p95": 0.009027905225753785, | |
"p99": 0.009282508707046508, | |
"values": [ | |
0.009115496635437011, | |
0.00890749740600586, | |
0.008935497283935548, | |
0.009232775688171387, | |
0.008784137725830077, | |
0.009029577255249024, | |
0.008951017379760742, | |
0.008996136665344238, | |
0.00898013687133789, | |
0.008283019065856934, | |
0.008347338676452636, | |
0.008309578895568848, | |
0.008335179328918457, | |
0.009360296249389648, | |
0.008819018363952637, | |
0.008791977882385255, | |
0.008465739250183105, | |
0.007797579765319824, | |
0.0077886199951171875, | |
0.007986859798431396, | |
0.007789899826049804, | |
0.0078027000427246095, | |
0.007982860088348389, | |
0.007812779903411865, | |
0.007791500091552734, | |
0.007880459785461426, | |
0.007860779762268066, | |
0.007783339977264404, | |
0.007789420127868652, | |
0.007801420211791992, | |
0.008006540298461914, | |
0.008282697677612305, | |
0.008368778228759765, | |
0.00883213710784912, | |
0.008314538955688476, | |
0.008858217239379882, | |
0.00878109836578369, | |
0.008869257926940918, | |
0.008789258003234863, | |
0.00821885871887207, | |
0.008324778556823731, | |
0.008157419204711915, | |
0.00800734043121338, | |
0.007810540199279785, | |
0.0077979001998901365, | |
0.00791037893295288, | |
0.007818699836730957, | |
0.007819340229034424, | |
0.00782397985458374, | |
0.007826859951019288, | |
0.007916460037231446, | |
0.008845097541809082, | |
0.008767818450927735, | |
0.008749897003173829, | |
0.008140938758850098, | |
0.008821416854858398, | |
0.008743818283081056, | |
0.008764938354492187, | |
0.007954380035400391, | |
0.007809899806976319, | |
0.007802219867706299, | |
0.0078436598777771 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 240.1742558170514 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1248.661504, | |
"max_global_vram": 68702.69952, | |
"max_process_vram": 285022.097408, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.4931841707229615, | |
"mean": 0.007954583398757443, | |
"stdev": 0.0005243054261635719, | |
"p50": 0.00787310004234314, | |
"p90": 0.008452489948272704, | |
"p95": 0.008513657855987549, | |
"p99": 0.009441260566711426, | |
"values": [ | |
0.00872509765625, | |
0.00846957778930664, | |
0.008386058807373047, | |
0.008715337753295898, | |
0.008305739402770997, | |
0.008455657958984375, | |
0.008415497779846192, | |
0.00851597785949707, | |
0.008264779090881347, | |
0.008057418823242188, | |
0.008202058792114258, | |
0.007918539047241211, | |
0.010561412811279296, | |
0.008358378410339356, | |
0.008384298324584961, | |
0.008363978385925293, | |
0.0074619011878967285, | |
0.00743342113494873, | |
0.007461421012878418, | |
0.007465260982513428, | |
0.007452301025390625, | |
0.007455501079559326, | |
0.00757326078414917, | |
0.007442700862884522, | |
0.0074964599609375, | |
0.007773580074310303, | |
0.007500461101531982, | |
0.007448300838470459, | |
0.00752846097946167, | |
0.00749213981628418, | |
0.007857100009918213, | |
0.0080860595703125, | |
0.007896940231323242, | |
0.007999660015106201, | |
0.007727019786834717, | |
0.00846253776550293, | |
0.008382858276367188, | |
0.008423977851867676, | |
0.008061899185180663, | |
0.007657899856567383, | |
0.007885900020599365, | |
0.007641580104827881, | |
0.007541259765625, | |
0.007495820999145508, | |
0.0074998211860656736, | |
0.007518860816955566, | |
0.007454380989074707, | |
0.007491500854492188, | |
0.007596139907836914, | |
0.00747774076461792, | |
0.008259979248046875, | |
0.008325578689575196, | |
0.008338699340820313, | |
0.007860300064086913, | |
0.008279499053955077, | |
0.008303659439086914, | |
0.008306218147277831, | |
0.008124617576599122, | |
0.0075591797828674315, | |
0.007475340843200683, | |
0.00748366117477417, | |
0.007623499870300293 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 125.71368604372246 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 62, | |
"total": 0.4589682607650756, | |
"mean": 0.007402713883307671, | |
"stdev": 0.000510705125465212, | |
"p50": 0.007343341112136841, | |
"p90": 0.007881084108352662, | |
"p95": 0.007962475895881652, | |
"p99": 0.008792196741104128, | |
"values": [ | |
0.008060619354248047, | |
0.007838540077209473, | |
0.007757579803466797, | |
0.008094379425048828, | |
0.00773774003982544, | |
0.007936298847198486, | |
0.007881420135498047, | |
0.007962699890136718, | |
0.00775438117980957, | |
0.007494221210479737, | |
0.007645579814910888, | |
0.0073841409683227536, | |
0.009883654594421388, | |
0.007807499885559082, | |
0.007806059837341309, | |
0.007810540199279785, | |
0.006931501865386963, | |
0.0069041428565979005, | |
0.006935503005981445, | |
0.006912621974945068, | |
0.006927341938018799, | |
0.006929101943969726, | |
0.007036141872406006, | |
0.006896942138671875, | |
0.006934062004089355, | |
0.007228141784667969, | |
0.006907021999359131, | |
0.006915341854095459, | |
0.006978861808776856, | |
0.006933102130889893, | |
0.007344301223754883, | |
0.007533740997314453, | |
0.0073583807945251465, | |
0.007455980777740479, | |
0.007136620998382568, | |
0.007958220005035401, | |
0.00787805986404419, | |
0.007866539955139161, | |
0.007497419834136963, | |
0.007089101791381836, | |
0.007322061061859131, | |
0.007079661846160889, | |
0.006959181785583496, | |
0.0069393420219421385, | |
0.006928142070770264, | |
0.006967982769012451, | |
0.0069271821975708005, | |
0.006931342124938965, | |
0.0070676617622375485, | |
0.006931662082672119, | |
0.007727180004119873, | |
0.007798699855804443, | |
0.007800139904022217, | |
0.007342381000518799, | |
0.007747660160064698, | |
0.007789740085601807, | |
0.007779980182647705, | |
0.007635980129241943, | |
0.0070145421028137206, | |
0.006936142921447754, | |
0.006944461822509766, | |
0.007053582191467285 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 135.08559371109737 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |