IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
945f8d6
verified
{ | |
"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": "70bf04e46123aae57236d23126d446ccb3802129", | |
"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.061056, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.858304669000006, | |
"mean": 4.858304669000006, | |
"stdev": 0.0, | |
"p50": 4.858304669000006, | |
"p90": 4.858304669000006, | |
"p95": 4.858304669000006, | |
"p99": 4.858304669000006, | |
"values": [ | |
4.858304669000006 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.843666938888824e-05, | |
"ram": 2.860479591345389e-06, | |
"gpu": 0, | |
"total": 7.129714898023363e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 963.657728, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6401710600001138, | |
"mean": 0.04572650428572241, | |
"stdev": 0.0016499310523850604, | |
"p50": 0.04607061400000134, | |
"p90": 0.04719987379999111, | |
"p95": 0.047637014799977354, | |
"p99": 0.048202092559970426, | |
"values": [ | |
0.0455019490000268, | |
0.04834336199996869, | |
0.04639510600003405, | |
0.04450176000000283, | |
0.04689356600005112, | |
0.04706734000001234, | |
0.04516147300000739, | |
0.045936047999987295, | |
0.04642333800001097, | |
0.04429083700000547, | |
0.04725667399998201, | |
0.04620518000001539, | |
0.04494109099999832, | |
0.04125333600001113 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.738309569937485 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6305950175926005e-06, | |
"ram": 6.814507261265262e-08, | |
"gpu": 0.0, | |
"total": 1.6987400902052531e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1177343.144799948 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.44416, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40346626699994204, | |
"mean": 0.02881901907142443, | |
"stdev": 0.0017166671012040784, | |
"p50": 0.02918174749999025, | |
"p90": 0.030483149499974615, | |
"p95": 0.030877275899976554, | |
"p99": 0.03108483597999509, | |
"values": [ | |
0.031136725999999726, | |
0.029369617000043036, | |
0.029224044999978105, | |
0.02932829000002357, | |
0.030737571999964075, | |
0.02900789199998144, | |
0.02988949699999921, | |
0.029377882000005684, | |
0.02866887800001905, | |
0.028828345999954763, | |
0.02884727200000725, | |
0.029139450000002398, | |
0.024993736999988414, | |
0.024917062999975315 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.69930734011528 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0826465105555053e-06, | |
"ram": 4.524749446835485e-08, | |
"gpu": 0.0, | |
"total": 1.1278940050238599e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 886608.1347589445 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3969153629998914, | |
"mean": 0.028351097357135098, | |
"stdev": 0.001669565522002478, | |
"p50": 0.028669690999976183, | |
"p90": 0.029993169899984195, | |
"p95": 0.030384435349975546, | |
"p99": 0.03059659586996645, | |
"values": [ | |
0.030649635999964175, | |
0.02886518600001864, | |
0.028719562999981463, | |
0.028842262000011942, | |
0.03024163499998167, | |
0.028543694999996205, | |
0.029413417999990088, | |
0.028889821000007032, | |
0.02821379900001375, | |
0.028339041999970505, | |
0.02835566400000289, | |
0.028619818999970903, | |
0.02462713199997779, | |
0.02459469100000433 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.272003316243094 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |