IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c43b325 verified
raw
history blame
14.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_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": 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.3.1",
"optimum_benchmark_commit": "802823c7274dfd9b1edbe9a02521fdbafa78149a",
"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": 901.451776,
"max_global_vram": 1296.519168,
"max_process_vram": 43828.59264,
"max_reserved": 725.614592,
"max_allocated": 666.338304
},
"latency": {
"unit": "s",
"count": 1,
"total": 7.87854931640625,
"mean": 7.87854931640625,
"stdev": 0.0,
"p50": 7.87854931640625,
"p90": 7.87854931640625,
"p95": 7.87854931640625,
"p99": 7.87854931640625,
"values": [
7.87854931640625
]
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1055.90784,
"max_global_vram": 1390.907392,
"max_process_vram": 282658.557952,
"max_reserved": 725.614592,
"max_allocated": 513.035264
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.49923922824859607,
"mean": 0.00832065380414327,
"stdev": 0.00038307045281672607,
"p50": 0.008207494735717774,
"p90": 0.008907668018341064,
"p95": 0.00901291561126709,
"p99": 0.009294834232330322,
"values": [
0.008781092643737793,
0.009262689590454102,
0.008919331550598144,
0.008541732788085938,
0.008201414108276368,
0.008195013999938964,
0.008294693946838379,
0.00821357536315918,
0.008236933708190917,
0.008360934257507325,
0.008862852096557617,
0.009341091156005859,
0.00890477180480957,
0.009055171012878418,
0.008928292274475098,
0.008527173042297363,
0.008522533416748046,
0.008524293899536134,
0.008675651550292969,
0.008477093696594239,
0.008535333633422851,
0.009010691642761231,
0.008226214408874511,
0.007968935012817382,
0.008012134552001953,
0.007979973793029786,
0.007973093986511231,
0.007976134777069092,
0.007969574928283691,
0.007989095211029053,
0.00797789478302002,
0.007985414981842041,
0.007971175193786621,
0.008001894950866699,
0.007959495067596436,
0.007989093780517579,
0.008049895286560058,
0.008083334922790527,
0.00797501516342163,
0.007973575115203857,
0.007960454940795898,
0.00794061517715454,
0.00880189323425293,
0.008397733688354492,
0.0089063720703125,
0.008645413398742675,
0.008485572814941406,
0.008429094314575196,
0.008423333168029784,
0.008408932685852051,
0.008124613761901855,
0.007962695121765137,
0.007973734855651855,
0.008089414596557617,
0.007994694232940674,
0.007930214881896974,
0.007935494899749755,
0.00839613437652588,
0.008058053970336914,
0.007940454959869385
]
},
"throughput": {
"unit": "tokens/s",
"value": 240.36572691007765
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1055.90784,
"max_global_vram": 1392.300032,
"max_process_vram": 256849.891328,
"max_reserved": 725.614592,
"max_allocated": 513.259008
},
"latency": {
"unit": "s",
"count": 60,
"total": 0.500948979854584,
"mean": 0.008349149664243062,
"stdev": 0.0006124668692645104,
"p50": 0.008189493656158446,
"p90": 0.008877235984802247,
"p95": 0.008943788099288941,
"p99": 0.01093095915794372,
"values": [
0.008887171745300293,
0.00908013153076172,
0.008894532203674317,
0.008087014198303223,
0.008137735366821289,
0.008265893936157226,
0.008267173767089844,
0.008156773567199706,
0.008100934028625488,
0.011792922973632812,
0.0103319673538208,
0.008936612129211426,
0.008805252075195313,
0.008869892120361328,
0.008876132011413575,
0.008414533615112305,
0.008396293640136719,
0.008556133270263671,
0.0084900541305542,
0.008357254028320313,
0.008718051910400391,
0.008793251991271973,
0.008320613861083985,
0.008047014236450196,
0.008107975006103515,
0.008216774940490723,
0.007939334869384765,
0.007987814903259277,
0.008175013542175293,
0.007957415103912353,
0.00812701416015625,
0.007947175025939942,
0.008249733924865723,
0.007927334785461426,
0.007926694869995117,
0.008032295227050781,
0.008017575263977051,
0.007962214946746825,
0.007913575172424317,
0.008017733573913574,
0.007857895851135254,
0.007893896102905274,
0.008347972869873047,
0.00858957290649414,
0.008345252990722656,
0.008249573707580567,
0.008246213912963866,
0.008567652702331542,
0.008582213401794433,
0.008047334671020508,
0.007907654762268066,
0.008026535034179688,
0.007876134872436524,
0.00791725492477417,
0.008023494720458985,
0.007987494945526124,
0.008203973770141601,
0.0082225341796875,
0.008042374610900878,
0.007924933910369874
]
},
"throughput": {
"unit": "tokens/s",
"value": 119.77267628614973
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 60,
"total": 0.45448944616317744,
"mean": 0.0075748241027196244,
"stdev": 0.0006075821686078143,
"p50": 0.007385576009750366,
"p90": 0.0080503737449646,
"p95": 0.008094749975204468,
"p99": 0.010137285060882564,
"values": [
0.008087493896484376,
0.00823261547088623,
0.008039334297180175,
0.007311656951904297,
0.0073244571685791016,
0.007401576042175293,
0.00740397596359253,
0.007369575977325439,
0.007326537132263183,
0.011006045341491699,
0.009533570289611817,
0.008059014320373535,
0.008049413681030274,
0.008047494888305664,
0.008035175323486328,
0.007689576148986816,
0.007712776184082031,
0.007799174785614014,
0.007779975891113281,
0.007568456172943115,
0.008064933776855469,
0.008019014358520508,
0.007544616222381592,
0.007187817096710205,
0.007325417041778565,
0.007444457054138183,
0.007185257911682129,
0.0071908578872680665,
0.007449417114257812,
0.007187817096710205,
0.007239017009735107,
0.007196617126464844,
0.007414056777954102,
0.00718701696395874,
0.007168137073516846,
0.0073036570549011234,
0.007236776828765869,
0.007185737133026123,
0.007179496765136718,
0.007226216793060303,
0.007179818153381348,
0.0071596579551696776,
0.007701415061950684,
0.00794669485092163,
0.007661896228790283,
0.007572936058044434,
0.0075833358764648435,
0.0076513361930847165,
0.007778535842895508,
0.007315496921539307,
0.007181737899780273,
0.0071802978515625,
0.00713245677947998,
0.007155656814575195,
0.007167337894439697,
0.0071927781105041505,
0.00736765718460083,
0.007495495796203613,
0.0071700577735900875,
0.007180615901947022
]
},
"throughput": {
"unit": "tokens/s",
"value": 132.01626683858777
},
"energy": null,
"efficiency": null
}
}
}