IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a55c4de verified
raw
history blame
15.6 kB
{
"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": 1082014.482432,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-122-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.5.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.45.1",
"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.13.0",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1106.681856,
"max_global_vram": 68702.69952,
"max_process_vram": 4177.125376,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.07741734313964843
],
"count": 1,
"total": 0.07741734313964843,
"mean": 0.07741734313964843,
"p50": 0.07741734313964843,
"p90": 0.07741734313964843,
"p95": 0.07741734313964843,
"p99": 0.07741734313964843,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1273.151488,
"max_global_vram": 68702.69952,
"max_process_vram": 315595.313152,
"max_reserved": 725.614592,
"max_allocated": 513.235456
},
"latency": {
"unit": "s",
"values": [
0.008404292106628419,
0.007835333824157714,
0.007758533954620362,
0.007977572917938233,
0.0077690939903259275,
0.007887174129486084,
0.007758853912353515,
0.007799814224243164,
0.007765414237976075,
0.008298372268676758,
0.008858209609985351,
0.008784290313720702,
0.008589570999145507,
0.0089439697265625,
0.00882540988922119,
0.008867171287536621,
0.00880268955230713,
0.008840611457824707,
0.008819809913635254,
0.008794851303100586,
0.008770371437072754,
0.00879149055480957,
0.008803330421447753,
0.008647171020507813,
0.008238853454589844,
0.008346852302551269,
0.00881068992614746,
0.008800129890441894,
0.008772770881652832,
0.008814370155334473,
0.008801251411437989,
0.008790209770202636,
0.008860931396484376,
0.008826849937438964,
0.008792930603027344,
0.008810370445251466,
0.008856769561767577,
0.008808449745178222,
0.008829730987548828,
0.008849249839782716,
0.008223012924194336,
0.00795741319656372,
0.008123653411865234,
0.008213253021240234,
0.00884844970703125,
0.008943169593811036,
0.00845021152496338,
0.00848301124572754,
0.008515971183776855,
0.008917889595031737,
0.008781411170959473,
0.008416452407836915,
0.007945093154907226,
0.008081571578979492,
0.008577731132507324,
0.008767010688781739,
0.008809250831604004,
0.008923489570617676,
0.008768291473388671,
0.008794530868530274,
0.008819009780883789,
0.008804611206054688
],
"count": 62,
"total": 0.5305683026313782,
"mean": 0.008557553268248036,
"p50": 0.00878725004196167,
"p90": 0.008858065605163574,
"p95": 0.00891535367965698,
"p99": 0.008943481645584107,
"stdev": 0.00037643283284087537,
"stdev_": 4.398837156381983
},
"throughput": {
"unit": "tokens/s",
"value": 233.7116623533977
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1273.151488,
"max_global_vram": 68702.69952,
"max_process_vram": 308694.188032,
"max_reserved": 725.614592,
"max_allocated": 513.257984
},
"latency": {
"unit": "s",
"values": [
0.007027337074279785,
0.007195335865020752,
0.00701421594619751,
0.007050696849822998,
0.00719757604598999,
0.007433895111083984,
0.007004776954650879,
0.006975336074829102,
0.007028776168823242,
0.007768774032592773,
0.007901254177093506,
0.00789997386932373,
0.007932454109191895,
0.007898852825164795,
0.007948934078216553,
0.007898053169250489,
0.00805245304107666,
0.007916613101959229,
0.007917094230651855,
0.007897412776947022,
0.007889732837677002,
0.007911812782287598,
0.00791261386871338,
0.007463973999023437,
0.007406694889068604,
0.007919652938842774,
0.00792445421218872,
0.007933893203735352,
0.007895012855529786,
0.00804749298095703,
0.007912932872772217,
0.00801613426208496,
0.007958212852478027,
0.00796845293045044,
0.007947813034057618,
0.007983013153076172,
0.00796109390258789,
0.007914213180541993,
0.007902853012084961,
0.0079518141746521,
0.007432294845581055,
0.007359334945678711,
0.007587173938751221,
0.007966053009033204,
0.007957892894744873,
0.007716934204101563,
0.007410055160522461,
0.007554375171661377,
0.007465254783630371,
0.008144131660461426,
0.007885572910308837,
0.007180136203765869,
0.007473575115203857,
0.0073430161476135255,
0.007919493198394776,
0.008083172798156738,
0.00795693302154541,
0.007906053066253662,
0.007900453090667725,
0.007929253101348876,
0.007954051971435547,
0.007927493095397949
],
"count": 62,
"total": 0.47883438777923587,
"mean": 0.007723135286761869,
"p50": 0.007902053594589235,
"p90": 0.007968212938308716,
"p95": 0.008045925045013428,
"p99": 0.008106946754455566,
"stdev": 0.00033120013600461146,
"stdev_": 4.288415568380856
},
"throughput": {
"unit": "tokens/s",
"value": 129.4810932179432
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006641417980194092,
0.006824936866760254,
0.006641256809234619,
0.006688298225402832,
0.006834056854248047,
0.007074215888977051,
0.006641417980194092,
0.0066124567985534665,
0.006620138168334961,
0.007406694889068604,
0.007458694934844971,
0.007492615222930908,
0.007522534847259521,
0.007487493991851807,
0.007527655124664307,
0.007477574825286866,
0.007638215065002441,
0.007505733966827393,
0.007502695083618164,
0.007485734939575195,
0.007471654891967773,
0.007501254081726074,
0.007502854824066162,
0.0070407757759094235,
0.006989736080169678,
0.007497414112091065,
0.00749853515625,
0.00751437520980835,
0.007473895072937012,
0.007625575065612793,
0.00750093412399292,
0.007587655067443848,
0.007530854225158691,
0.007531974792480469,
0.0075391740798950195,
0.007562375068664551,
0.0075370950698852536,
0.007503015041351318,
0.00749277400970459,
0.0075351748466491696,
0.007059336185455322,
0.006935337066650391,
0.007210375785827637,
0.007543334007263184,
0.007541254997253418,
0.007299495220184326,
0.006982376098632812,
0.00714413595199585,
0.007038695812225342,
0.007696774005889893,
0.007476775169372558,
0.00681645679473877,
0.00709773588180542,
0.0069526171684265135,
0.007505734920501709,
0.00765981388092041,
0.00751005506515503,
0.0074753351211547855,
0.007479334831237793,
0.007511653900146484,
0.00752093505859375,
0.007491973876953125
],
"count": 62,
"total": 0.4534704718589782,
"mean": 0.007314039868693197,
"p50": 0.007489733934402466,
"p90": 0.007543126106262207,
"p95": 0.007623679065704345,
"p99": 0.007674228329658508,
"stdev": 0.00031496432782594905,
"stdev_": 4.306297661489557
},
"throughput": {
"unit": "tokens/s",
"value": 136.7233455043595
},
"energy": null,
"efficiency": null
}
}
}