IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
662bfe1
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.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": "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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "3b109cf557e2496fe3c954817385781e6dc5cad1", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null, | |
"llama_cpp_version": null, | |
"llama_cpp_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1115.283456, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.962822011000014, | |
"mean": 4.962822011000014, | |
"stdev": 0.0, | |
"p50": 4.962822011000014, | |
"p90": 4.962822011000014, | |
"p95": 4.962822011000014, | |
"p99": 4.962822011000014, | |
"values": [ | |
4.962822011000014 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 7.014084657033284e-05, | |
"ram": 2.9317192491441803e-06, | |
"gpu": 0, | |
"total": 7.307256581947703e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 968.892416, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6399643099998684, | |
"mean": 0.04571173642856203, | |
"stdev": 0.001728723414833886, | |
"p50": 0.046435374500021, | |
"p90": 0.04739255319997824, | |
"p95": 0.047420778749983586, | |
"p99": 0.04743052615000124, | |
"values": [ | |
0.0474142179999717, | |
0.04743296300000566, | |
0.046474152000030244, | |
0.046906259000024875, | |
0.0473420019999935, | |
0.04720959599995922, | |
0.04726568099999895, | |
0.04639659700001175, | |
0.04608215999996901, | |
0.04424311299999317, | |
0.04319609699996363, | |
0.04324787299998434, | |
0.042834841000001234, | |
0.043918757999961144 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.7524398821643 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7034055530161101e-06, | |
"ram": 7.11866204051148e-08, | |
"gpu": 0.0, | |
"total": 1.7745921734212248e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1127019.509020043 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.416704, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3951575150000508, | |
"mean": 0.028225536785717913, | |
"stdev": 0.0013606235326522015, | |
"p50": 0.02879382800000485, | |
"p90": 0.029603304800031083, | |
"p95": 0.029847111700024697, | |
"p99": 0.030100997540004074, | |
"values": [ | |
0.02967622700003858, | |
0.029132240999956593, | |
0.02908639399998947, | |
0.02886931000000459, | |
0.02943315300001359, | |
0.030164468999998917, | |
0.028906097999993108, | |
0.028718346000005113, | |
0.02834857599998486, | |
0.02604703200000813, | |
0.027787859000000026, | |
0.026659800999993877, | |
0.02609976500002631, | |
0.026228244000037648 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.428909912033944 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.960857182501212e-07, | |
"ram": 4.162909130627668e-08, | |
"gpu": 0.0, | |
"total": 1.0377148095563984e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 963655.9012080393 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3892789910000829, | |
"mean": 0.027805642214291635, | |
"stdev": 0.0012907068929441515, | |
"p50": 0.02831012449999548, | |
"p90": 0.029124724999996944, | |
"p95": 0.02935388320000243, | |
"p99": 0.029577333440016673, | |
"values": [ | |
0.02920348399999284, | |
0.028675266999982796, | |
0.02861548399999947, | |
0.028382299999975658, | |
0.028940954000006514, | |
0.029633196000020234, | |
0.028429317000018273, | |
0.028237949000015306, | |
0.027978815000039958, | |
0.025726342999973895, | |
0.027449917000012647, | |
0.026340715000003456, | |
0.025769427000000178, | |
0.025895823000041673 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.96392387894629 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |