IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d7889f4
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.338112, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1024-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "d662120356cf9cce87fb802aea1c49ce74710c29", | |
"transformers_version": "4.43.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"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.71232, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.802552517999999, | |
"mean": 4.802552517999999, | |
"stdev": 0.0, | |
"p50": 4.802552517999999, | |
"p90": 4.802552517999999, | |
"p95": 4.802552517999999, | |
"p99": 4.802552517999999, | |
"values": [ | |
4.802552517999999 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.661424901750354e-05, | |
"ram": 2.784301280707477e-06, | |
"gpu": 0, | |
"total": 6.939855029821101e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.329472, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6463097540000149, | |
"mean": 0.04308731693333433, | |
"stdev": 0.0020981369094637105, | |
"p50": 0.04229040399999917, | |
"p90": 0.04685327419999794, | |
"p95": 0.046998099600000384, | |
"p99": 0.04705830071999571, | |
"values": [ | |
0.04205696700000772, | |
0.043370135999992954, | |
0.04164947399999619, | |
0.04164678800000843, | |
0.04224678299999596, | |
0.042601475999987315, | |
0.04375005700001111, | |
0.0433668900000157, | |
0.04229040399999917, | |
0.047073350999994545, | |
0.046684411999990516, | |
0.04696584900000289, | |
0.040983206000021255, | |
0.040785585999998375, | |
0.040838374999992766 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.41737156886435 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6332137915823195e-06, | |
"ram": 6.825419884024816e-08, | |
"gpu": 0.0, | |
"total": 1.7014679904225677e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1175455.5544140977 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.984832, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39663129299998445, | |
"mean": 0.026442086199998962, | |
"stdev": 0.0011951101764280526, | |
"p50": 0.026070540000006304, | |
"p90": 0.028113521000005904, | |
"p95": 0.028620156600010202, | |
"p99": 0.02931734092000738, | |
"values": [ | |
0.026591324999998278, | |
0.026070540000006304, | |
0.02602600599999505, | |
0.0257032929999923, | |
0.026581246999995756, | |
0.026202226999998857, | |
0.026668830999994952, | |
0.025900310999986687, | |
0.02575274500000546, | |
0.028246665000011717, | |
0.029491637000006676, | |
0.027913804999997183, | |
0.025188488999987158, | |
0.025158642999997483, | |
0.025135529000010592 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.81849860243022 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.738669682432104e-07, | |
"ram": 4.069900875175769e-08, | |
"gpu": 0.0, | |
"total": 1.014565976994968e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 985643.1446300705 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3912878260000241, | |
"mean": 0.026085855066668273, | |
"stdev": 0.0011476163635147862, | |
"p50": 0.025698793999993086, | |
"p90": 0.02769389320000073, | |
"p95": 0.028136984799996864, | |
"p99": 0.0288202609599972, | |
"values": [ | |
0.026251107999996748, | |
0.025698793999993086, | |
0.02566400800000679, | |
0.025365440000001627, | |
0.02619131700001276, | |
0.025877599000011742, | |
0.026340615999998818, | |
0.025588798000001134, | |
0.025402358999997432, | |
0.02777094399999669, | |
0.028991079999997282, | |
0.02757831700000679, | |
0.0248815939999929, | |
0.024856236000005083, | |
0.024829616000005217 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.33495192870906 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |