IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0d15656 verified
raw
history blame
13.9 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": "3b8c49a169ebd79001b2a83fbf2b332612417102",
"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": 1048.997888,
"max_global_vram": 1107.550208,
"max_process_vram": 233590.022144,
"max_reserved": 725.614592,
"max_allocated": 513.035776
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.5091123890876771,
"mean": 0.008346104739142247,
"stdev": 0.0008326052056872511,
"p50": 0.00784450101852417,
"p90": 0.009412344932556152,
"p95": 0.0106350679397583,
"p99": 0.01090831642150879,
"values": [
0.009412344932556152,
0.007782100200653076,
0.007992660999298096,
0.007928501129150391,
0.007869300842285156,
0.007816980838775635,
0.007783060073852539,
0.00877890396118164,
0.008869462966918946,
0.010814428329467773,
0.011049148559570312,
0.010662748336791992,
0.009736346244812013,
0.00970418643951416,
0.0106350679397583,
0.009035703659057617,
0.008816183090209961,
0.008830102920532226,
0.008792183876037597,
0.008772343635559081,
0.008785622596740723,
0.008818903923034667,
0.008826903343200684,
0.008804984092712402,
0.00816866111755371,
0.007808821201324463,
0.008081460952758789,
0.00784450101852417,
0.007812020778656006,
0.007821140766143798,
0.007818740844726562,
0.0078102598190307616,
0.007790421009063721,
0.007798420906066895,
0.007792661190032959,
0.007796980857849121,
0.007840980052947998,
0.007809940814971924,
0.007804821014404297,
0.007796339988708496,
0.007768661022186279,
0.007816340923309326,
0.007799379825592041,
0.00782482099533081,
0.007804981231689453,
0.008905143737792968,
0.008739383697509765,
0.008258102416992187,
0.008293301582336425,
0.007838100910186767,
0.007951381206512452,
0.00794386100769043,
0.007917780876159668,
0.007827540874481202,
0.007787700176239014,
0.007770421028137207,
0.007764660835266114,
0.007783699989318848,
0.00779378080368042,
0.007806419849395752,
0.007802580833435059
]
},
"throughput": {
"unit": "tokens/s",
"value": 239.63274635414479
},
"energy": null,
"efficiency": null
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1048.997888,
"max_global_vram": 1107.546112,
"max_process_vram": 224866.7136,
"max_reserved": 725.614592,
"max_allocated": 513.25952
},
"latency": {
"unit": "s",
"count": 61,
"total": 0.4982795586585999,
"mean": 0.008168517355059015,
"stdev": 0.0006413044111770026,
"p50": 0.007900021076202392,
"p90": 0.009025143623352052,
"p95": 0.009325783729553222,
"p99": 0.010301692008972166,
"values": [
0.008482583045959472,
0.007592020988464355,
0.007466899871826172,
0.007439380168914795,
0.007369938850402832,
0.0073664188385009766,
0.007588819980621338,
0.00834754180908203,
0.009025143623352052,
0.009964667320251464,
0.010807229042053222,
0.009579385757446289,
0.009325783729553222,
0.00906002426147461,
0.009231704711914063,
0.008497303009033202,
0.008552183151245117,
0.008648662567138672,
0.008496662139892579,
0.008749302864074706,
0.008650902748107911,
0.00862706184387207,
0.008731383323669434,
0.008626102447509765,
0.00778338098526001,
0.007873301029205321,
0.007816821098327638,
0.007900021076202392,
0.007775859832763672,
0.007820820808410645,
0.007833301067352295,
0.007838901042938232,
0.007937301158905029,
0.007821619987487793,
0.007846580982208253,
0.007817300796508789,
0.007810901165008545,
0.007907220840454102,
0.007909141063690185,
0.00790994119644165,
0.007874101161956788,
0.007862740993499756,
0.007753140926361084,
0.007758739948272705,
0.007942261219024659,
0.008493942260742187,
0.00849106216430664,
0.00806610107421875,
0.008114260673522949,
0.007983380794525147,
0.008061942100524902,
0.008032180786132813,
0.00779970121383667,
0.007797461032867431,
0.007762580871582031,
0.007680659770965576,
0.0078004999160766605,
0.007880180835723878,
0.007728819847106934,
0.007818100929260254,
0.007748179912567139
]
},
"throughput": {
"unit": "tokens/s",
"value": 122.42123711479526
},
"energy": null,
"efficiency": null
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 60,
"total": 0.9922003946304323,
"mean": 0.016536673243840536,
"stdev": 0.0014478361820189872,
"p50": 0.015767561435699462,
"p90": 0.018004736137390138,
"p95": 0.019906427955627443,
"p99": 0.021134613132476804,
"values": [
0.015488040924072266,
0.01550740146636963,
0.015437801361083985,
0.015290281295776368,
0.015241479873657227,
0.01531588077545166,
0.017161323547363282,
0.017904687881469726,
0.020762136459350586,
0.021670616149902344,
0.020471414566040038,
0.01915797233581543,
0.01890517044067383,
0.019876691818237306,
0.017712047576904297,
0.01731364631652832,
0.017529325485229494,
0.017429807662963866,
0.017386285781860352,
0.017558765411376954,
0.017481008529663087,
0.017600366592407227,
0.01744852638244629,
0.016035882949829102,
0.01580484199523926,
0.01589412212371826,
0.015711082458496093,
0.01578404140472412,
0.015606282234191894,
0.01569156074523926,
0.015694602012634278,
0.015705322265625,
0.015724361419677733,
0.01566004180908203,
0.015711401939392088,
0.015668201446533202,
0.01567428207397461,
0.01582596206665039,
0.015649001121520997,
0.015731242179870604,
0.015725481033325196,
0.015600201606750488,
0.015684520721435547,
0.01579988193511963,
0.017438125610351563,
0.01729908561706543,
0.01642756462097168,
0.016407243728637694,
0.01573876190185547,
0.01602020263671875,
0.0160709228515625,
0.01588612174987793,
0.01557716178894043,
0.015751081466674803,
0.015469640731811523,
0.015453640937805175,
0.01574308204650879,
0.015668521881103514,
0.015601479530334472,
0.015614761352539062
]
},
"throughput": {
"unit": "tokens/s",
"value": 60.47165504539875
},
"energy": null,
"efficiency": null
}
}
}