IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
983f849 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": {},
"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.43.1",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"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": 720.113664,
"max_global_vram": 1355.28448,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.1702333984375,
"mean": 7.1702333984375,
"stdev": 0.0,
"p50": 7.1702333984375,
"p90": 7.1702333984375,
"p95": 7.1702333984375,
"p99": 7.1702333984375,
"values": [
7.1702333984375
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.832605719566345e-07,
"ram": 5.232709769799726e-07,
"gpu": 1.880557060000669e-06,
"total": 3.387088608937276e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1029.992448,
"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.49379385614395144,
"mean": 0.006672889947891235,
"stdev": 0.00021210231586680616,
"p50": 0.006708863973617554,
"p90": 0.006900739240646362,
"p95": 0.00700372006893158,
"p99": 0.0071051425743103025,
"values": [
0.007229184150695801,
0.007059264183044434,
0.006990560054779053,
0.006850751876831054,
0.006885087966918945,
0.006829535961151123,
0.006761472225189209,
0.006900191783905029,
0.006804448127746582,
0.006756159782409668,
0.006899839878082276,
0.006900224208831787,
0.006756639957427978,
0.0068252158164978025,
0.006825952053070068,
0.0066471037864685055,
0.006731647968292237,
0.006769152164459229,
0.006750688076019287,
0.006978879928588868,
0.006885312080383301,
0.006662847995758056,
0.006900959968566894,
0.006876639842987061,
0.00668995189666748,
0.006784224033355713,
0.006896224021911621,
0.006708672046661377,
0.006786367893218994,
0.006744832038879395,
0.006834144115447998,
0.00703110408782959,
0.00697327995300293,
0.006832255840301514,
0.006625760078430176,
0.006721983909606934,
0.006596864223480225,
0.006814943790435791,
0.00670905590057373,
0.006535552024841309,
0.006824448108673096,
0.006783296108245849,
0.007028160095214844,
0.00681056022644043,
0.006518879890441895,
0.00647983980178833,
0.006471327781677246,
0.006467520236968994,
0.006564735889434814,
0.006473567962646485,
0.006456511974334717,
0.006498688220977783,
0.0065372161865234375,
0.006543360233306885,
0.006471327781677246,
0.00643881607055664,
0.006223552227020264,
0.0064280638694763186,
0.006466432094573975,
0.006573599815368652,
0.00647756814956665,
0.006443295955657959,
0.0064421439170837405,
0.006430208206176758,
0.0064486398696899415,
0.006403007984161377,
0.006328224182128906,
0.0063619518280029295,
0.00637827205657959,
0.0064357762336730955,
0.006458111763000488,
0.006488255977630615,
0.006429855823516846,
0.006445663928985596
]
},
"throughput": {
"unit": "tokens/s",
"value": 299.72021352338345
},
"energy": {
"unit": "kWh",
"cpu": 7.825270839776212e-08,
"ram": 4.278438433631755e-08,
"gpu": 1.5999099056579645e-07,
"total": 2.8102808329987614e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7116726.4727271525
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1045.364736,
"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.5149139838218689,
"mean": 0.006958297078673905,
"stdev": 0.00022162220971990625,
"p50": 0.006970448017120361,
"p90": 0.007229756879806519,
"p95": 0.007293139362335205,
"p99": 0.007441479911804198,
"values": [
0.007362207889556885,
0.007285344123840332,
0.0070943360328674316,
0.007165088176727295,
0.006905439853668213,
0.007052351951599121,
0.007140192031860351,
0.007167840003967285,
0.0069736638069152835,
0.00720304012298584,
0.007126016139984131,
0.007160416126251221,
0.0071015038490295414,
0.007122623920440674,
0.007017087936401367,
0.007001984119415283,
0.006974944114685059,
0.0070700798034667965,
0.0071979198455810545,
0.007197023868560791,
0.007090688228607178,
0.007090816020965576,
0.007146463871002197,
0.007231840133666992,
0.006967232227325439,
0.007029024124145508,
0.007028384208679199,
0.007026815891265869,
0.0070239357948303225,
0.007008319854736328,
0.007240064144134521,
0.00722489595413208,
0.007268576145172119,
0.007153759956359864,
0.007111551761627197,
0.006884672164916992,
0.006596735954284668,
0.0073417282104492184,
0.006755936145782471,
0.006892896175384521,
0.007150879859924316,
0.007307616233825684,
0.007655807971954346,
0.00684659194946289,
0.006845344066619873,
0.006781343936920166,
0.006768799781799316,
0.006747903823852539,
0.006785344123840332,
0.006748191833496094,
0.006853343963623047,
0.0067407040596008305,
0.006723775863647461,
0.006726943969726563,
0.006762176036834717,
0.0067619199752807614,
0.006435296058654785,
0.006742752075195312,
0.0067396159172058104,
0.006859519958496094,
0.006755199909210205,
0.006708960056304932,
0.006743135929107666,
0.006744256019592285,
0.006751391887664795,
0.006738080024719238,
0.0067898879051208495,
0.0066943678855896,
0.006819839954376221,
0.006799712181091309,
0.006734272003173828,
0.006751904010772705,
0.006721375942230224,
0.006744287967681885
]
},
"throughput": {
"unit": "tokens/s",
"value": 143.71332363270952
},
"energy": {
"unit": "kWh",
"cpu": 6.928348826513028e-08,
"ram": 3.7877100671179584e-08,
"gpu": 1.776567418292506e-07,
"total": 2.848173307655605e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3511022.3008975615
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 74,
"total": 0.48132716798782343,
"mean": 0.006504421189024642,
"stdev": 0.00017125817470244788,
"p50": 0.006487040042877198,
"p90": 0.006718281698226929,
"p95": 0.006780211400985717,
"p99": 0.006909460382461547,
"values": [
0.006843391895294189,
0.006759424209594727,
0.006598624229431152,
0.006665215969085693,
0.00643071985244751,
0.006562816143035889,
0.0066406397819519045,
0.006667263984680176,
0.006493184089660644,
0.0067010560035705566,
0.006626304149627686,
0.006662144184112549,
0.006592512130737305,
0.006619135856628418,
0.006545407772064209,
0.006512639999389648,
0.0065075201988220215,
0.006578144073486328,
0.006669312000274658,
0.006691840171813965,
0.006606847763061524,
0.006545407772064209,
0.006642687797546387,
0.0067276802062988285,
0.00648089599609375,
0.0065177597999572755,
0.006552608013153076,
0.0065075201988220215,
0.00653926420211792,
0.00652185583114624,
0.006725664138793945,
0.006684671878814697,
0.0067573761940002445,
0.006606847763061524,
0.0066119680404663084,
0.0064143362045288085,
0.006180863857269287,
0.006860799789428711,
0.006360064029693604,
0.006450175762176514,
0.0066600642204284665,
0.006818816184997558,
0.007041024208068848,
0.006455296039581298,
0.006432767868041992,
0.006385663986206055,
0.0063805761337280276,
0.006359039783477783,
0.006394879817962646,
0.006344704151153564,
0.006462463855743408,
0.006355967998504639,
0.006325247764587402,
0.006335487842559814,
0.006369279861450195,
0.006360064029693604,
0.006054912090301514,
0.006333439826965332,
0.006348800182342529,
0.006468607902526856,
0.006346752166748047,
0.006323200225830078,
0.006343679904937744,
0.0063569917678833006,
0.00636627197265625,
0.006348800182342529,
0.006403071880340576,
0.006276095867156982,
0.006427648067474365,
0.006402048110961914,
0.006346752166748047,
0.006362112045288086,
0.0063201279640197755,
0.0063539199829101565
]
},
"throughput": {
"unit": "tokens/s",
"value": 153.7415814473037
},
"energy": null,
"efficiency": null
}
}
}