IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
39fa2e2 verified
raw
history blame
9.52 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": "8b759bc0742b6984132ce7d4aeb59966503ba57b",
"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": 1119.719424,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.925840445000006,
"mean": 4.925840445000006,
"stdev": 0.0,
"p50": 4.925840445000006,
"p90": 4.925840445000006,
"p95": 4.925840445000006,
"p99": 4.925840445000006,
"values": [
4.925840445000006
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.793170408888851e-05,
"ram": 2.8393658329107946e-06,
"gpu": 0,
"total": 7.07710699217993e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 973.06624,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6263432039999941,
"mean": 0.044738800285713864,
"stdev": 0.002633418672725704,
"p50": 0.04617310849999967,
"p90": 0.047166001799982385,
"p95": 0.04732767859998575,
"p99": 0.04752415331999231,
"values": [
0.04757327199999395,
0.04719543599998133,
0.04619376200000147,
0.04709732199998484,
0.047052078000007214,
0.04694275299999617,
0.04662765400001945,
0.04615245499999787,
0.04505270799998584,
0.041319427000019004,
0.0411367769999913,
0.041381502999996655,
0.04133641999999327,
0.04128163700002574
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.703925613281285
},
"energy": {
"unit": "kWh",
"cpu": 1.6394411379629708e-06,
"ram": 6.85144342279952e-08,
"gpu": 0.0,
"total": 1.7079555721909659e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1170990.6466913535
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 973.852672,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3860359160000826,
"mean": 0.0275739940000059,
"stdev": 0.0019596914736748614,
"p50": 0.0286559719999957,
"p90": 0.02971536740000147,
"p95": 0.029939379149996625,
"p99": 0.03005021662999127,
"values": [
0.03007792599998993,
0.029012743000009777,
0.029294060000012223,
0.02895467500002269,
0.02986477700000023,
0.029366745000004357,
0.028688657999992984,
0.028623285999998416,
0.025059923000014805,
0.025434883000002628,
0.025786751000026698,
0.025182311000008895,
0.025392173000000184,
0.025297004999998762
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.26605561747007
},
"energy": {
"unit": "kWh",
"cpu": 9.593390450000044e-07,
"ram": 4.009225225651637e-08,
"gpu": 0.0,
"total": 9.99431297256521e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1000569.0263503256
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.38004733800002555,
"mean": 0.027146238428573253,
"stdev": 0.0018724549039217731,
"p50": 0.02817034849998379,
"p90": 0.029219261399987317,
"p95": 0.029432710449978573,
"p99": 0.02952059408998423,
"values": [
0.029542564999985643,
0.028526625000012018,
0.028758489000011878,
0.02845431000000076,
0.029373557999974764,
0.028859236000016608,
0.028195865999975922,
0.028144830999991655,
0.024742329000019936,
0.02511322099999802,
0.025455742000019654,
0.02483678500001929,
0.025065201000018078,
0.02497857999998132
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.8375162780355
},
"energy": null,
"efficiency": null
}
}
}