IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3d7a586
verified
{ | |
"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": 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": "e93df0927946c9a7079bacb659484e01e92cbba6", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"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 | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1120.108544, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 5.1874903190000055, | |
"mean": 5.1874903190000055, | |
"stdev": 0.0, | |
"p50": 5.1874903190000055, | |
"p90": 5.1874903190000055, | |
"p95": 5.1874903190000055, | |
"p99": 5.1874903190000055, | |
"values": [ | |
5.1874903190000055 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.980338819999981e-05, | |
"ram": 2.917614953596061e-06, | |
"gpu": 0, | |
"total": 7.272100315359587e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 973.705216, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6338860780000175, | |
"mean": 0.04876046753846289, | |
"stdev": 0.0026319060698843763, | |
"p50": 0.048131871000009596, | |
"p90": 0.05258590199999276, | |
"p95": 0.05306667599999173, | |
"p99": 0.05343643679999104, | |
"values": [ | |
0.04932621200001108, | |
0.05352887699999087, | |
0.0473389230000123, | |
0.0527585419999923, | |
0.04570440699998812, | |
0.04636253099999976, | |
0.049726302999999916, | |
0.049596960000002355, | |
0.04714517200000046, | |
0.04794213499999955, | |
0.05189534199999457, | |
0.048131871000009596, | |
0.044428803000016615 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.01683394283236 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.8456658128787605e-06, | |
"ram": 7.713376459620216e-08, | |
"gpu": 0.0, | |
"total": 1.9227995774749624e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1040150.0101359591 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.491648, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3869948789999853, | |
"mean": 0.029768836846152717, | |
"stdev": 0.0016316748742120088, | |
"p50": 0.030002453999998124, | |
"p90": 0.031159839600002216, | |
"p95": 0.03241383739999719, | |
"p99": 0.0336926514799893, | |
"values": [ | |
0.03040656199999603, | |
0.03134815900000376, | |
0.03401235499998734, | |
0.028078053000001546, | |
0.028052354999999807, | |
0.030194394000005786, | |
0.027772889999994277, | |
0.027990338999984488, | |
0.02957784700001298, | |
0.03016659200000049, | |
0.03008985799999664, | |
0.029303021000004037, | |
0.030002453999998124 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.592175776570144 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.1576499738734022e-06, | |
"ram": 4.83704650462913e-08, | |
"gpu": 0.0, | |
"total": 1.206020438919693e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 829173.3437749711 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.38132762700001877, | |
"mean": 0.02933289438461683, | |
"stdev": 0.00157809161759308, | |
"p50": 0.02955299100000275, | |
"p90": 0.030601875000007796, | |
"p95": 0.0318648132000078, | |
"p99": 0.03315586104000772, | |
"values": [ | |
0.029853615000007494, | |
0.03078894000000787, | |
0.0334786230000077, | |
0.02771123499999817, | |
0.027648858000020482, | |
0.029765389000004916, | |
0.027424516999985826, | |
0.027592812999984062, | |
0.029178488000013658, | |
0.029751823999987437, | |
0.02955299100000275, | |
0.02895660100000441, | |
0.02962373299999399 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.09141924038816 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |