IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
da44c6a verified
raw
history blame
9.64 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.0+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": "error",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.342208,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "a24cd34532cdb9c93a3944992e210e603d844e1c",
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1121.681408,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.715804810999998,
"mean": 4.715804810999998,
"stdev": 0.0,
"p50": 4.715804810999998,
"p90": 4.715804810999998,
"p95": 4.715804810999998,
"p99": 4.715804810999998,
"values": [
4.715804810999998
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.770138923333318e-05,
"ram": 2.829747289093254e-06,
"gpu": 0,
"total": 7.053113652242644e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 976.125952,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6454036450000729,
"mean": 0.043026909666671526,
"stdev": 0.0029055180816583486,
"p50": 0.04486114600001656,
"p90": 0.04585515380001652,
"p95": 0.04638405770002123,
"p99": 0.046721787540010384,
"values": [
0.045061512000017956,
0.04486114600001656,
0.04459976699999402,
0.04516025600000262,
0.04489559099999951,
0.045314835999988645,
0.04680622000000767,
0.04620313100002704,
0.045333188000000746,
0.0398940289999814,
0.0394807950000029,
0.03953731000001426,
0.03956719600000724,
0.03945583800000918,
0.039232830000003105
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.48253884589792
},
"energy": {
"unit": "kWh",
"cpu": 1.5487615141025882e-06,
"ram": 6.472580847460268e-08,
"gpu": 0.0,
"total": 1.613487322577191e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1239551.1089640544
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 976.257024,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4020661709999729,
"mean": 0.02680441139999819,
"stdev": 0.001931607825549768,
"p50": 0.028111171999995577,
"p90": 0.02845175379999887,
"p95": 0.02866503369999691,
"p99": 0.0290564675399969,
"values": [
0.028354957999994213,
0.028026362999980847,
0.028446379000001798,
0.028111171999995577,
0.02823457299999177,
0.02836903499999721,
0.028455336999996916,
0.0291543259999969,
0.02815094600001089,
0.024450964000010345,
0.02436543400000346,
0.024442888999999468,
0.024785009999988006,
0.024440144000010378,
0.024278640999995105
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.30729188853098
},
"energy": {
"unit": "kWh",
"cpu": 9.845807070779222e-07,
"ram": 4.1147333338867344e-08,
"gpu": 0.0,
"total": 1.0257280404167892e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 974917.2885959762
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3958743199999617,
"mean": 0.02639162133333078,
"stdev": 0.0018437370152611242,
"p50": 0.02763207399999601,
"p90": 0.02796279800000434,
"p95": 0.028194725699995614,
"p99": 0.02859216833998744,
"values": [
0.027841886999993903,
0.02755408799998804,
0.027934280000010858,
0.02763207399999601,
0.02774782099999129,
0.027881792000016503,
0.027981809999999996,
0.028691528999985394,
0.027668903000005685,
0.024156933000000436,
0.02405346899999472,
0.024146893999983376,
0.02446940900000527,
0.024126375999998118,
0.023987054999992097
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.890813427861275
},
"energy": null,
"efficiency": null
}
}
}