IlyasMoutawwakil's picture
Upload cuda_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f604938 verified
raw
history blame
13.6 kB
{
"config": {
"name": "cuda_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cu121",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cuda",
"device_ids": "0",
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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": 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",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7R32",
"cpu_count": 16,
"cpu_ram_mb": 66697.29792,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-5.10.215-203.850.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.2.0",
"optimum_benchmark_commit": null,
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1085.689856,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.007552
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.492716989517212,
"mean": 0.009124388694763183,
"stdev": 0.0002899352803857123,
"p50": 0.009082096099853516,
"p90": 0.009534150505065918,
"p95": 0.009732737636566163,
"p99": 0.009912337980270384,
"values": [
0.010001343727111816,
0.009784799575805664,
0.009356255531311036,
0.009149760246276855,
0.009108799934387207,
0.008988191604614258,
0.009095487594604492,
0.00917852783203125,
0.0091342716217041,
0.009190079689025878,
0.00918166446685791,
0.009077216148376465,
0.009082528114318847,
0.008958687782287597,
0.009066399574279784,
0.00904854393005371,
0.00920201587677002,
0.009218079566955566,
0.009005248069763183,
0.009127936363220214,
0.009090944290161133,
0.00970470428466797,
0.00910217571258545,
0.008941408157348632,
0.009045856475830078,
0.009016063690185547,
0.00929520034790039,
0.00953872013092041,
0.009110143661499023,
0.009197152137756348,
0.008910783767700195,
0.008974495887756348,
0.008647232055664063,
0.009310943603515625,
0.00952348804473877,
0.009290687561035156,
0.009191743850708008,
0.00983340835571289,
0.009687135696411133,
0.009053600311279298,
0.009081664085388184,
0.00906867218017578,
0.00897276782989502,
0.008982720375061036,
0.008970623970031738,
0.008925727844238281,
0.008621279716491698,
0.008554271697998047,
0.008579551696777344,
0.008825568199157715,
0.008893312454223633,
0.009000608444213867,
0.008928256034851074,
0.008890239715576172
]
},
"throughput": {
"unit": "tokens/s",
"value": 219.19276643134157
},
"energy": {
"unit": "kWh",
"cpu": 1.0584151106221337e-07,
"ram": 5.786856285924711e-08,
"gpu": 1.8865094457143659e-07,
"total": 3.5236101849289705e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 5675996.761941237
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1085.689856,
"max_global_vram": 1365.77024,
"max_process_vram": 0.0,
"max_reserved": 725.614592,
"max_allocated": 522.4576
},
"latency": {
"unit": "s",
"count": 54,
"total": 0.5098438072204592,
"mean": 0.009441551985564057,
"stdev": 0.000303376362980174,
"p50": 0.009419744014739991,
"p90": 0.0098376895904541,
"p95": 0.009943038463592528,
"p99": 0.010342996530532837,
"values": [
0.01016710376739502,
0.009839839935302734,
0.009649279594421387,
0.009419584274291992,
0.009452351570129395,
0.00934499168395996,
0.009422880172729492,
0.009527423858642577,
0.009421728134155273,
0.009501759529113769,
0.009484064102172852,
0.009464991569519044,
0.009566207885742188,
0.009333184242248535,
0.00940121555328369,
0.009403712272644043,
0.00958176040649414,
0.009460448265075683,
0.00946771240234375,
0.009378175735473632,
0.009346464157104491,
0.010023679733276367,
0.009511679649353027,
0.009330368041992188,
0.009419903755187989,
0.009429216384887695,
0.009708864212036133,
0.009832672119140625,
0.009383040428161621,
0.009334367752075195,
0.009227104187011718,
0.00906118392944336,
0.009572992324829102,
0.00979088020324707,
0.009899616241455078,
0.009378047943115234,
0.010541343688964843,
0.009458720207214355,
0.009858240127563476,
0.0092489595413208,
0.009508128166198731,
0.009241056442260743,
0.009234399795532226,
0.009207615852355957,
0.009221216201782227,
0.009224063873291015,
0.008816191673278809,
0.00886070442199707,
0.008857343673706055,
0.009256159782409668,
0.009176735877990722,
0.009240672111511231,
0.009163711547851562,
0.009190048217773437
]
},
"throughput": {
"unit": "tokens/s",
"value": 105.91479044218364
},
"energy": {
"unit": "kWh",
"cpu": 9.843242167610908e-08,
"ram": 5.381634566136987e-08,
"gpu": 1.7587999839407618e-07,
"total": 3.2812876573155513e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 3047584.071974075
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 53,
"total": 0.9842104301452637,
"mean": 0.01857000811594837,
"stdev": 0.0005125502999389638,
"p50": 0.018503616333007813,
"p90": 0.01940112648010254,
"p95": 0.019610214614868164,
"p99": 0.01972677909851074,
"values": [
0.019655679702758787,
0.019103744506835937,
0.018610176086425782,
0.018593791961669923,
0.018361343383789062,
0.018540544509887694,
0.018711551666259766,
0.01863065528869629,
0.018716672897338867,
0.018667520523071288,
0.01861324882507324,
0.018682880401611326,
0.018326528549194337,
0.018491392135620118,
0.018480127334594726,
0.01882009506225586,
0.018704383850097657,
0.018501632690429686,
0.018550783157348632,
0.01847603225708008,
0.019742719650268553,
0.0186429443359375,
0.01831942367553711,
0.018503616333007813,
0.01846886444091797,
0.01901468849182129,
0.019415008544921876,
0.01850067138671875,
0.018617279052734376,
0.018164735794067383,
0.01815449523925781,
0.018172927856445312,
0.019106815338134766,
0.01940892791748047,
0.018839519500732423,
0.019712064743041994,
0.01936992073059082,
0.019579904556274414,
0.018363391876220703,
0.018578432083129884,
0.0183767032623291,
0.01823539161682129,
0.018218080520629884,
0.018224031448364257,
0.01817804718017578,
0.017475584030151366,
0.01744179153442383,
0.017442815780639647,
0.018093055725097656,
0.01810534477233887,
0.018276351928710938,
0.018120704650878908,
0.018107391357421874
]
},
"throughput": {
"unit": "tokens/s",
"value": 53.850272641570676
},
"energy": null,
"efficiency": null
}
}
}