IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f8e919d verified
raw
history blame
14.8 kB
{
"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": "77ca106f4cf33f416814fc4a120313d806701176",
"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.410816,
"max_global_vram": 3298.361344,
"max_process_vram": 46840.471552,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.61434912109375,
"mean": 7.61434912109375,
"stdev": 0.0,
"p50": 7.61434912109375,
"p90": 7.61434912109375,
"p95": 7.61434912109375,
"p99": 7.61434912109375,
"values": [
7.61434912109375
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.858688,
"max_global_vram": 3391.066112,
"max_process_vram": 272147.668992,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.5151758947372433,
"mean": 0.008586264912287393,
"stdev": 0.0002916945060906241,
"p50": 0.008783176898956298,
"p90": 0.00883599166870117,
"p95": 0.00884788932800293,
"p99": 0.008886119623184204,
"values": [
0.008808775901794434,
0.008813096046447753,
0.008806376457214356,
0.008782377243041992,
0.008806857109069824,
0.008778057098388671,
0.008809256553649902,
0.00878205680847168,
0.008809897422790527,
0.008800457000732422,
0.008405418395996093,
0.008470537185668946,
0.008251977920532226,
0.008767815589904785,
0.00831581687927246,
0.008254858016967773,
0.008136137962341309,
0.008108457565307618,
0.008136938095092774,
0.008278058052062989,
0.008181258201599121,
0.008496936798095702,
0.008817095756530762,
0.008812935829162597,
0.008849255561828613,
0.008814696311950684,
0.008836135864257813,
0.008818375587463378,
0.008803336143493653,
0.008841575622558594,
0.008780936241149902,
0.008797896385192872,
0.00879581642150879,
0.008783976554870605,
0.00881053638458252,
0.008798855781555176,
0.008796136856079101,
0.008850695610046387,
0.008811335563659668,
0.008835016250610351,
0.00881053638458252,
0.008798376083374023,
0.008835975646972655,
0.008802696228027344,
0.008847817420959473,
0.008937095642089844,
0.00832045841217041,
0.008356616973876954,
0.008291817665100098,
0.008195978164672851,
0.008291017532348633,
0.008218538284301758,
0.0083265380859375,
0.008395497322082519,
0.008326698303222656,
0.008551977157592773,
0.008515016555786133,
0.008246538162231445,
0.00783725881576538,
0.007813418865203857
]
},
"throughput": {
"unit": "tokens/s",
"value": 232.93015303288578
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.858688,
"max_global_vram": 3394.134016,
"max_process_vram": 293675.016192,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.48999373388290396,
"mean": 0.008166562231381732,
"stdev": 0.00026526136742376696,
"p50": 0.008321018218994142,
"p90": 0.008407065868377686,
"p95": 0.008426681280136109,
"p99": 0.00851542649269104,
"values": [
0.008316778182983398,
0.00834733772277832,
0.008318218231201172,
0.008304456710815429,
0.008366537094116212,
0.008339496612548828,
0.00835181713104248,
0.008317737579345704,
0.008335818290710449,
0.008514376640319824,
0.00800669765472412,
0.0078081398010253905,
0.0077086200714111324,
0.007710060119628906,
0.007694220066070557,
0.007747659206390381,
0.007820619106292724,
0.007927498817443847,
0.007869898796081543,
0.007921258926391601,
0.007615979194641113,
0.008342218399047852,
0.00845981788635254,
0.008361417770385743,
0.008310378074645996,
0.00840029811859131,
0.008359498023986816,
0.008330698013305665,
0.008327817916870118,
0.008348777770996093,
0.008354377746582032,
0.00836093807220459,
0.00840573787689209,
0.00832381820678711,
0.00835165786743164,
0.008516937255859376,
0.008375496864318847,
0.008419017791748046,
0.008324777603149414,
0.008371658325195312,
0.00842045783996582,
0.008317737579345704,
0.008370218276977539,
0.008400458335876465,
0.00838301658630371,
0.008366058349609375,
0.00814413833618164,
0.008032299041748047,
0.00842493724822998,
0.00778157901763916,
0.007986059188842773,
0.00786205816268921,
0.007895499229431153,
0.007874218940734864,
0.007955018997192382,
0.007852619171142577,
0.008157737731933594,
0.007928779125213623,
0.007597259044647217,
0.007855018138885499
]
},
"throughput": {
"unit": "tokens/s",
"value": 122.45054548868676
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 60,
"total": 0.45788565301895134,
"mean": 0.007631427550315858,
"stdev": 0.00027207667346830733,
"p50": 0.0078053388595581055,
"p90": 0.007865114784240722,
"p95": 0.007901810908317566,
"p99": 0.007981855602264405,
"values": [
0.007805738925933838,
0.007815178871154784,
0.007799499034881592,
0.007797739028930664,
0.007819179058074952,
0.007814058780670166,
0.007816938877105713,
0.007813418865203857,
0.007810059070587158,
0.00798685884475708,
0.007540459156036377,
0.0073199810981750485,
0.007231980800628662,
0.007201100826263428,
0.00722222089767456,
0.007225100040435791,
0.0073287801742553714,
0.007377260208129883,
0.007326381206512451,
0.007398220062255859,
0.007073581218719482,
0.007831019878387451,
0.007939659118652343,
0.007840138912200928,
0.007788458824157715,
0.00786461877822876,
0.007835978984832764,
0.007804938793182373,
0.007810859203338623,
0.007820778846740723,
0.007834379196166991,
0.007820939064025879,
0.00786957883834839,
0.0078114991188049316,
0.007834218978881835,
0.007978378772735596,
0.007850539207458497,
0.007887019157409667,
0.007798698902130127,
0.007842379093170166,
0.007899818897247314,
0.007794538974761963,
0.007851338863372803,
0.007841419219970704,
0.007858698844909667,
0.00783405876159668,
0.007583818912506104,
0.007434381008148193,
0.007853579044342042,
0.007207981109619141,
0.00741294002532959,
0.007280779838562012,
0.007315180778503418,
0.007305740833282471,
0.00735837984085083,
0.0072748599052429195,
0.007570539951324463,
0.007326379776000976,
0.007046700954437256,
0.007246700763702393
]
},
"throughput": {
"unit": "tokens/s",
"value": 131.03708230298417
},
"energy": null,
"efficiency": null
}
}
}