IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
09b36b1
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": "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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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-1022-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "79990507b694d513bac81e140baff3af23a6bff7", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"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 | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 947.32288, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6432766640000125, | |
"mean": 0.04594833314285803, | |
"stdev": 0.0025543194897277048, | |
"p50": 0.0471631215000059, | |
"p90": 0.04822896299999115, | |
"p95": 0.04837740644999826, | |
"p99": 0.048554605290004244, | |
"values": [ | |
0.04812873800000261, | |
0.046405382000017426, | |
0.047589883000000555, | |
0.04689164000001256, | |
0.04859890500000574, | |
0.0479813229999877, | |
0.04743460299999924, | |
0.04816088799998397, | |
0.04825813799999423, | |
0.04535826000000043, | |
0.04198748299998556, | |
0.04200650900000369, | |
0.04203471300002093, | |
0.04244019899999785 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.5271502402883 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.623202529218462e-06, | |
"ram": 6.783411489607261e-08, | |
"gpu": 0.0, | |
"total": 1.6910366441145347e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1182706.481826268 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 947.32288, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.38834768399999575, | |
"mean": 0.027739120285713983, | |
"stdev": 0.0019308158036691163, | |
"p50": 0.028837470999988568, | |
"p90": 0.029405635899993853, | |
"p95": 0.029589054699987117, | |
"p99": 0.029776182939992565, | |
"values": [ | |
0.029463102999983448, | |
0.029128659999997808, | |
0.028700009999994336, | |
0.029104794999994965, | |
0.0289749319999828, | |
0.029271546000018134, | |
0.02982296499999393, | |
0.02866909200000123, | |
0.02923915600001692, | |
0.02519169600000737, | |
0.024913157000014508, | |
0.025323697000004586, | |
0.024685196999996606, | |
0.025859677999989117 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.05016992968639 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.760571298775853e-07, | |
"ram": 4.0795273793833084e-08, | |
"gpu": 0.0, | |
"total": 1.0168524036714184e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 983426.8930175396 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.38188270699993154, | |
"mean": 0.027277336214280825, | |
"stdev": 0.001838049873954431, | |
"p50": 0.02831593300000179, | |
"p90": 0.02888095639999051, | |
"p95": 0.02904008409998795, | |
"p99": 0.029192208019986482, | |
"values": [ | |
0.02893769299998894, | |
0.028611685999976544, | |
0.028168909000015674, | |
0.028534170999989783, | |
0.02846295699998791, | |
0.028748570999994172, | |
0.029230238999986113, | |
0.028168708999999126, | |
0.028733823999999686, | |
0.024860419000020784, | |
0.024537917000003517, | |
0.024990605999988702, | |
0.024372202999984438, | |
0.025524802999996155 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.66047124779209 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |