IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
736575f verified
raw
history blame
9.79 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.7712,
"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.5.0.dev0",
"optimum_benchmark_commit": "0a6df5b9a995b4bb9aebaf68a47898df52335978",
"transformers_version": "4.45.2",
"transformers_commit": null,
"accelerate_version": "1.0.0",
"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
},
"print_report": true,
"log_report": true
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1110.618112,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.7282948760000068
],
"count": 1,
"total": 1.7282948760000068,
"mean": 1.7282948760000068,
"p50": 1.7282948760000068,
"p90": 1.7282948760000068,
"p95": 1.7282948760000068,
"p99": 1.7282948760000068,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 965.390336,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.04026207000001136,
0.04048208899999395,
0.04045201299999235,
0.03998925199999803,
0.040038110000011784,
0.04049320999999395,
0.04028537299998902,
0.04278275599997983,
0.040532073000008495,
0.04002027900000371,
0.03953229999999053,
0.04399012499999344,
0.038606624999999894,
0.03885768300000336,
0.038872009000016305,
0.0389049220000004
],
"count": 16,
"total": 0.6441008889999864,
"mean": 0.04025630556249915,
"p50": 0.04015009000001157,
"p90": 0.04165741449999416,
"p95": 0.04308459824998323,
"p99": 0.0438090196499914,
"stdev": 0.0013616537174823305,
"stdev_": 3.3824607063564773
},
"throughput": {
"unit": "tokens/s",
"value": 49.68165786835403
},
"energy": {
"unit": "kWh",
"cpu": 1.591370091111085e-06,
"ram": 6.654360048340539e-08,
"gpu": 0.0,
"total": 1.6579136915944903e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1206335.414285957
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 965.390336,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.024790284999994583,
0.024560997999998335,
0.02443017400000258,
0.02437746500001481,
0.02478494599998271,
0.024805364999991752,
0.024406119000019544,
0.024734972000004518,
0.02443210699999554,
0.024400929999984555,
0.02410769400000845,
0.023995524000014257,
0.023639361000022063,
0.024101691999987906,
0.023623552000003656,
0.023633820000014794
],
"count": 16,
"total": 0.38882500400004005,
"mean": 0.024301562750002503,
"p50": 0.02440352450000205,
"p90": 0.024787615499988647,
"p95": 0.024794054999993875,
"p99": 0.024803102999992176,
"stdev": 0.00039975841490356664,
"stdev_": 1.6449905671334881
},
"throughput": {
"unit": "tokens/s",
"value": 41.1496170138234
},
"energy": {
"unit": "kWh",
"cpu": 9.215636738194441e-07,
"ram": 3.8537000622204327e-08,
"gpu": 0.0,
"total": 9.601006744416483e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1041557.4393607789
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.024441724999974213,
0.024212820000002466,
0.024101010999999062,
0.024037772000014,
0.024450211999976545,
0.02443588700000987,
0.024071294999998827,
0.02439919600001872,
0.02409231400000067,
0.024063662000003205,
0.02377391199999579,
0.023684325000004947,
0.02332817100000284,
0.023789389999990362,
0.023289629999993622,
0.023322790999998233
],
"count": 16,
"total": 0.38349411299998337,
"mean": 0.02396838206249896,
"p50": 0.024067478500001016,
"p90": 0.02443880599999204,
"p95": 0.024443846749974796,
"p99": 0.024448938949976195,
"stdev": 0.0003885442762622345,
"stdev_": 1.6210701049786442
},
"throughput": {
"unit": "tokens/s",
"value": 41.72163133049371
},
"energy": null,
"efficiency": null
}
}
}