IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9a105de verified
raw
history blame
17.5 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": 718.49984,
"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.14406591796875,
"mean": 7.14406591796875,
"stdev": 0.0,
"p50": 7.14406591796875,
"p90": 7.14406591796875,
"p95": 7.14406591796875,
"p99": 7.14406591796875,
"values": [
7.14406591796875
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.622265895207724e-07,
"ram": 5.112195231785676e-07,
"gpu": 1.8233347920000847e-06,
"total": 3.296780904699425e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1018.380288,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.48945203256607045,
"mean": 0.006526027100880941,
"stdev": 0.0003595328855586755,
"p50": 0.006666016101837158,
"p90": 0.006962828826904297,
"p95": 0.007026147365570068,
"p99": 0.007111066732406616,
"values": [
0.007101215839385986,
0.007000415802001953,
0.006768352031707764,
0.00672438383102417,
0.0067281599044799805,
0.006592959880828858,
0.006719615936279297,
0.006903615951538086,
0.0068329920768737794,
0.006674623966217041,
0.00686297607421875,
0.006860928058624267,
0.006729504108428955,
0.006802783966064453,
0.007034592151641846,
0.006611040115356445,
0.0067053442001342774,
0.006717535972595215,
0.006719456195831299,
0.007139103889465332,
0.006886975765228271,
0.006659167766571045,
0.007022528171539306,
0.006726111888885498,
0.006793600082397461,
0.006621568202972412,
0.006722432136535644,
0.006940576076507568,
0.006723584175109864,
0.0067372479438781736,
0.006987328052520752,
0.006929120063781738,
0.006908576011657715,
0.0066975998878479005,
0.006814527988433838,
0.006809088230133056,
0.006791391849517822,
0.006414559841156006,
0.006493792057037353,
0.006316768169403076,
0.006977663993835449,
0.006666016101837158,
0.006720384120941162,
0.007047904014587402,
0.006558047771453857,
0.006513984203338623,
0.006519199848175049,
0.006758592128753662,
0.00610646390914917,
0.006111839771270752,
0.006062143802642822,
0.006035200119018555,
0.006208767890930176,
0.0065203838348388676,
0.00627619218826294,
0.006078944206237793,
0.006040703773498535,
0.0060572481155395505,
0.006035903930664063,
0.006062687873840332,
0.0060538239479064945,
0.006056447982788086,
0.0060780482292175295,
0.006056159973144531,
0.006049536228179932,
0.006029248237609863,
0.006059711933135987,
0.006043807983398437,
0.006050399780273438,
0.006071968078613281,
0.006056735992431641,
0.006063360214233399,
0.006071936130523681,
0.006055039882659912,
0.006071392059326172
]
},
"throughput": {
"unit": "tokens/s",
"value": 306.46516924976027
},
"energy": {
"unit": "kWh",
"cpu": 7.654064124630343e-08,
"ram": 4.184792338150077e-08,
"gpu": 1.6408077642580606e-07,
"total": 2.8246934105361026e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7080414.435563176
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1034.022912,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 75,
"total": 0.5131569585800169,
"mean": 0.0068420927810668945,
"stdev": 0.00036823633517553547,
"p50": 0.006955327987670898,
"p90": 0.00725365104675293,
"p95": 0.007355980730056762,
"p99": 0.0074275681591033935,
"values": [
0.007305215835571289,
0.007290847778320312,
0.007094016075134277,
0.007139552116394043,
0.006951583862304688,
0.006993504047393799,
0.007144159793853759,
0.007085375785827637,
0.007185503959655761,
0.007113632202148438,
0.007356607913970947,
0.007114560127258301,
0.007071040153503418,
0.0071244478225708004,
0.007230815887451172,
0.006924863815307617,
0.006943456172943115,
0.007052671909332275,
0.007160672187805176,
0.007480256080627442,
0.0071077442169189455,
0.007092832088470459,
0.007406144142150879,
0.007064223766326904,
0.006919904232025147,
0.0070042238235473635,
0.007409056186676025,
0.007209023952484131,
0.007019455909729004,
0.007236127853393555,
0.007225088119506836,
0.007160064220428467,
0.007167424201965332,
0.0070742077827453615,
0.00708019208908081,
0.006934271812438965,
0.007045023918151856,
0.006955327987670898,
0.006561567783355713,
0.006725855827331543,
0.006958816051483154,
0.007066495895385742,
0.007254367828369141,
0.006842144012451172,
0.006812128067016601,
0.006802783966064453,
0.007355711936950684,
0.006727136135101318,
0.006382912158966064,
0.006365375995635986,
0.006382431983947754,
0.007252575874328614,
0.006382400035858154,
0.006535039901733398,
0.0063743038177490234,
0.006374559879302979,
0.006364895820617676,
0.006346432209014893,
0.006359488010406494,
0.006376383781433105,
0.006447711944580078,
0.00636736011505127,
0.006372640132904053,
0.006380191802978516,
0.006379424095153808,
0.006376736164093018,
0.006365439891815186,
0.006369919776916504,
0.00635916805267334,
0.006343423843383789,
0.006349408149719239,
0.006343423843383789,
0.006378111839294434,
0.006477119922637939,
0.006369952201843262
]
},
"throughput": {
"unit": "tokens/s",
"value": 146.1541127836137
},
"energy": {
"unit": "kWh",
"cpu": 7.282892141931802e-08,
"ram": 3.981375037685366e-08,
"gpu": 1.5149239269919199e-07,
"total": 2.6413506449536374e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3785941.8699691524
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 75,
"total": 0.47913984155654904,
"mean": 0.006388531220753988,
"stdev": 0.000310417453949541,
"p50": 0.0064767999649047855,
"p90": 0.006741811180114746,
"p95": 0.006815948724746704,
"p99": 0.0069036237335205084,
"values": [
0.00678604793548584,
0.006780928134918213,
0.006584320068359375,
0.006626304149627686,
0.0064767999649047855,
0.006489088058471679,
0.006633471965789795,
0.006576128005981445,
0.006690815925598144,
0.00658841609954834,
0.006840320110321045,
0.006574079990386963,
0.006565887928009034,
0.0066078720092773435,
0.006732800006866455,
0.006443999767303467,
0.0064737281799316405,
0.006563839912414551,
0.006636544227600098,
0.00690176010131836,
0.006594560146331787,
0.0065771517753601075,
0.006899712085723877,
0.006562816143035889,
0.006453248023986816,
0.006517792224884033,
0.006908927917480469,
0.006715392112731934,
0.006526976108551025,
0.0067338237762451176,
0.006708255767822266,
0.006656000137329102,
0.006668288230895996,
0.006568960189819336,
0.006594560146331787,
0.006452223777770996,
0.006614016056060791,
0.006458367824554443,
0.006164480209350586,
0.006306816101074219,
0.006487008094787598,
0.006590464115142822,
0.006707200050354004,
0.0064245758056640625,
0.006400000095367431,
0.006385663986206055,
0.006747136116027832,
0.006334464073181153,
0.006001664161682129,
0.005989376068115234,
0.005984255790710449,
0.0068055038452148435,
0.005997568130493164,
0.006140927791595459,
0.005996543884277344,
0.005976064205169678,
0.005989376068115234,
0.005971968173980713,
0.005984255790710449,
0.006000639915466309,
0.006061056137084961,
0.005991424083709717,
0.005985280036926269,
0.005986303806304932,
0.0060026879310607914,
0.006001664161682129,
0.005992447853088379,
0.005992447853088379,
0.005983232021331787,
0.005958655834197998,
0.005974016189575195,
0.0059688959121704105,
0.005975039958953857,
0.006100992202758789,
0.0059955201148986816
]
},
"throughput": {
"unit": "tokens/s",
"value": 156.53050215225807
},
"energy": null,
"efficiency": null
}
}
}