IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b79fb97 verified
raw
history blame
9.65 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"model_type": "gpt2",
"model": "openai-community/gpt2",
"processor": "openai-community/gpt2",
"device": "cpu",
"device_ids": null,
"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": false,
"device_isolation_action": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.767104,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "39ca491b78042552094f1505a2e66a0a588b62e8",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1115.795456,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.787445275000039,
"mean": 4.787445275000039,
"stdev": 0.0,
"p50": 4.787445275000039,
"p90": 4.787445275000039,
"p95": 4.787445275000039,
"p99": 4.787445275000039,
"values": [
4.787445275000039
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.875537538333214e-05,
"ram": 2.8753463461167355e-06,
"gpu": 0,
"total": 7.163072172944887e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.91232,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6507621599999993,
"mean": 0.04338414399999995,
"stdev": 0.0009088170427482708,
"p50": 0.043141794000007394,
"p90": 0.04378896299998587,
"p95": 0.04451133779998599,
"p99": 0.04585760916001163,
"values": [
0.043097480999961135,
0.0427636499999835,
0.04360716000002185,
0.043033622999985255,
0.043787226000006285,
0.04379012099997226,
0.043141794000007394,
0.042912145999991935,
0.04377040500003204,
0.043665540999995756,
0.04308909600001698,
0.046194177000018044,
0.04349164500001734,
0.04248801699998239,
0.04193007800000714
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.099791665821556
},
"energy": {
"unit": "kWh",
"cpu": 1.63513626597224e-06,
"ram": 6.837400283432861e-08,
"gpu": 0.0,
"total": 1.7035102688065688e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1174046.342204408
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.56768,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.3972415700001193,
"mean": 0.026482771333341284,
"stdev": 0.00039839373228727523,
"p50": 0.026533857999993415,
"p90": 0.02675014580000834,
"p95": 0.02705046500000776,
"p99": 0.027489919400023835,
"values": [
0.026342573000022185,
0.026627503000042907,
0.026400591000026452,
0.02659369999997807,
0.02656549700003552,
0.026597395999999662,
0.026533857999993415,
0.02636835000004112,
0.02622379099994987,
0.02681504299999915,
0.027599783000027855,
0.025849133999997775,
0.026652800000022125,
0.02591287199999215,
0.026158678999991025
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.76039854035291
},
"energy": {
"unit": "kWh",
"cpu": 9.721538299535862e-07,
"ram": 4.0649324139083054e-08,
"gpu": 0.0,
"total": 1.0128031540926697e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 987358.6944897111
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3917561240000964,
"mean": 0.02611707493333976,
"stdev": 0.0003608419806271117,
"p50": 0.026153649999969275,
"p90": 0.02638630200000307,
"p95": 0.02663987429999679,
"p99": 0.026995105260009495,
"values": [
0.025993382000024212,
0.026256310999997368,
0.026035861000025307,
0.026239509999982147,
0.02619330400000308,
0.026241113000025962,
0.026153649999969275,
0.026018528999998125,
0.025874229999999443,
0.026449571999989985,
0.02708391300001267,
0.02551062399999182,
0.026291397000022698,
0.025592505000020083,
0.025822223000034228
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.289127038627505
},
"energy": null,
"efficiency": null
}
}
}