IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8229ad4 verified
raw
history blame
14 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": "034e40c3ab573ad44343a7fcce8e83f9a39327de",
"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.44768,
"max_global_vram": 1296.50688,
"max_process_vram": 48110.678016,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 8.003123046875,
"mean": 8.003123046875,
"stdev": 0.0,
"p50": 8.003123046875,
"p90": 8.003123046875,
"p95": 8.003123046875,
"p99": 8.003123046875,
"values": [
8.003123046875
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.895552,
"max_global_vram": 1390.891008,
"max_process_vram": 280884.14208,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.5108225116729735,
"mean": 0.009459676142092102,
"stdev": 0.0002182835262355088,
"p50": 0.009425006389617921,
"p90": 0.009648750972747804,
"p95": 0.00991194462776184,
"p99": 0.010205917711257935,
"values": [
0.010081009864807129,
0.010346771240234375,
0.009918289184570312,
0.009597006797790528,
0.009460366249084473,
0.009593007087707519,
0.009490926742553711,
0.00938260555267334,
0.009513167381286622,
0.009550766944885254,
0.009463565826416016,
0.009430286407470703,
0.009413966178894043,
0.009670927047729492,
0.009505646705627441,
0.00948980712890625,
0.009486926078796388,
0.009551727294921875,
0.009562767028808594,
0.009510926246643066,
0.00947188663482666,
0.009908528327941894,
0.009579727172851563,
0.009795408248901367,
0.009549647331237794,
0.00941524600982666,
0.009404047012329102,
0.009341965675354004,
0.009349486351013184,
0.00938516616821289,
0.009311085700988769,
0.009419726371765138,
0.009548686981201171,
0.009484367370605469,
0.009464366912841797,
0.009312525749206543,
0.009341806411743163,
0.009289485931396484,
0.00927684497833252,
0.00932852554321289,
0.009323406219482421,
0.00925620460510254,
0.009279086112976074,
0.009218605041503906,
0.009250285148620606,
0.009476527214050293,
0.009253166198730468,
0.009225646018981933,
0.00924500560760498,
0.009264204978942871,
0.009233004570007324,
0.009253165245056153,
0.00925716495513916,
0.00928804588317871
]
},
"throughput": {
"unit": "tokens/s",
"value": 211.42372846156232
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.895552,
"max_global_vram": 1392.275456,
"max_process_vram": 261691.691008,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.49798405361175535,
"mean": 0.00922192691873621,
"stdev": 0.00017400958752777581,
"p50": 0.009195165157318115,
"p90": 0.009389631080627443,
"p95": 0.009491094636917113,
"p99": 0.009865597219467163,
"values": [
0.009937169075012207,
0.009802127838134765,
0.009404206275939941,
0.00912996482849121,
0.009214125633239745,
0.009275885581970214,
0.009083724021911621,
0.009105805397033692,
0.009231565475463867,
0.00937972640991211,
0.009208206176757813,
0.009220364570617676,
0.009280365943908691,
0.009244365692138672,
0.009320365905761718,
0.009288365364074708,
0.009239246368408203,
0.009293806076049805,
0.009034764289855958,
0.009110445022583008,
0.009383246421813965,
0.009289485931396484,
0.00955588722229004,
0.009329965591430664,
0.009119725227355957,
0.009123724937438965,
0.009244364738464355,
0.009104044914245605,
0.009182604789733886,
0.00912180519104004,
0.009119725227355957,
0.009392367362976075,
0.009213165283203125,
0.009149165153503417,
0.00903636360168457,
0.009245165824890137,
0.009153964996337891,
0.009050764083862305,
0.00912132453918457,
0.00913316535949707,
0.00904212474822998,
0.009018605232238769,
0.00909300422668457,
0.009082124710083008,
0.009095885276794434,
0.009001164436340333,
0.00919716453552246,
0.00901716423034668,
0.009456206321716308,
0.009186445236206054,
0.00930436611175537,
0.00919316577911377,
0.009232205390930176,
0.009189805030822755
]
},
"throughput": {
"unit": "tokens/s",
"value": 108.43720719238163
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 54,
"total": 0.4584897689819336,
"mean": 0.008490551277443215,
"stdev": 0.00015693752482444386,
"p50": 0.008453961849212648,
"p90": 0.008676954936981202,
"p95": 0.008752451133728027,
"p99": 0.009049189434051513,
"values": [
0.009110923767089843,
0.008994443893432617,
0.00870612335205078,
0.008476201057434083,
0.008528041839599609,
0.008586121559143066,
0.008394440650939942,
0.008437960624694825,
0.008555401802062988,
0.008693323135375977,
0.008506761550903321,
0.00848164176940918,
0.008466602325439453,
0.008480841636657716,
0.008443881034851074,
0.008532522201538086,
0.008517321586608886,
0.008574762344360352,
0.008411240577697755,
0.008408041954040527,
0.008633962631225586,
0.008596842765808105,
0.008822443962097169,
0.008638762474060058,
0.008454281806945801,
0.008453641891479492,
0.008478760719299316,
0.008390602111816406,
0.008449161529541015,
0.008388840675354003,
0.00834420108795166,
0.008714762687683106,
0.008518921852111816,
0.008522281646728516,
0.008360200881958008,
0.008540362358093261,
0.00846052074432373,
0.008397320747375488,
0.008430602073669434,
0.008442441940307617,
0.008330760955810547,
0.0083245210647583,
0.008354921340942383,
0.008341960906982422,
0.008340520858764649,
0.008379080772399902,
0.008357320785522461,
0.008321640968322754,
0.008529002189636231,
0.008320040702819824,
0.008414760589599609,
0.008373321533203125,
0.00833683967590332,
0.008419561386108398
]
},
"throughput": {
"unit": "tokens/s",
"value": 117.77798252708192
},
"energy": null,
"efficiency": null
}
}
}