IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4de8729 verified
raw
history blame
13.9 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": "50da7b73412b5fcfdb3831f32e0f2c5b8acaf7cf",
"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": 1179.742208,
"max_global_vram": 1096.105984,
"max_process_vram": 176215.740416,
"max_reserved": 713.03168,
"max_allocated": 500.44672
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.501712215423584,
"mean": 0.008361870257059733,
"stdev": 0.0010546983714495176,
"p50": 0.008058059692382812,
"p90": 0.008590042877197265,
"p95": 0.008988521766662597,
"p99": 0.01318339283943175,
"values": [
0.01543964195251465,
0.00844765853881836,
0.008373579025268555,
0.00828157901763916,
0.008472139358520508,
0.008276300430297851,
0.008320139884948731,
0.008313899040222167,
0.008264619827270508,
0.008304299354553223,
0.008240139961242676,
0.008294219970703126,
0.0083916597366333,
0.008587658882141113,
0.008611498832702636,
0.008571980476379394,
0.008279820442199708,
0.011615490913391114,
0.008100139617919921,
0.008022219657897948,
0.007966061115264893,
0.007925260066986083,
0.007930220127105713,
0.007940781116485596,
0.008037579536437989,
0.008032940864562988,
0.00803518009185791,
0.007943181037902832,
0.008011341094970703,
0.00792494010925293,
0.008206219673156738,
0.008988457679748535,
0.008507658958435058,
0.008499818801879883,
0.008989739418029784,
0.008900938987731933,
0.008498859405517579,
0.008151820182800293,
0.008004620552062988,
0.007992939949035644,
0.007996621131896973,
0.008003020286560058,
0.007970860958099365,
0.008072620391845703,
0.00801982021331787,
0.00813677978515625,
0.008010061264038085,
0.008058059692382812,
0.007961260795593261,
0.007904301166534424,
0.00798974084854126,
0.00797902011871338,
0.007981101036071777,
0.007979340076446533,
0.007985421180725098,
0.007979980945587158,
0.007975500106811523,
0.007958540916442871,
0.007994861125946044,
0.008058059692382812
]
},
"throughput": {
"unit": "tokens/s",
"value": 239.18094140619394
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1179.742208,
"max_global_vram": 1096.101888,
"max_process_vram": 166638.821376,
"max_reserved": 713.03168,
"max_allocated": 500.670464
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.49533415842056283,
"mean": 0.00825556930700938,
"stdev": 0.00028739895685615444,
"p50": 0.008160300254821777,
"p90": 0.008672027397155762,
"p95": 0.008844611072540283,
"p99": 0.009098631525039673,
"values": [
0.009126857757568359,
0.008504619598388672,
0.00839918041229248,
0.008312140464782715,
0.008334380149841308,
0.008283659934997559,
0.008352299690246583,
0.00825741958618164,
0.008285900115966797,
0.008228300094604492,
0.008287980079650878,
0.008318058967590332,
0.008202380180358886,
0.008575979232788087,
0.008664619445800782,
0.008455979347229003,
0.008115180015563965,
0.008484299659729005,
0.007891341209411621,
0.008041580200195313,
0.008155980110168458,
0.007962221145629883,
0.008037740707397462,
0.007921901226043701,
0.007946381092071533,
0.008210220336914063,
0.008146539688110351,
0.008041899681091308,
0.008185099601745606,
0.008132781028747559,
0.009026858329772949,
0.008835019111633301,
0.008738698959350586,
0.008789419174194336,
0.00907901668548584,
0.008366539001464843,
0.008627018928527831,
0.008149741172790527,
0.008274220466613769,
0.008096139907836914,
0.008099020004272461,
0.008211179733276367,
0.008029580116271973,
0.008006220817565917,
0.007979180812835693,
0.008113261222839355,
0.008137260437011719,
0.008128780364990235,
0.00798926019668579,
0.008085579872131347,
0.008076140403747559,
0.008164620399475098,
0.008001259803771973,
0.008082700729370116,
0.008106060028076172,
0.007973259925842285,
0.008193900108337402,
0.00790894079208374,
0.008050539970397948,
0.008151820182800293
]
},
"throughput": {
"unit": "tokens/s",
"value": 121.13035004756743
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 60,
"total": 0.44691571044921874,
"mean": 0.007448595174153647,
"stdev": 0.0002417264441062302,
"p50": 0.007351982116699218,
"p90": 0.007802316904067993,
"p95": 0.007971557211875915,
"p99": 0.008280301151275635,
"values": [
0.008314379692077637,
0.007607021808624268,
0.00753422212600708,
0.007506862163543702,
0.0074156618118286135,
0.007400301933288575,
0.007419501781463623,
0.007419822216033936,
0.007370381832122803,
0.007373581886291504,
0.00738190221786499,
0.007476621150970459,
0.007419822216033936,
0.007657260894775391,
0.0077089409828186035,
0.007602381229400635,
0.0074414219856262205,
0.007627501964569092,
0.0072163019180297855,
0.00736174201965332,
0.007297262191772461,
0.00727198314666748,
0.007298861980438233,
0.007263822078704834,
0.007278542041778565,
0.007468622207641601,
0.007331342220306397,
0.007304622173309326,
0.007298701763153076,
0.007344942092895507,
0.008088141441345216,
0.007965421199798584,
0.007799820899963379,
0.007831340789794921,
0.008256619453430175,
0.0076073408126831055,
0.007824780941009522,
0.007310702800750733,
0.007442222118377685,
0.007339181900024414,
0.0072775821685791015,
0.007308621883392334,
0.007308462142944336,
0.007319662094116211,
0.007300141811370849,
0.007359022140502929,
0.007304141998291016,
0.007341422080993652,
0.007212302207946777,
0.007283661842346191,
0.007313422203063965,
0.0074182219505310055,
0.007281261920928955,
0.0073255829811096195,
0.007283822059631347,
0.007288941860198975,
0.007282702922821045,
0.007241742134094238,
0.007303502082824707,
0.00728158187866211
]
},
"throughput": {
"unit": "tokens/s",
"value": 134.25350373047033
},
"energy": null,
"efficiency": null
}
}
}