IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
98ab465 verified
raw
history blame
17 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": 804.282368,
"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.8354228515625,
"mean": 7.8354228515625,
"stdev": 0.0,
"p50": 7.8354228515625,
"p90": 7.8354228515625,
"p95": 7.8354228515625,
"p99": 7.8354228515625,
"values": [
7.8354228515625
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 9.647375097223292e-07,
"ram": 5.115889308906682e-07,
"gpu": 1.7586125180000037e-06,
"total": 3.2349389586130014e-06
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1209.327616,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.210304
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.488410336971283,
"mean": 0.00678347690237893,
"stdev": 0.0002908466586034232,
"p50": 0.00685486388206482,
"p90": 0.007071839809417725,
"p95": 0.00713241605758667,
"p99": 0.007454221801757814,
"values": [
0.007393280029296875,
0.007194591999053955,
0.006994847774505615,
0.006941088199615478,
0.006987520217895508,
0.006816192150115967,
0.00677836799621582,
0.006876416206359863,
0.007603424072265625,
0.007008096218109131,
0.006867040157318116,
0.007050432205200195,
0.007012767791748047,
0.007033952236175537,
0.006917823791503906,
0.006956255912780761,
0.006995808124542236,
0.006826208114624023,
0.006936031818389893,
0.0069053759574890135,
0.006903776168823242,
0.007046847820281982,
0.0070860800743103025,
0.007054912090301514,
0.006838079929351807,
0.007073023796081543,
0.00690393590927124,
0.006961376190185547,
0.006802464008331299,
0.006869152069091797,
0.00712608003616333,
0.006865407943725586,
0.006888671875,
0.00690553617477417,
0.0069201598167419436,
0.007140160083770752,
0.0070611839294433595,
0.007048992156982422,
0.006955967903137207,
0.006811071872711181,
0.006797152042388916,
0.006799456119537354,
0.0067077760696411136,
0.0066061439514160155,
0.006399680137634278,
0.00684659194946289,
0.006863135814666748,
0.007112031936645508,
0.006839424133300781,
0.006734720230102539,
0.006764480113983154,
0.006749855995178223,
0.006589312076568604,
0.006532639980316162,
0.006564767837524414,
0.00651251220703125,
0.00633296012878418,
0.006344736099243164,
0.0063729920387268066,
0.006368319988250732,
0.006333504199981689,
0.006392831802368164,
0.006348512172698975,
0.00633465576171875,
0.006356639862060547,
0.006341087818145752,
0.006365952014923096,
0.00631820821762085,
0.006355391979217529,
0.006364895820617676,
0.006348447799682617,
0.006353119850158692
]
},
"throughput": {
"unit": "tokens/s",
"value": 294.83405468641166
},
"energy": {
"unit": "kWh",
"cpu": 7.945273204629637e-08,
"ram": 4.335974675612029e-08,
"gpu": 1.6233346319999924e-07,
"total": 2.8514594200241593e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 7013952.1746483585
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1227.6736,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.434048
},
"latency": {
"unit": "s",
"count": 72,
"total": 0.5124203190803528,
"mean": 0.007116948876116009,
"stdev": 0.0003038110398827126,
"p50": 0.00725763201713562,
"p90": 0.007422745561599732,
"p95": 0.007546817445755005,
"p99": 0.007677722096443176,
"values": [
0.007558239936828613,
0.0073887038230896,
0.007349728107452392,
0.007323391914367676,
0.0073547520637512204,
0.00718064022064209,
0.007302464008331299,
0.00738153600692749,
0.007711552143096924,
0.00731283187866211,
0.007349311828613281,
0.007373472213745117,
0.007359583854675293,
0.007330656051635742,
0.00731983995437622,
0.007369376182556152,
0.0071376957893371585,
0.0072293438911437986,
0.007270751953125,
0.007261824131011963,
0.00729702377319336,
0.007577760219573975,
0.0074265279769897465,
0.00732755184173584,
0.0072700161933898924,
0.007367487907409668,
0.007302239894866943,
0.007211743831634521,
0.007260831832885742,
0.007290175914764404,
0.007238944053649902,
0.007264351844787598,
0.0072544322013854984,
0.007266560077667236,
0.0075374717712402345,
0.007435711860656738,
0.00744159984588623,
0.007326784133911132,
0.007295040130615235,
0.0072683200836181645,
0.007119840145111084,
0.006870336055755615,
0.007178688049316406,
0.006681087970733642,
0.006744959831237793,
0.007278207778930664,
0.007204192161560059,
0.007663904190063476,
0.006974239826202392,
0.0069920639991760255,
0.007032192230224609,
0.0068856639862060545,
0.006913599967956543,
0.006889311790466308,
0.006862304210662842,
0.006698976039886475,
0.006698272228240967,
0.006655295848846435,
0.00667251205444336,
0.006743648052215576,
0.006768832206726074,
0.006652736186981202,
0.00670527982711792,
0.006682047843933106,
0.006646783828735352,
0.0066250238418579105,
0.006666175842285156,
0.006669055938720703,
0.006651743888854981,
0.006664063930511475,
0.006673664093017578,
0.006729343891143799
]
},
"throughput": {
"unit": "tokens/s",
"value": 140.50965061108295
},
"energy": {
"unit": "kWh",
"cpu": 7.539750622029534e-08,
"ram": 4.129127383986403e-08,
"gpu": 1.5438756939740297e-07,
"total": 2.710763494575623e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3688997.5905351075
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 72,
"total": 0.47876089429855345,
"mean": 0.0066494568652576864,
"stdev": 0.0002498958839405464,
"p50": 0.006746095895767212,
"p90": 0.006902681493759155,
"p95": 0.00701127667427063,
"p99": 0.007177308144569397,
"values": [
0.007017471790313721,
0.006853631973266602,
0.006845439910888672,
0.006813695907592773,
0.0068249602317810056,
0.006699007987976074,
0.006778880119323731,
0.0068618240356445315,
0.007192575931549072,
0.006802432060241699,
0.006820864200592041,
0.006864895820617676,
0.006849535942077637,
0.006833151817321777,
0.006801407814025879,
0.006845439910888672,
0.0066641921997070315,
0.006726655960083008,
0.006760447978973389,
0.006763519763946534,
0.006755328178405762,
0.007041024208068848,
0.006906879901885986,
0.006795263767242431,
0.006754303932189941,
0.006853631973266602,
0.006791168212890625,
0.00673689603805542,
0.006746079921722412,
0.0067717118263244626,
0.006746111869812011,
0.006763519763946534,
0.00672870397567749,
0.0067686400413513184,
0.007006207942962647,
0.006916096210479736,
0.006919167995452881,
0.006793216228485107,
0.006804480075836182,
0.00676966381072998,
0.0066416640281677245,
0.006451200008392334,
0.006696959972381592,
0.006295551776885986,
0.006335487842559814,
0.0067717118263244626,
0.0067348480224609375,
0.007171072006225586,
0.0065669121742248536,
0.00657919979095459,
0.006605823993682861,
0.006471680164337158,
0.006520832061767578,
0.006498271942138672,
0.006462463855743408,
0.0063170561790466305,
0.006306816101074219,
0.00626585578918457,
0.006280191898345947,
0.0063498239517211915,
0.006377471923828125,
0.006269919872283936,
0.006300672054290772,
0.006300672054290772,
0.0062638077735900875,
0.006243328094482422,
0.006253568172454834,
0.0062791681289672855,
0.006269983768463135,
0.006281216144561768,
0.006280191898345947,
0.006329343795776367
]
},
"throughput": {
"unit": "tokens/s",
"value": 150.38822271708156
},
"energy": null,
"efficiency": null
}
}
}