IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
677ba83 verified
raw
history blame
8.28 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cpu",
"device_ids": null,
"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": false,
"device_isolation_action": "error",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.3504,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "8c941d382a8099afb1970de0d586e2ae6aa525e8",
"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": 947.535872,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6203578859999936,
"mean": 0.0477198373846149,
"stdev": 0.002176628786059088,
"p50": 0.048551591000006056,
"p90": 0.050084055000002084,
"p95": 0.05028668300000731,
"p99": 0.05034081260001472,
"values": [
0.046609295999985534,
0.045372859999986304,
0.04890531099999862,
0.05024157500000115,
0.04748215500001152,
0.048551591000006056,
0.04872412299999951,
0.04918482200000085,
0.04945397500000581,
0.050354345000016565,
0.04816254600001457,
0.04378876299998069,
0.043526523999986466
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.911291186520465
},
"energy": {
"unit": "kWh",
"cpu": 1.7981752000673853e-06,
"ram": 7.514794847820943e-08,
"gpu": 0.0,
"total": 1.873323148545595e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1067621.4627213432
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 947.535872,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.38643292800000495,
"mean": 0.029725609846154227,
"stdev": 0.0020923003024940347,
"p50": 0.030366155999985267,
"p90": 0.031546085399997995,
"p95": 0.03243195279999895,
"p99": 0.03335699775999842,
"values": [
0.028023705000009613,
0.02852750400001014,
0.031086098999992373,
0.030801317999987532,
0.030366155999985267,
0.03102182999998604,
0.030178175000003193,
0.030988187000019707,
0.031661081999999396,
0.03358825899999829,
0.026925715999993827,
0.026774113000016087,
0.026490784000003487
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.641025539106835
},
"energy": {
"unit": "kWh",
"cpu": 8.861856749563508e-07,
"ram": 3.703165139046005e-08,
"gpu": 0.0,
"total": 9.232173263468114e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1083168.5795553895
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9323710710000057,
"mean": 0.07769758925000048,
"stdev": 0.004158368280345058,
"p50": 0.07923349150000547,
"p90": 0.08112267239999937,
"p95": 0.08239192059999709,
"p99": 0.0836268809199953,
"values": [
0.07388574700001982,
0.07987757799998008,
0.08106668700000341,
0.07788781499999686,
0.0795734910000192,
0.07889349199999174,
0.08019275600000242,
0.08112889299999893,
0.08393562099999485,
0.07530539600000452,
0.07058607999999822,
0.07003751499999566
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.870412192357614
},
"energy": null,
"efficiency": null
}
}
}