IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d93f63c verified
raw
history blame
13.8 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.2.2+rocm5.7",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"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,
"latency": true,
"memory": true,
"energy": false,
"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 7763 64-Core Processor",
"cpu_count": 128,
"cpu_ram_mb": 1082015.236096,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.15.0-84-generic-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.12",
"gpu": [
"Advanced Micro Devices, Inc. [AMD/ATI]"
],
"gpu_count": 1,
"gpu_vram_mb": 68702699520,
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": "dd02f26cb819965cbf86e16d9ce013cddc3b86af",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1050.034176,
"max_global_vram": 1107.546112,
"max_process_vram": 254911.442944,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.5042238645553588,
"mean": 0.00840373107592265,
"stdev": 0.0005185803478594876,
"p50": 0.008280641078948974,
"p90": 0.008885328483581542,
"p95": 0.00891476812362671,
"p99": 0.009670305519103998,
"values": [
0.010689920425415039,
0.008961759567260742,
0.00896127986907959,
0.008573599815368652,
0.008200480461120605,
0.008124159812927247,
0.008242560386657714,
0.008187360763549804,
0.008141600608825683,
0.008214561462402344,
0.00828704071044922,
0.008236001014709473,
0.00827424144744873,
0.008369759559631347,
0.008107839584350586,
0.008311840057373046,
0.007923840045928955,
0.007930399894714356,
0.007913919925689697,
0.007916160106658935,
0.007869280815124512,
0.007878880977630615,
0.008867200851440429,
0.008853281021118164,
0.008796320915222169,
0.008846080780029297,
0.008874561309814453,
0.00887248134613037,
0.00885184097290039,
0.008873600959777832,
0.008883840560913086,
0.00890480136871338,
0.008863040924072266,
0.00887551975250244,
0.008861599922180175,
0.008875679969787598,
0.008877920150756837,
0.008862879753112793,
0.008876959800720214,
0.00887007999420166,
0.008912320137023927,
0.008898719787597657,
0.008325440406799316,
0.008288479804992676,
0.008268159866333008,
0.008365280151367187,
0.007832159996032715,
0.007830400943756104,
0.007846560955047608,
0.007864480972290038,
0.007906239986419678,
0.007886879920959473,
0.007893119812011719,
0.007899360179901123,
0.007897759914398193,
0.007869121074676513,
0.0078808012008667,
0.00786880111694336,
0.007842240810394287,
0.007943359851837159
]
},
"throughput": {
"unit": "tokens/s",
"value": 237.9895289284253
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1050.034176,
"max_global_vram": 1107.53792,
"max_process_vram": 241342.017536,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.5029766693115234,
"mean": 0.008382944488525392,
"stdev": 0.0005773976253804681,
"p50": 0.008246720790863037,
"p90": 0.00880326452255249,
"p95": 0.008889952278137207,
"p99": 0.010331620206832877,
"values": [
0.009342241287231445,
0.008818241119384765,
0.00878800106048584,
0.008259361267089843,
0.008213920593261719,
0.008168001174926758,
0.008336480140686036,
0.008072959899902343,
0.00823408031463623,
0.008300640106201173,
0.00829967975616455,
0.008084159851074219,
0.008103839874267578,
0.008152960777282715,
0.011755360603332519,
0.008023680686950684,
0.007864641189575196,
0.007795200824737549,
0.007846080780029296,
0.007970880031585694,
0.00790112018585205,
0.00817471981048584,
0.008889920234680175,
0.008753120422363281,
0.008661439895629883,
0.008700160026550293,
0.008548480033874511,
0.008736160278320313,
0.008543519973754883,
0.008668160438537598,
0.008731200218200683,
0.008801600456237794,
0.008737119674682617,
0.0088905611038208,
0.008692960739135742,
0.00878976058959961,
0.00877168083190918,
0.008617280960083008,
0.008882720947265626,
0.00870784091949463,
0.008726720809936523,
0.008402400970458985,
0.008406081199645997,
0.008424800872802734,
0.008136960983276367,
0.007863040924072265,
0.007944159984588623,
0.007729919910430908,
0.007948800086975098,
0.007999839782714844,
0.008014081001281738,
0.008097921371459961,
0.007940960884094237,
0.007892160892486573,
0.007908160209655762,
0.007957280158996582,
0.0079683198928833,
0.008074080467224121,
0.007990880012512207,
0.007920159816741943
]
},
"throughput": {
"unit": "tokens/s",
"value": 119.28982726401254
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 59,
"total": 0.989876508712769,
"mean": 0.016777567944284217,
"stdev": 0.0008703787421465644,
"p50": 0.01655632019042969,
"p90": 0.017731040573120117,
"p95": 0.017760432052612303,
"p99": 0.018705885124206546,
"values": [
0.01779136085510254,
0.017757120132446288,
0.016908159255981447,
0.01641712188720703,
0.01632111930847168,
0.016631521224975587,
0.016428001403808595,
0.016333120346069336,
0.01655632019042969,
0.016625280380249022,
0.016427520751953126,
0.016546241760253905,
0.016531200408935548,
0.019968799591064453,
0.016409440994262694,
0.015984161376953125,
0.015714080810546874,
0.015763840675354003,
0.015803680419921876,
0.015853920936584474,
0.01606960105895996,
0.01768351936340332,
0.017742559432983397,
0.017570560455322265,
0.01761743927001953,
0.017562400817871093,
0.017485599517822265,
0.017555040359497072,
0.0175,
0.017614879608154298,
0.01765648078918457,
0.017790239334106447,
0.017652000427246094,
0.017728160858154297,
0.017581600189208985,
0.01775103950500488,
0.01762544059753418,
0.017640960693359374,
0.01770159912109375,
0.017647199630737305,
0.01738479995727539,
0.016682880401611328,
0.01672304153442383,
0.016647520065307616,
0.016110559463500977,
0.015733120918273925,
0.015817761421203613,
0.0156931209564209,
0.015836800575256348,
0.015942081451416016,
0.016024801254272462,
0.01595024108886719,
0.015944801330566406,
0.015806879997253418,
0.015926401138305665,
0.015943201065063476,
0.015920801162719725,
0.01592720127105713,
0.01591215991973877
]
},
"throughput": {
"unit": "tokens/s",
"value": 59.60339444434675
},
"energy": null,
"efficiency": null
}
}
}