IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
09cdf42
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.5.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": 2, | |
"sequence_length": 16, | |
"num_choices": 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.338112, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "17045002796df75ed197bda920a26aaf713b8c33", | |
"transformers_version": "4.46.3", | |
"transformers_commit": null, | |
"accelerate_version": "1.1.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.12", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1131.15136, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.8713639290000117 | |
], | |
"count": 1, | |
"total": 1.8713639290000117, | |
"mean": 1.8713639290000117, | |
"p50": 1.8713639290000117, | |
"p90": 1.8713639290000117, | |
"p95": 1.8713639290000117, | |
"p99": 1.8713639290000117, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.0001997939058500001, | |
"ram": 8.35150013652655e-06, | |
"gpu": 0, | |
"total": 0.00020814540598652664 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1014.767616, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.10858172400000399, | |
0.11019876399998907, | |
0.1098852180000165, | |
0.10855007000000683, | |
0.10888839399999029, | |
0.10217686800001502, | |
0.10393785200000139 | |
], | |
"count": 7, | |
"total": 0.7522188900000231, | |
"mean": 0.10745984142857472, | |
"p50": 0.10858172400000399, | |
"p90": 0.11001063640000552, | |
"p95": 0.1101047001999973, | |
"p99": 0.11017995123999072, | |
"stdev": 0.002883112094314888, | |
"stdev_": 2.6829670098026384 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 18.611603864401186 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.41424373703709e-06, | |
"ram": 1.8446767852568107e-07, | |
"gpu": 0.0, | |
"total": 4.5987114155627705e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 434904.43719335855 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1022.902272, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.0456843739999897, | |
0.04581914700000311, | |
0.044746188999994274, | |
0.04440220499998304, | |
0.046791725000019824, | |
0.04405995499999449, | |
0.04480164299999956 | |
], | |
"count": 7, | |
"total": 0.316305237999984, | |
"mean": 0.045186462571426285, | |
"p50": 0.04480164299999956, | |
"p90": 0.046208178200009796, | |
"p95": 0.04649995160001481, | |
"p99": 0.04673337032001882, | |
"stdev": 0.0008824542892755282, | |
"stdev_": 1.9529173983925645 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.26104382122407 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.3268953907407756e-06, | |
"ram": 5.5460787631562606e-08, | |
"gpu": 0.0, | |
"total": 1.382356178372346e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1446805.1225082222 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04461451299999908, | |
0.04478972100000078, | |
0.04367981400000076, | |
0.0434286739999834, | |
0.04597874400002411, | |
0.04299348000000691, | |
0.04384908100001894 | |
], | |
"count": 7, | |
"total": 0.309334027000034, | |
"mean": 0.04419057528571914, | |
"p50": 0.04384908100001894, | |
"p90": 0.04526533020001011, | |
"p95": 0.04562203710001711, | |
"p99": 0.04590740262002271, | |
"stdev": 0.0009355878407095441, | |
"stdev_": 2.1171660125725804 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |