IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9d78316 verified
raw
history blame
13.7 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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": 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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1075.109888,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.49642998218536366,
"mean": 0.009025999676097523,
"stdev": 0.0007902612044638876,
"p50": 0.008966591835021973,
"p90": 0.009162592124938964,
"p95": 0.00965788192749023,
"p99": 0.012640972042083741,
"values": [
0.013026368141174317,
0.012312671661376954,
0.010708576202392578,
0.009115327835083007,
0.009033920288085938,
0.008937631607055664,
0.009025568008422852,
0.009145664215087891,
0.009126175880432129,
0.009100543975830077,
0.009040479660034179,
0.008999744415283202,
0.009056511878967286,
0.008867679595947265,
0.008966591835021973,
0.009012415885925293,
0.009169568061828613,
0.009207584381103516,
0.008975104331970215,
0.00909670352935791,
0.009047391891479493,
0.009024191856384277,
0.009027520179748534,
0.008915295600891113,
0.008916095733642578,
0.008982943534851075,
0.009190239906311036,
0.009152128219604492,
0.009108768463134766,
0.008966752052307129,
0.008862624168395996,
0.008988415718078614,
0.008616479873657226,
0.008862015724182128,
0.008959424018859864,
0.008983615875244141,
0.008832415580749512,
0.00892627239227295,
0.008781375885009766,
0.008735808372497558,
0.0086975679397583,
0.008562463760375977,
0.008579968452453613,
0.008497664451599121,
0.008470399856567383,
0.008469823837280274,
0.008472736358642579,
0.008518239974975587,
0.00848470401763916,
0.008471839904785157,
0.008481151580810547,
0.008465791702270508,
0.00847110366821289,
0.00848243236541748,
0.00849948787689209
]
},
"throughput": {
"unit": "tokens/s",
"value": 221.5821041182132
},
"energy": {
"unit": "kWh",
"cpu": 1.0650778218867289e-07,
"ram": 5.823317368367497e-08,
"gpu": 1.9500759648214527e-07,
"total": 3.5974855235449315e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5559438.6326514445
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1075.109888,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 55,
"total": 0.511785566329956,
"mean": 0.009305192115090111,
"stdev": 0.0007090891830848775,
"p50": 0.00930355167388916,
"p90": 0.009543648147583008,
"p95": 0.009604051113128662,
"p99": 0.012614875164031984,
"values": [
0.012954496383666992,
0.012325568199157715,
0.009479904174804687,
0.009371264457702637,
0.009363807678222657,
0.00930355167388916,
0.009405183792114257,
0.00939510440826416,
0.009315327644348144,
0.009421440124511718,
0.009387616157531739,
0.009552736282348633,
0.009556256294250488,
0.009321760177612305,
0.009362208366394042,
0.009332063674926758,
0.009563039779663086,
0.009497183799743653,
0.009374848365783691,
0.009406208038330078,
0.009286591529846192,
0.00931817626953125,
0.009485535621643067,
0.009293951988220216,
0.009353952407836914,
0.009365344047546386,
0.00969974422454834,
0.00953001594543457,
0.009364128112792969,
0.009251263618469239,
0.009161919593811034,
0.00906118392944336,
0.009056320190429687,
0.00929974365234375,
0.009455007553100586,
0.008942655563354492,
0.009181023597717285,
0.009133119583129883,
0.009031744003295898,
0.009007743835449219,
0.00909932804107666,
0.008804479598999023,
0.008769408226013183,
0.008743871688842773,
0.008710111618041992,
0.008766016006469727,
0.008724896430969239,
0.00877888011932373,
0.008786784172058106,
0.008743167877197266,
0.008755167961120606,
0.008768896102905273,
0.008761055946350097,
0.00875603199005127,
0.008848735809326172
]
},
"throughput": {
"unit": "tokens/s",
"value": 107.46688382481784
},
"energy": {
"unit": "kWh",
"cpu": 1.0215139161225844e-07,
"ram": 5.579454405948892e-08,
"gpu": 1.8333091281610173e-07,
"total": 3.41276848487849e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 2930172.393559256
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 54,
"total": 0.9843025913238524,
"mean": 0.018227825765256528,
"stdev": 0.0010791995659138933,
"p50": 0.018273823738098143,
"p90": 0.01872281551361084,
"p95": 0.01881267204284668,
"p99": 0.022412953701019284,
"values": [
0.02474393653869629,
0.020345855712890625,
0.018541568756103514,
0.0184268798828125,
0.01828256034851074,
0.018406335830688476,
0.01862451171875,
0.018478080749511717,
0.018529279708862305,
0.018496511459350586,
0.018515968322753908,
0.018735103607177735,
0.018223104476928712,
0.018314239501953124,
0.01841971206665039,
0.018762752532958983,
0.018694143295288086,
0.01842995262145996,
0.018534400939941405,
0.018381824493408205,
0.018380800247192384,
0.018524160385131837,
0.018265087127685545,
0.018296831130981444,
0.018364416122436524,
0.018882560729980468,
0.018775039672851563,
0.018516992568969725,
0.01824870491027832,
0.01805625534057617,
0.018169792175292968,
0.01764352035522461,
0.0181790714263916,
0.018374656677246092,
0.018107391357421874,
0.017967103958129883,
0.01817190361022949,
0.01780735969543457,
0.01782681655883789,
0.01782067108154297,
0.01741619110107422,
0.017375295639038085,
0.017261503219604492,
0.01721446418762207,
0.01725542449951172,
0.01723187255859375,
0.017311744689941407,
0.017294399261474608,
0.017255359649658204,
0.017261568069458007,
0.01725644874572754,
0.017257471084594727,
0.017250303268432618,
0.01739468765258789
]
},
"throughput": {
"unit": "tokens/s",
"value": 54.86117833680788
},
"energy": null,
"efficiency": null
}
}
}