IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4050534 verified
raw
history blame
No virus
9.53 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": "6ad94507b5a05ceef8e5c33b1b3e8110ab062b31",
"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": 1110.790144,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.8609619580000185,
"mean": 4.8609619580000185,
"stdev": 0.0,
"p50": 4.8609619580000185,
"p90": 4.8609619580000185,
"p95": 4.8609619580000185,
"p99": 4.8609619580000185,
"values": [
4.8609619580000185
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.840929763888919e-05,
"ram": 2.85933326531274e-06,
"gpu": 0,
"total": 7.126863090420192e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 964.128768,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6311735109999859,
"mean": 0.045083822214284704,
"stdev": 0.0030931362156399423,
"p50": 0.04368697999998972,
"p90": 0.04928761070000291,
"p95": 0.049864165299999284,
"p99": 0.05063433625999891,
"values": [
0.04934578099999953,
0.050826878999998826,
0.04790171399997689,
0.049151880000010806,
0.048147984000024735,
0.04393180699997856,
0.044000424999978804,
0.04226303899997674,
0.042651806000037595,
0.04344215300000087,
0.041916242000013426,
0.04240750899998602,
0.04224061700000448,
0.04294567499999857
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.361810994949415
},
"energy": {
"unit": "kWh",
"cpu": 1.6773397212962968e-06,
"ram": 7.009856731272745e-08,
"gpu": 0.0,
"total": 1.747438288609024e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1144532.5497543134
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 965.046272,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3935924569998974,
"mean": 0.028113746928564103,
"stdev": 0.002343312712023208,
"p50": 0.027110459499994022,
"p90": 0.03195006059998491,
"p95": 0.032529757699990114,
"p99": 0.032597161140006395,
"values": [
0.03248438999997916,
0.03261401200001046,
0.030236478999995597,
0.030703291999998328,
0.027758300999948915,
0.0271359569999845,
0.027084962000003543,
0.02640169600005038,
0.02608280999999124,
0.028765070000019932,
0.025737874999947508,
0.026148621999993793,
0.02627069200002552,
0.026168298999948547
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.56978735495342
},
"energy": {
"unit": "kWh",
"cpu": 1.0513552298148515e-06,
"ram": 4.3938493552671946e-08,
"gpu": 0.0,
"total": 1.0952937233675228e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 912997.1063154287
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.38785050899997486,
"mean": 0.02770360778571249,
"stdev": 0.0022628279580018565,
"p50": 0.026727243999999928,
"p90": 0.03139032150000389,
"p95": 0.0319736770999981,
"p99": 0.03206156022000926,
"values": [
0.03191452499999059,
0.032083531000012044,
0.029693544999986443,
0.030167180000034932,
0.027387667999960286,
0.02677404100001013,
0.026680446999989726,
0.026056661000041004,
0.025701486999992085,
0.028412912000021606,
0.025411214999962795,
0.025811062000002494,
0.02592527600000949,
0.02583095899996124
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.09638166028785
},
"energy": null,
"efficiency": null
}
}
}