IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8db1502
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": "32b10f1b300765e407764dfb07b6fe749067c327", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"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.735232, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.837882460000003, | |
"mean": 4.837882460000003, | |
"stdev": 0.0, | |
"p50": 4.837882460000003, | |
"p90": 4.837882460000003, | |
"p95": 4.837882460000003, | |
"p99": 4.837882460000003, | |
"values": [ | |
4.837882460000003 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.731132889444401e-05, | |
"ram": 2.8134219386396045e-06, | |
"gpu": 0, | |
"total": 7.012475083308361e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.35648, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6475484769999298, | |
"mean": 0.04625346264285213, | |
"stdev": 0.0020591863416355625, | |
"p50": 0.04740812299999675, | |
"p90": 0.048201641200012094, | |
"p95": 0.04832106780000345, | |
"p99": 0.04846572555996431, | |
"values": [ | |
0.047452840999994805, | |
0.04787592700000687, | |
0.04729253300001801, | |
0.04741018200002145, | |
0.048150165999970795, | |
0.04740606399997205, | |
0.04850188999995453, | |
0.04822370200002979, | |
0.04745040699998526, | |
0.043914610999991055, | |
0.04316273500000989, | |
0.042954719000022124, | |
0.04344441799997867, | |
0.0443082819999745 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.24000595248568 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6925050451691155e-06, | |
"ram": 7.073088769479535e-08, | |
"gpu": 0.0, | |
"total": 1.7632359328639105e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1134278.1545697795 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.01184, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.40660500100000263, | |
"mean": 0.029043214357143046, | |
"stdev": 0.001917755823275476, | |
"p50": 0.029609716499976457, | |
"p90": 0.030274558299976207, | |
"p95": 0.03147463164996225, | |
"p99": 0.03319074552998245, | |
"values": [ | |
0.030003507000003538, | |
0.029587956000000304, | |
0.02963147699995261, | |
0.029759033999994244, | |
0.02982840300001044, | |
0.029469114999983503, | |
0.030169566000040504, | |
0.03031955499994865, | |
0.0336197739999875, | |
0.026864007000028778, | |
0.026521230000014384, | |
0.026640321999991556, | |
0.027483428000039112, | |
0.026707627000007506 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.431450586117876 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.733742729790893e-07, | |
"ram": 4.068108875592315e-08, | |
"gpu": 0.0, | |
"total": 1.014055361735013e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 986139.4532632176 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.4003273420000255, | |
"mean": 0.028594810142858966, | |
"stdev": 0.001833549827496756, | |
"p50": 0.02905784649999532, | |
"p90": 0.02973866029998362, | |
"p95": 0.03094214589997932, | |
"p99": 0.032668147580010326, | |
"values": [ | |
0.02950552200002221, | |
0.029034388000013678, | |
0.029081304999976965, | |
0.02924521900001764, | |
0.029310200999987046, | |
0.028996828000003916, | |
0.029641235000042343, | |
0.029780413999958455, | |
0.03309964800001808, | |
0.02656550300002891, | |
0.026221042999964084, | |
0.026312543000017286, | |
0.027135170999997626, | |
0.02639832199997727 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.971380995503196 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |