![IlyasMoutawwakil's picture](https://cdn-avatars.huggingface.co/v1/production/uploads/1642598610696-noauth.jpeg)
IlyasMoutawwakil
HF staff
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0e764af
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": "ba7db8be4ae5965d5e6183075f0edd30672dab7b", | |
"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.955584, | |
"max_global_vram": 1725.861888, | |
"max_process_vram": 48302.227456, | |
"max_reserved": 725.614592, | |
"max_allocated": 666.338304 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 8.16395361328125, | |
"mean": 8.16395361328125, | |
"stdev": 0.0, | |
"p50": 8.16395361328125, | |
"p90": 8.16395361328125, | |
"p95": 8.16395361328125, | |
"p99": 8.16395361328125, | |
"values": [ | |
8.16395361328125 | |
] | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.305152, | |
"max_global_vram": 1390.870528, | |
"max_process_vram": 297492.287488, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.035264 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.5267999162673951, | |
"mean": 0.009939621061648965, | |
"stdev": 0.0034845797481902765, | |
"p50": 0.008937071800231934, | |
"p90": 0.010082399368286133, | |
"p95": 0.01754524536132812, | |
"p99": 0.024361555252075173, | |
"values": [ | |
0.010067167282104493, | |
0.010086207389831544, | |
0.009730201721191406, | |
0.009328758239746094, | |
0.009030513763427735, | |
0.008909551620483399, | |
0.008966833114624024, | |
0.008982033729553222, | |
0.008858991622924804, | |
0.008914833068847655, | |
0.009463479042053222, | |
0.009541239738464356, | |
0.009379318237304687, | |
0.009511319160461426, | |
0.009530360221862794, | |
0.00902987289428711, | |
0.008968592643737793, | |
0.00894587230682373, | |
0.008936113357543945, | |
0.008924752235412598, | |
0.008924912452697754, | |
0.008950833320617677, | |
0.008925071716308594, | |
0.00892251205444336, | |
0.00894603157043457, | |
0.008937071800231934, | |
0.008950033187866212, | |
0.00892763328552246, | |
0.008941712379455567, | |
0.008949233055114745, | |
0.008872112274169923, | |
0.008847790718078613, | |
0.00883835220336914, | |
0.008851151466369628, | |
0.008920432090759278, | |
0.008881711959838867, | |
0.008872591972351074, | |
0.008535306930541992, | |
0.008633548736572266, | |
0.008882672309875488, | |
0.008593387603759765, | |
0.00854058837890625, | |
0.008273703575134277, | |
0.008410825729370117, | |
0.01606548309326172, | |
0.009075634002685547, | |
0.019764888763427736, | |
0.020912424087524414, | |
0.012091512680053712, | |
0.008101061820983886, | |
0.028098114013671877, | |
0.008191303253173828, | |
0.008064262390136719 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 201.21491429052566 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1056.272384, | |
"max_global_vram": 1392.308224, | |
"max_process_vram": 304331.313152, | |
"max_reserved": 725.614592, | |
"max_allocated": 513.259008 | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.4834712076187133, | |
"mean": 0.009122098256956855, | |
"stdev": 0.002730093220613872, | |
"p50": 0.008741550445556641, | |
"p90": 0.009365398216247559, | |
"p95": 0.010058558845520017, | |
"p99": 0.019677565879821727, | |
"values": [ | |
0.009706042289733886, | |
0.009644600868225097, | |
0.009049874305725097, | |
0.008326664924621582, | |
0.008212423324584961, | |
0.008215944290161132, | |
0.00831418514251709, | |
0.0081626615524292, | |
0.008125862121582032, | |
0.009268755912780762, | |
0.009389558792114257, | |
0.00916171646118164, | |
0.009165876388549805, | |
0.010587333679199219, | |
0.00894747257232666, | |
0.008830191612243653, | |
0.00887515163421631, | |
0.008842991828918458, | |
0.00886107063293457, | |
0.008930192947387696, | |
0.008835951805114746, | |
0.008848751068115234, | |
0.008984272956848144, | |
0.008894512176513672, | |
0.008942193031311035, | |
0.008843791961669923, | |
0.008814030647277833, | |
0.008944592475891112, | |
0.008891152381896974, | |
0.008741550445556641, | |
0.008632429122924805, | |
0.008682350158691406, | |
0.00862586784362793, | |
0.008679789543151855, | |
0.008562828063964844, | |
0.008760910034179687, | |
0.008595467567443848, | |
0.008232583999633789, | |
0.008648268699645996, | |
0.008194982528686523, | |
0.008307464599609375, | |
0.008354504585266114, | |
0.00827738380432129, | |
0.008349544525146484, | |
0.008725069999694824, | |
0.008668749809265137, | |
0.028256675720214845, | |
0.008136741638183594, | |
0.011758387565612793, | |
0.007864099025726318, | |
0.007865697860717773, | |
0.007878819942474365, | |
0.008053220748901368 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 109.62390141296301 | |
}, | |
"energy": null, | |
"efficiency": null | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 53, | |
"total": 0.4264730529785155, | |
"mean": 0.008046661376953123, | |
"stdev": 0.0006073211424505217, | |
"p50": 0.00801002025604248, | |
"p90": 0.008483306503295897, | |
"p95": 0.008881903648376465, | |
"p99": 0.01041444152832031, | |
"values": [ | |
0.008928272247314453, | |
0.008850991249084473, | |
0.008487306594848632, | |
0.007857539176940919, | |
0.007766977787017822, | |
0.007769857883453369, | |
0.007838978767395019, | |
0.007724576950073242, | |
0.007669375896453857, | |
0.00846730613708496, | |
0.008584108352661133, | |
0.008382025718688966, | |
0.008345545768737793, | |
0.009742202758789063, | |
0.008133063316345215, | |
0.008080581665039062, | |
0.008047462463378906, | |
0.008076581954956055, | |
0.008055781364440918, | |
0.008101701736450195, | |
0.008062341690063476, | |
0.008047780990600585, | |
0.008205863952636719, | |
0.008085382461547852, | |
0.008105063438415527, | |
0.008054661750793456, | |
0.008058341026306152, | |
0.008078340530395509, | |
0.008084741592407227, | |
0.00801002025604248, | |
0.008000741004943848, | |
0.008001701354980469, | |
0.007971620082855225, | |
0.00797498083114624, | |
0.00794681978225708, | |
0.008080421447753906, | |
0.007938340187072753, | |
0.007548095226287842, | |
0.007965220928192138, | |
0.007591615200042725, | |
0.007605696201324463, | |
0.007710496902465821, | |
0.007640575885772705, | |
0.007633855819702148, | |
0.007999141216278077, | |
0.008031142234802247, | |
0.007450654029846192, | |
0.007428253173828125, | |
0.0111427001953125, | |
0.007244731903076172, | |
0.007201048851013183, | |
0.00725897216796875, | |
0.00740345287322998 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 124.2751438334604 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |