IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
77e568e verified
raw
history blame
8.27 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.346304,
"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": "bb03882362b0d86ebdf2f3e66d54ac5dde388b89",
"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": 957.874176,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6325878959999898,
"mean": 0.0486606073846146,
"stdev": 0.0008899930368394741,
"p50": 0.04907824800000071,
"p90": 0.04953367919999323,
"p95": 0.04961296119999474,
"p99": 0.04964226184000267,
"values": [
0.04907824800000071,
0.04829449999999724,
0.046918894999976146,
0.04964958700000466,
0.04929478299999346,
0.046988655999996354,
0.04958854399998813,
0.049128622000012,
0.04819050599999741,
0.04788639599999556,
0.049216365999996015,
0.04931422000001362,
0.04903857300001846
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.10100772462523
},
"energy": {
"unit": "kWh",
"cpu": 1.648080404157992e-06,
"ram": 6.887546062322434e-08,
"gpu": 0.0,
"total": 1.7169558647812164e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1164852.3069373425
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 957.874176,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.3994657069999903,
"mean": 0.030728131307691562,
"stdev": 0.00043238399684706583,
"p50": 0.030672686999992038,
"p90": 0.03125146880000784,
"p95": 0.0314041166000095,
"p99": 0.031569161720016156,
"values": [
0.030448376999999027,
0.030829922000009446,
0.03126657900000396,
0.03065515499997673,
0.03084149399998637,
0.030587166999993087,
0.030703474999995706,
0.03055480699998725,
0.03161042300001782,
0.03119102800002338,
0.030672686999992038,
0.029860087000002977,
0.030244506000002502
]
},
"throughput": {
"unit": "tokens/s",
"value": 32.54346936970065
},
"energy": {
"unit": "kWh",
"cpu": 1.0230693441850163e-06,
"ram": 4.275724606718101e-08,
"gpu": 0.0,
"total": 1.0658265902521976e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 938238.9303717581
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9527203690000192,
"mean": 0.07939336408333493,
"stdev": 0.000810988827274294,
"p50": 0.07948272800000211,
"p90": 0.08030036500000506,
"p95": 0.08032474900000466,
"p99": 0.08033401540000228,
"values": [
0.07918480600000066,
0.07818145600001003,
0.08033633200000168,
0.0801662019999867,
0.07756764800001292,
0.0803152720000071,
0.07971708200000194,
0.07979906500000311,
0.07908204299999966,
0.07992644399999449,
0.07919564499999865,
0.07924837400000229
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.595511117910988
},
"energy": null,
"efficiency": null
}
}
}