IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
e85f799 verified
raw
history blame
16.7 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.1+cu124",
"_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": 2,
"sequence_length": 16
},
"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.248768,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.228-219.884.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.5.0.dev0",
"optimum_benchmark_commit": null,
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": "0.13.2",
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 819.617792,
"max_global_vram": 1362.624512,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"values": [
0.05347840118408203
],
"count": 1,
"total": 0.05347840118408203,
"mean": 0.05347840118408203,
"p50": 0.05347840118408203,
"p90": 0.05347840118408203,
"p95": 0.05347840118408203,
"p99": 0.05347840118408203,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1300.50048,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394112
},
"latency": {
"unit": "s",
"values": [
0.007379903793334961,
0.00734611177444458,
0.007359072208404541,
0.007298431873321533,
0.0073851199150085445,
0.007308896064758301,
0.007326720237731933,
0.0073368000984191896,
0.007293568134307861,
0.007345600128173828,
0.007308320045471191,
0.0072646718025207516,
0.007488800048828125,
0.007303040027618408,
0.007323808193206787,
0.007290880203247071,
0.007317471981048584,
0.007367487907409668,
0.007310527801513672,
0.007260032176971435,
0.007303584098815918,
0.0073112001419067384,
0.007290815830230713,
0.0073348479270935055,
0.007250080108642578,
0.007268352031707764,
0.007286848068237305,
0.0072986879348754885,
0.007282815933227539,
0.00725648021697998,
0.007276415824890137,
0.007278463840484619,
0.007644576072692871,
0.007475679874420166,
0.007672736167907715,
0.007656799793243408,
0.007681248188018799,
0.007741727828979492,
0.007713888168334961,
0.007655424118041992,
0.007477791786193848,
0.007501311779022217,
0.007298943996429444,
0.0071972479820251465,
0.007284095764160156,
0.0074624958038330075,
0.007415359973907471,
0.007474912166595459,
0.0073281598091125486,
0.0072165122032165525,
0.007239999771118164,
0.007235455989837647,
0.007248256206512451,
0.007286079883575439,
0.0072279682159423824,
0.007229023933410644,
0.0072930240631103515,
0.007231520175933838,
0.007271967887878418,
0.007230368137359619,
0.007225503921508789,
0.007188032150268555,
0.007301792144775391,
0.007225247859954834,
0.007239712238311768,
0.007245632171630859,
0.007238912105560303,
0.007268256187438965,
0.007207871913909912
],
"count": 69,
"total": 0.5065873928070067,
"mean": 0.0073418462725653175,
"p50": 0.0072986879348754885,
"p90": 0.007529964637756348,
"p95": 0.007666361618041992,
"p99": 0.007722796859741211,
"stdev": 0.0001343196413134693,
"stdev_": 1.8295076786800744
},
"throughput": {
"unit": "tokens/s",
"value": 4358.576686572173
},
"energy": {
"unit": "kWh",
"cpu": 8.950883014828933e-08,
"ram": 4.8909982568584485e-08,
"gpu": 2.032415995187969e-07,
"total": 3.416604122356707e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 93660251.09730016
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1300.50048,
"max_global_vram": 1379.401728,
"max_process_vram": 0.0,
"max_reserved": 731.906048,
"max_allocated": 538.394624
},
"latency": {
"unit": "s",
"values": [
0.007137504100799561,
0.0072308478355407714,
0.007132319927215576,
0.007244031906127929,
0.007106751918792725,
0.007074816226959229,
0.007185599803924561,
0.007253664016723633,
0.007079103946685791,
0.0071257281303405764,
0.007109504222869873,
0.007112480163574218,
0.007366176128387451,
0.0071496000289916995,
0.007120031833648682,
0.0071023678779602055,
0.007095551967620849,
0.007130623817443848,
0.007095680236816406,
0.007099552154541016,
0.00710643196105957,
0.0070341119766235355,
0.007329152107238769,
0.007070367813110352,
0.007091807842254639,
0.007188896179199219,
0.007039584159851074,
0.007101920127868653,
0.00711740779876709,
0.007095200061798096,
0.007082335948944092,
0.007125120162963867,
0.00735968017578125,
0.0073292160034179685,
0.007425856113433838,
0.007366047859191894,
0.007480480194091797,
0.007600927829742431,
0.007510144233703614,
0.007364223957061768,
0.007303487777709961,
0.007306399822235107,
0.007044159889221192,
0.007036831855773926,
0.007229311943054199,
0.007259583950042724,
0.007261119842529297,
0.0073292160034179685,
0.007043104171752929,
0.007121471881866455,
0.007028287887573243,
0.007039968013763428,
0.007062784194946289,
0.007039231777191162,
0.007059135913848877,
0.00708134412765503,
0.007199711799621582,
0.007028607845306396,
0.007027488231658935,
0.00705244779586792,
0.0070495038032531735,
0.007204192161560059,
0.007068863868713379,
0.0070423359870910645,
0.007060224056243896,
0.007039584159851074,
0.0070778241157531735,
0.00706825590133667,
0.007051263809204102
],
"count": 69,
"total": 0.49398659133911144,
"mean": 0.007159225961436397,
"p50": 0.007106751918792725,
"p90": 0.007360588932037354,
"p95": 0.007401984119415283,
"p99": 0.007539194984436034,
"stdev": 0.00013121403367517557,
"stdev_": 1.8327963718699185
},
"throughput": {
"unit": "tokens/s",
"value": 279.3598093946358
},
"energy": {
"unit": "kWh",
"cpu": 7.958329070460312e-08,
"ram": 4.34930250221482e-08,
"gpu": 1.576780945375411e-07,
"total": 2.8075441026429236e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7123663.696385998
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.006776832103729248,
0.006871039867401123,
0.00673689603805542,
0.00687820816040039,
0.006746111869812011,
0.006716415882110595,
0.006816768169403077,
0.00687820816040039,
0.006719488143920899,
0.006765567779541016,
0.006716415882110595,
0.006754303932189941,
0.007001088142395019,
0.006788095951080322,
0.006763519763946534,
0.006741951942443847,
0.0067358717918396,
0.006765567779541016,
0.006691840171813965,
0.006739967823028564,
0.0067472000122070315,
0.006667263984680176,
0.006939648151397705,
0.00669593620300293,
0.006721536159515381,
0.006819839954376221,
0.00667952013015747,
0.0067430720329284665,
0.0067358717918396,
0.0067276802062988285,
0.006725632190704346,
0.006752255916595459,
0.006975488185882568,
0.006960127830505371,
0.0070522880554199216,
0.006973440170288086,
0.007087103843688965,
0.00719974422454834,
0.007106560230255127,
0.006990848064422607,
0.00693452787399292,
0.006936575889587402,
0.006681600093841553,
0.00667852783203125,
0.006864895820617676,
0.006871039867401123,
0.006895616054534912,
0.006952960014343262,
0.006666240215301514,
0.006763519763946534,
0.0066713600158691405,
0.0066826238632202144,
0.0067051520347595215,
0.0066754879951477055,
0.0067010560035705566,
0.0066938881874084475,
0.006841343879699707,
0.006670335769653321,
0.006665215969085693,
0.006687679767608643,
0.0066713600158691405,
0.006837247848510742,
0.006700032234191895,
0.006683648109436035,
0.006702079772949219,
0.006677504062652588,
0.00672051191329956,
0.006709248065948486,
0.006686719894409179
],
"count": 69,
"total": 0.46853321552276617,
"mean": 0.006790336456851683,
"p50": 0.006741951942443847,
"p90": 0.006973849773406982,
"p95": 0.007031808090209961,
"p99": 0.007136379108428955,
"stdev": 0.00012442966139686586,
"stdev_": 1.832452076381459
},
"throughput": {
"unit": "tokens/s",
"value": 294.5362152094733
},
"energy": null,
"efficiency": null
}
}
}