IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
04372b2 verified
raw
history blame
17.3 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+cu121",
"_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": {},
"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,
"memory": true,
"latency": true,
"energy": true,
"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 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.293824,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.219-208.866.amzn2.x86_64-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"NVIDIA A10G"
],
"gpu_count": 1,
"gpu_vram_mb": 24146608128,
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": null,
"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": 717.807616,
"max_global_vram": 1355.28448,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.339328
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.21561376953125,
"mean": 7.21561376953125,
"stdev": 0.0,
"p50": 7.21561376953125,
"p90": 7.21561376953125,
"p95": 7.21561376953125,
"p99": 7.21561376953125,
"values": [
7.21561376953125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.585506386227078e-07,
"ram": 5.094608624855824e-07,
"gpu": 1.6777791199999118e-06,
"total": 3.145790621108202e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1021.059072,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.48942214488983143,
"mean": 0.0066138127687815065,
"stdev": 0.0003922566980738632,
"p50": 0.006685168027877808,
"p90": 0.00706388168334961,
"p95": 0.007308273506164551,
"p99": 0.007612339549064636,
"values": [
0.007555808067321777,
0.007286399841308594,
0.007110144138336182,
0.007012800216674804,
0.007372255802154541,
0.0066284480094909665,
0.006765471935272217,
0.006839776039123535,
0.00674403190612793,
0.0067693119049072265,
0.006855552196502686,
0.006805344104766846,
0.0067450242042541506,
0.006761631965637207,
0.006798431873321533,
0.006559999942779541,
0.006686272144317627,
0.006739136219024658,
0.006751999855041504,
0.006897759914398193,
0.006860832214355469,
0.006794623851776123,
0.007192927837371826,
0.006949952125549316,
0.007019552230834961,
0.006971615791320801,
0.007082880020141602,
0.006962783813476562,
0.00666428804397583,
0.006705535888671875,
0.006726336002349853,
0.006920608043670654,
0.006877952098846436,
0.0068076481819152835,
0.006577824115753174,
0.006946976184844971,
0.006739935874938965,
0.006708000183105469,
0.0063499841690063475,
0.006219520092010498,
0.0065697598457336425,
0.007765183925628662,
0.007348896026611328,
0.006883711814880371,
0.006638720035552979,
0.006684063911437988,
0.006500768184661865,
0.006196000099182129,
0.006185279846191406,
0.006157919883728027,
0.006141024112701416,
0.006149280071258545,
0.006155295848846436,
0.00638918399810791,
0.006322656154632568,
0.006157695770263672,
0.006139232158660889,
0.006135807991027832,
0.006169536113739014,
0.006167903900146484,
0.006157728195190429,
0.006154047966003418,
0.006168032169342041,
0.006226719856262207,
0.006414015769958496,
0.006174784183502197,
0.006442912101745605,
0.006172704219818115,
0.006158271789550781,
0.00614796781539917,
0.006142911911010743,
0.006142528057098389,
0.006143807888031006,
0.006152416229248047
]
},
"throughput": {
"unit": "tokens/s",
"value": 302.3974324523356
},
"energy": {
"unit": "kWh",
"cpu": 7.634521103822269e-08,
"ram": 4.1739018892925966e-08,
"gpu": 1.5001258439743462e-07,
"total": 2.6809681432858325e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7459991.663865023
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1036.701696,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 74,
"total": 0.5174024000167843,
"mean": 0.006991924324551144,
"stdev": 0.0004316338675888331,
"p50": 0.007034703969955444,
"p90": 0.007455766582489014,
"p95": 0.007588435339927673,
"p99": 0.008027417526245112,
"values": [
0.007691296100616455,
0.007601664066314697,
0.007442815780639649,
0.007559743881225586,
0.007291615962982178,
0.00708896017074585,
0.007208191871643067,
0.007202112197875977,
0.0071909441947937015,
0.007250271797180176,
0.0071972799301147465,
0.007177279949188232,
0.0071519680023193356,
0.007194176197052002,
0.006984447956085205,
0.007066976070404052,
0.006960383892059326,
0.007089280128479004,
0.007167808055877686,
0.007200128078460694,
0.007110335826873779,
0.007576223850250244,
0.007459904193878174,
0.00758131217956543,
0.007289631843566895,
0.007349535942077636,
0.007375264167785644,
0.007350912094116211,
0.007069375991821289,
0.007081791877746582,
0.007268608093261719,
0.007207520008087158,
0.007149280071258545,
0.007159743785858154,
0.00771343994140625,
0.007314335823059082,
0.007002431869506836,
0.006906976222991943,
0.006545216083526611,
0.006629119873046875,
0.007384416103363037,
0.008876319885253905,
0.007446112155914307,
0.006985087871551513,
0.006871840000152588,
0.006995391845703125,
0.006819231986999512,
0.006587135791778565,
0.006490335941314697,
0.006502016067504883,
0.006535871982574463,
0.006513951778411865,
0.0063946242332458495,
0.006655392169952393,
0.006780928134918213,
0.006502655982971192,
0.00653766393661499,
0.0064791679382324215,
0.006779712200164795,
0.006476863861083985,
0.006593503952026367,
0.006507743835449218,
0.006507552146911621,
0.006800447940826416,
0.006745247840881347,
0.006524352073669434,
0.006786303997039795,
0.006463295936584472,
0.006504767894744873,
0.00648095989227295,
0.006484576225280762,
0.006500256061553955,
0.006469632148742676,
0.006560736179351807
]
},
"throughput": {
"unit": "tokens/s",
"value": 143.02214291545502
},
"energy": {
"unit": "kWh",
"cpu": 7.206613452643409e-08,
"ram": 3.940541192937641e-08,
"gpu": 1.4516126285256615e-07,
"total": 2.5663280930837665e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3896617.905929456
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.4837736644744873,
"mean": 0.006537481952357937,
"stdev": 0.0003743979093014548,
"p50": 0.006574079990386963,
"p90": 0.006934323310852051,
"p95": 0.007062732934951782,
"p99": 0.007485460214614864,
"values": [
0.0071526398658752445,
0.007070720195770264,
0.006931456089019775,
0.007048192024230957,
0.006802432060241699,
0.006595583915710449,
0.0067041277885437015,
0.0067010560035705566,
0.006701087951660157,
0.006744063854217529,
0.006687744140625,
0.006680575847625733,
0.006647808074951172,
0.006692863941192627,
0.006487103939056396,
0.006576128005981445,
0.006487040042877197,
0.006585343837738037,
0.006650879859924317,
0.006690815925598144,
0.006614016056060791,
0.007051263809204102,
0.00693555212020874,
0.007058432102203369,
0.006791168212890625,
0.006812736034393311,
0.0068884482383728025,
0.006854656219482422,
0.006584320068359375,
0.006583295822143555,
0.006749184131622315,
0.0066938881874084475,
0.006649856090545654,
0.006663167953491211,
0.007201791763305664,
0.0067870721817016606,
0.006535168170928955,
0.006470655918121338,
0.006151167869567871,
0.006203392028808594,
0.006871039867401123,
0.008252415657043457,
0.0069212160110473635,
0.006563839912414551,
0.0064542717933654785,
0.00657203197479248,
0.006425600051879882,
0.006207520008087158,
0.006076416015625,
0.0061224961280822755,
0.006146048069000244,
0.006136832237243653,
0.006021120071411133,
0.006271999835968017,
0.00639081621170044,
0.006123519897460937,
0.006155263900756836,
0.006097919940948486,
0.006369279861450195,
0.006100992202758789,
0.006205440044403076,
0.0061296639442443845,
0.006128640174865723,
0.006409215927124024,
0.0063539199829101565,
0.006135807991027832,
0.006395904064178467,
0.006078464031219482,
0.00612556791305542,
0.006104063987731933,
0.006108160018920898,
0.006124544143676758,
0.0060928001403808595,
0.00618393611907959
]
},
"throughput": {
"unit": "tokens/s",
"value": 152.96409340592066
},
"energy": null,
"efficiency": null
}
}
}