IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
cfe499d verified
raw
history blame
16.9 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.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": 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.261056,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.223-212.873.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.4.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": "0.12.0",
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 803.1232,
"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.9313828125,
"mean": 7.9313828125,
"stdev": 0.0,
"p50": 7.9313828125,
"p90": 7.9313828125,
"p95": 7.9313828125,
"p99": 7.9313828125,
"values": [
7.9313828125
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.402236395830797e-07,
"ram": 4.992175041514068e-07,
"gpu": 1.7591680740000788e-06,
"total": 3.1986092177345657e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1217.9456,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.48661673545837403,
"mean": 0.006853756837441887,
"stdev": 0.0003017533925662647,
"p50": 0.006962463855743408,
"p90": 0.007167871952056885,
"p95": 0.007216959953308105,
"p99": 0.007335168027877807,
"values": [
0.007208896160125732,
0.007041312217712402,
0.00701910400390625,
0.006994847774505615,
0.006978047847747803,
0.00701859188079834,
0.006878719806671142,
0.007292736053466797,
0.007142816066741943,
0.007434175968170166,
0.007265888214111328,
0.007047423839569092,
0.007122176170349121,
0.0070785279273986815,
0.007013887882232666,
0.0070817599296569824,
0.00703542423248291,
0.006812607765197754,
0.006924543857574463,
0.006980031967163086,
0.0069359359741210935,
0.006918367862701416,
0.007182015895843506,
0.007134399890899658,
0.006985888004302978,
0.00689737606048584,
0.007058815956115723,
0.006976704120635987,
0.007131711959838867,
0.006899263858795166,
0.006966911792755127,
0.007167871952056885,
0.006935840129852295,
0.006988480091094971,
0.006938752174377442,
0.0070572481155395505,
0.007210303783416748,
0.0071055998802185055,
0.007025440216064453,
0.007014304161071777,
0.0067647042274475095,
0.006841536045074463,
0.00680128002166748,
0.006783743858337402,
0.006634431838989258,
0.00684822416305542,
0.006921472072601319,
0.0069773120880126955,
0.007223616123199463,
0.006985983848571777,
0.006892096042633056,
0.00696895980834961,
0.006962463855743408,
0.006676511764526367,
0.006670271873474121,
0.006680960178375244,
0.006316991806030273,
0.0063812160491943356,
0.006317791938781739,
0.006399104118347168,
0.0063259520530700684,
0.006376800060272217,
0.006328288078308105,
0.006345664024353027,
0.006303616046905517,
0.006384384155273437,
0.006328512191772461,
0.006304351806640625,
0.006335103988647461,
0.006322783946990967,
0.006309855937957764
]
},
"throughput": {
"unit": "tokens/s",
"value": 291.8107612271936
},
"energy": {
"unit": "kWh",
"cpu": 8.036895870401555e-08,
"ram": 4.393874972741497e-08,
"gpu": 1.5270470174324324e-07,
"total": 2.770124101746738e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7219893.1403068695
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1236.832256,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 71,
"total": 0.511527295589447,
"mean": 0.007204609797034464,
"stdev": 0.00036335912024654775,
"p50": 0.0073067197799682616,
"p90": 0.0075138559341430666,
"p95": 0.0076625759601593015,
"p99": 0.008022697687149047,
"values": [
0.007398176193237305,
0.007363711833953858,
0.007325888156890869,
0.0072674880027771,
0.0073067197799682616,
0.007396416187286377,
0.007322527885437012,
0.007275328159332275,
0.008460639953613281,
0.007828959941864014,
0.007718400001525879,
0.007464159965515136,
0.007441728115081787,
0.007455647945404053,
0.007344768047332763,
0.007417727947235107,
0.007417920112609863,
0.007141248226165771,
0.007424511909484863,
0.007248479843139649,
0.007331168174743653,
0.007475103855133057,
0.007496096134185791,
0.007417791843414306,
0.007224480152130127,
0.0073664641380310055,
0.007363296031951904,
0.007425568103790283,
0.007274847984313965,
0.0072213120460510255,
0.0073975038528442385,
0.007261856079101563,
0.007362720012664795,
0.00736575984954834,
0.007470335960388184,
0.007835008144378663,
0.0075138559341430666,
0.007436287879943848,
0.007346720218658447,
0.007309184074401855,
0.007276095867156982,
0.007151487827301025,
0.006868415832519531,
0.007245952129364013,
0.006766143798828125,
0.0070696001052856445,
0.007356639862060547,
0.007555520057678223,
0.007606751918792724,
0.007160319805145264,
0.007156799793243409,
0.0075623679161071775,
0.007071263790130615,
0.0070696001052856445,
0.006994559764862061,
0.006941472053527832,
0.006681344032287598,
0.006592991828918457,
0.006706431865692138,
0.006625152111053466,
0.00679744005203247,
0.006688479900360107,
0.006663072109222412,
0.00659935998916626,
0.006570720195770264,
0.006597087860107422,
0.006598400115966797,
0.006609375953674316,
0.00670684814453125,
0.006648064136505127,
0.006673727989196777
]
},
"throughput": {
"unit": "tokens/s",
"value": 138.8000222318239
},
"energy": {
"unit": "kWh",
"cpu": 7.545798238699129e-08,
"ram": 4.126058217116724e-08,
"gpu": 1.4801922304623012e-07,
"total": 2.647377876043886e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3777322.493509509
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 71,
"total": 0.4777520952224731,
"mean": 0.006728902749612296,
"stdev": 0.00031143821495385407,
"p50": 0.0067870721817016606,
"p90": 0.007001088142395019,
"p95": 0.007154687881469727,
"p99": 0.007465075111389158,
"values": [
0.00688640022277832,
0.006852608203887939,
0.006813727855682373,
0.006767615795135498,
0.006762335777282715,
0.0069027838706970214,
0.006813663959503174,
0.00675328016281128,
0.007905280113220215,
0.007276415824890137,
0.0071905279159545895,
0.0069283838272094726,
0.006907904148101806,
0.006936575889587402,
0.006837215900421143,
0.00688640022277832,
0.006894591808319092,
0.006653952121734619,
0.006919167995452881,
0.006759424209594727,
0.006825984001159668,
0.006956031799316406,
0.006972415924072266,
0.0069027838706970214,
0.006723584175109864,
0.006854656219482422,
0.00682700777053833,
0.006905856132507324,
0.0067870721817016606,
0.006717472076416015,
0.006865920066833496,
0.00674508810043335,
0.006858751773834228,
0.006852608203887939,
0.006966271877288818,
0.007275551795959473,
0.007001088142395019,
0.006908927917480469,
0.006816768169403077,
0.006791264057159424,
0.006765567779541016,
0.006684671878814697,
0.00643891191482544,
0.006724607944488525,
0.006378496170043945,
0.006625279903411865,
0.006858751773834228,
0.007050240039825439,
0.0071188478469848635,
0.0067358717918396,
0.0067276802062988285,
0.007058432102203369,
0.006615039825439453,
0.0066499199867248535,
0.00658841609954834,
0.006542335987091064,
0.006303743839263916,
0.00621670389175415,
0.006310912132263183,
0.006239200115203857,
0.006419456005096436,
0.006303743839263916,
0.00628111982345581,
0.006209536075592041,
0.006194176197052002,
0.006220799922943115,
0.006207488059997559,
0.006218751907348633,
0.006322175979614258,
0.006259712219238281,
0.006278143882751465
]
},
"throughput": {
"unit": "tokens/s",
"value": 148.61263971419675
},
"energy": null,
"efficiency": null
}
}
}