IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c998028 verified
raw
history blame
14.5 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": "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": {},
"hub_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,
"latency": true,
"memory": 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": "c895bf73a88625eb69457460ea71175ef52a6cb9",
"transformers_version": "4.42.3",
"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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1185.738752,
"max_global_vram": 1096.105984,
"max_process_vram": 168553.455616,
"max_reserved": 713.03168,
"max_allocated": 500.44672
},
"latency": {
"unit": "s",
"count": 65,
"total": 0.5246070489883424,
"mean": 0.008070877676743726,
"stdev": 0.0006606771460729854,
"p50": 0.00801229763031006,
"p90": 0.008460648345947267,
"p95": 0.008552936363220215,
"p99": 0.010776392669677734,
"values": [
0.01042797088623047,
0.00790573787689209,
0.008079177856445312,
0.008865415573120117,
0.008428776741027832,
0.008132298469543458,
0.008140937805175781,
0.0077790188789367675,
0.00783229923248291,
0.007989577770233154,
0.007885898113250732,
0.008051497459411621,
0.00801229763031006,
0.011395809173583984,
0.007619338989257813,
0.007466379165649414,
0.007460780143737793,
0.007616299152374268,
0.007672938823699951,
0.008119817733764648,
0.008055018424987794,
0.008236137390136719,
0.007427499771118164,
0.0076194992065429686,
0.007644618988037109,
0.007447979927062988,
0.007441100120544434,
0.0077031788825988766,
0.007439340114593506,
0.00784509801864624,
0.008454216957092284,
0.008368137359619141,
0.008403017044067382,
0.008454696655273437,
0.008432777404785156,
0.008467177391052245,
0.008446697235107423,
0.008435497283935547,
0.008427817344665528,
0.008469737052917481,
0.00843421745300293,
0.008434697151184082,
0.008461095809936524,
0.008451017379760742,
0.008432296752929688,
0.008573736190795898,
0.008438377380371094,
0.008447016716003418,
0.008445257186889649,
0.008459977149963379,
0.008441897392272949,
0.007829739093780517,
0.007666378974914551,
0.00745934009552002,
0.007443179130554199,
0.007475339889526368,
0.007478858947753906,
0.007462698936462403,
0.007489419937133789,
0.007851498126983643,
0.007465740203857422,
0.007479819774627685,
0.007467659950256347,
0.007464300155639649,
0.007451979160308838
]
},
"throughput": {
"unit": "tokens/s",
"value": 247.80452388257723
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1185.738752,
"max_global_vram": 1096.101888,
"max_process_vram": 174299.611136,
"max_reserved": 713.03168,
"max_allocated": 500.670464
},
"latency": {
"unit": "s",
"count": 65,
"total": 0.481512755393982,
"mean": 0.0074078885445228,
"stdev": 0.00040395693957959037,
"p50": 0.00745021915435791,
"p90": 0.00781393060684204,
"p95": 0.007858250141143799,
"p99": 0.008188803215026855,
"values": [
0.008151018142700195,
0.007729419231414795,
0.007524939060211182,
0.008255976676940918,
0.007713418960571289,
0.0077591781616210935,
0.007629098892211914,
0.007491818904876709,
0.007442859172821045,
0.007380939960479736,
0.0075703802108764645,
0.007550380229949951,
0.007460299015045166,
0.007378699779510498,
0.0069102210998535155,
0.006871662139892578,
0.007229740142822265,
0.007182540893554687,
0.007141260147094727,
0.0071318202018737795,
0.0072724599838256835,
0.006988141059875488,
0.006897100925445557,
0.0069932608604431155,
0.007288459777832031,
0.007003019809722901,
0.006873260974884033,
0.006869421005249023,
0.006860940933227539,
0.007804618835449219,
0.007789897918701172,
0.007120780944824219,
0.00786205816268921,
0.007843018054962158,
0.007815019130706787,
0.007801097869873047,
0.007792778968811035,
0.0078068580627441405,
0.00788877820968628,
0.007771018981933594,
0.0078049378395080565,
0.007798859119415283,
0.007801418781280518,
0.007805098056793213,
0.007789099216461181,
0.0077935791015625,
0.0078122978210449215,
0.00779629898071289,
0.0077975778579711915,
0.007808458805084228,
0.007842857837677002,
0.00745021915435791,
0.006885100841522216,
0.006856141090393067,
0.007354700088500977,
0.006903020858764648,
0.00711742115020752,
0.00688654088973999,
0.006893741130828857,
0.006890221118927002,
0.006906061172485351,
0.006914220809936524,
0.0068959808349609375,
0.006888780117034912,
0.006972461223602295
]
},
"throughput": {
"unit": "tokens/s",
"value": 134.99123184559437
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 65,
"total": 0.4549419507980347,
"mean": 0.00699910693535438,
"stdev": 0.00037178425787027543,
"p50": 0.006942380905151367,
"p90": 0.007415147399902343,
"p95": 0.007444586849212646,
"p99": 0.0076543156242370606,
"values": [
0.0075946998596191405,
0.007158220767974854,
0.006942380905151367,
0.007760299205780029,
0.007216460227966308,
0.007262700080871582,
0.007063500881195069,
0.006917901039123535,
0.006905100822448731,
0.006852941036224365,
0.007008141040802002,
0.007021420955657959,
0.0069412608146667484,
0.007005101203918457,
0.006544782161712647,
0.006521742820739746,
0.006847500801086426,
0.006836942195892334,
0.006745100975036621,
0.006782061100006104,
0.00692094087600708,
0.006630382061004639,
0.006535501956939698,
0.006643502235412597,
0.0069046211242675785,
0.006649900913238525,
0.00652558183670044,
0.006521101951599121,
0.006511181831359863,
0.007403979778289795,
0.007396938800811767,
0.00676574182510376,
0.007445738792419433,
0.007427820205688477,
0.007405419826507568,
0.0073900589942932126,
0.007400619983673096,
0.007417899131774902,
0.007487658977508545,
0.007377580165863037,
0.007400938987731934,
0.0073983798027038574,
0.007400459766387939,
0.007406859874725342,
0.007390059947967529,
0.007404940128326416,
0.007405900001525879,
0.007411019802093506,
0.007404778957366943,
0.007401740074157715,
0.007439979076385498,
0.0070785398483276364,
0.006529262065887451,
0.006506221771240234,
0.006952140808105469,
0.006543662071228027,
0.006761742115020752,
0.006539822101593018,
0.006531501770019531,
0.00653262186050415,
0.0065527820587158205,
0.006559822082519531,
0.0065478219985961915,
0.006535021781921386,
0.006615501880645752
]
},
"throughput": {
"unit": "tokens/s",
"value": 142.87537099179465
},
"energy": null,
"efficiency": null
}
}
}