IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f5c0a4a
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 | |
}, | |
"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.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "b57934517e8262852ccb8572a0e7818777034455", | |
"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.11", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1130.00448, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7262207210000042 | |
], | |
"count": 1, | |
"total": 1.7262207210000042, | |
"mean": 1.7262207210000042, | |
"p50": 1.7262207210000042, | |
"p90": 1.7262207210000042, | |
"p95": 1.7262207210000042, | |
"p99": 1.7262207210000042, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1011.3024, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.11520753700000341, | |
0.11446394199998622, | |
0.11637828900001068, | |
0.11773991599997657, | |
0.11947023999999828, | |
0.11058528699999215, | |
0.10669269100000633 | |
], | |
"count": 7, | |
"total": 0.8005379019999737, | |
"mean": 0.11436255742856767, | |
"p50": 0.11520753700000341, | |
"p90": 0.11843204559998526, | |
"p95": 0.11895114279999178, | |
"p99": 0.11936642055999698, | |
"stdev": 0.004059856404366084, | |
"stdev_": 3.5499874221525016 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 279.81186080057375 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.1762873288888306e-06, | |
"ram": 1.7453576500521538e-07, | |
"gpu": 0.0, | |
"total": 4.350823093894046e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 7354930.161354724 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1019.920384, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04796896499999548, | |
0.04904467900001919, | |
0.04990590399998496, | |
0.050127848000016684, | |
0.05030888499999264, | |
0.043624569999991536, | |
0.04429540999998949 | |
], | |
"count": 7, | |
"total": 0.33527626099999, | |
"mean": 0.047896608714284285, | |
"p50": 0.04904467900001919, | |
"p90": 0.05020026280000707, | |
"p95": 0.050254573899999856, | |
"p99": 0.05029802277999409, | |
"stdev": 0.002601566037800237, | |
"stdev_": 5.431628893225518 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.756609782761856 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6113481711111727e-06, | |
"ram": 6.734206696898332e-08, | |
"gpu": 0.0, | |
"total": 1.6786902380801565e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1191405.0338955394 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04688879299999371, | |
0.04799298000000363, | |
0.0489145370000017, | |
0.049038538000019116, | |
0.049171354999998584, | |
0.04277338399998598, | |
0.043428594000005205 | |
], | |
"count": 7, | |
"total": 0.3282081810000079, | |
"mean": 0.046886883000001135, | |
"p50": 0.04799298000000363, | |
"p90": 0.049091664800010905, | |
"p95": 0.04913150990000474, | |
"p99": 0.049163385979999814, | |
"stdev": 0.002508952637306367, | |
"stdev_": 5.351075773807157 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.65585323724658 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |