IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5d5eed3 verified
raw
history blame
8.78 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.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": 2,
"sequence_length": 16,
"num_choices": 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": 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.15",
"optimum_benchmark_version": "0.5.0.dev0",
"optimum_benchmark_commit": "494df68bab4c5aa3df2cebc922b7b34380652b84",
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 1129.63584,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.7357475809999983
],
"count": 1,
"total": 1.7357475809999983,
"mean": 1.7357475809999983,
"p50": 1.7357475809999983,
"p90": 1.7357475809999983,
"p95": 1.7357475809999983,
"p99": 1.7357475809999983,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 0.00020260602767222292,
"ram": 8.46901437221188e-06,
"gpu": 0,
"total": 0.0002110750420444348
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1020.133376,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.1111398559999941,
0.11261263299999769,
0.112887905000008,
0.11332358300001033,
0.1126790860000142,
0.12588128400000187,
0.10656034900000577
],
"count": 7,
"total": 0.795084696000032,
"mean": 0.11358352800000457,
"p50": 0.1126790860000142,
"p90": 0.11834666340000695,
"p95": 0.1221139737000044,
"p99": 0.12512782194000238,
"stdev": 0.005462122741973125,
"stdev_": 4.808903930130525
},
"throughput": {
"unit": "samples/s",
"value": 17.608186989929735
},
"energy": {
"unit": "kWh",
"cpu": 4.180251125555496e-06,
"ram": 1.7470328036610544e-07,
"gpu": 0.0,
"total": 4.354954405921602e-06
},
"efficiency": {
"unit": "samples/kWh",
"value": 459247.0583114537
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1021.968384,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.044832043000013755,
0.04444557499999746,
0.04482772500000465,
0.04479896199998734,
0.04736703300000045,
0.04315216199998417,
0.04350961599999437
],
"count": 7,
"total": 0.3129331159999822,
"mean": 0.044704730857140315,
"p50": 0.04479896199998734,
"p90": 0.045846039000008436,
"p95": 0.04660653600000444,
"p99": 0.047214933600001244,
"stdev": 0.0012555021468568675,
"stdev_": 2.8084324025324863
},
"throughput": {
"unit": "tokens/s",
"value": 44.73799442817933
},
"energy": {
"unit": "kWh",
"cpu": 1.6449792022221582e-06,
"ram": 6.873984318359995e-08,
"gpu": 0.0,
"total": 1.713719045405759e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1167052.4438423673
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.043898459000018875,
0.043573796000003995,
0.04393916399999398,
0.04389039399998751,
0.04602116300000603,
0.04224194099998613,
0.04260924299998692
],
"count": 7,
"total": 0.30617415999998343,
"mean": 0.043739165714283344,
"p50": 0.04389039399998751,
"p90": 0.0447719635999988,
"p95": 0.04539656330000241,
"p99": 0.0458962430600053,
"stdev": 0.0011238651164235823,
"stdev_": 2.569470857686195
},
"throughput": null,
"energy": null,
"efficiency": null
}
}
}