IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
040fda3
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.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": "07a8cb687fae1efd79b34b906447fdcec00042fd", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.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": 1111.2448, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.79890119099997, | |
"mean": 4.79890119099997, | |
"stdev": 0.0, | |
"p50": 4.79890119099997, | |
"p90": 4.79890119099997, | |
"p95": 4.79890119099997, | |
"p99": 4.79890119099997, | |
"values": [ | |
4.79890119099997 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.742274921666681e-05, | |
"ram": 2.8181002151896145e-06, | |
"gpu": 0, | |
"total": 7.024084943185643e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.591616, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6187114830000269, | |
"mean": 0.04124743220000179, | |
"stdev": 0.0005482450629493078, | |
"p50": 0.04132332699998642, | |
"p90": 0.04179255059999605, | |
"p95": 0.04200763439999946, | |
"p99": 0.042228015680013865, | |
"values": [ | |
0.041162745999997696, | |
0.0414664259999995, | |
0.04141705399996454, | |
0.041150353000034556, | |
0.04188957299999174, | |
0.04127310300003728, | |
0.041647017000002506, | |
0.04132332699998642, | |
0.041503105999993295, | |
0.04128356299997904, | |
0.04139470100000153, | |
0.04228311100001747, | |
0.0403429840000058, | |
0.040370146000043405, | |
0.04020427299997209 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 48.48786683986386 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5825095875555793e-06, | |
"ram": 6.613346669865645e-08, | |
"gpu": 0.0, | |
"total": 1.6486430542542358e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1213118.870600344 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.378048, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38191037500007496, | |
"mean": 0.025460691666671663, | |
"stdev": 0.0009960756068359171, | |
"p50": 0.025186003000044366, | |
"p90": 0.02661397360001274, | |
"p95": 0.027673153200026945, | |
"p99": 0.028255163440036313, | |
"values": [ | |
0.025069473999963066, | |
0.025492890999998963, | |
0.028400666000038655, | |
0.025032344000010198, | |
0.025256635999994614, | |
0.025483473000008416, | |
0.024983382000016263, | |
0.025275893000014094, | |
0.02498939400004474, | |
0.025186003000044366, | |
0.025192675999960557, | |
0.027361362000021927, | |
0.024752488999979505, | |
0.024656727999968098, | |
0.024776964000011503 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.27623071249912 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.470587051527825e-07, | |
"ram": 3.9582911569599944e-08, | |
"gpu": 0.0, | |
"total": 9.866416167223827e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1013539.2457111162 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.37687572999999475, | |
"mean": 0.025125048666666316, | |
"stdev": 0.0009884779470940065, | |
"p50": 0.024851173000001836, | |
"p90": 0.026259372800018353, | |
"p95": 0.027317405400020787, | |
"p99": 0.027906580280022127, | |
"values": [ | |
0.024730486999999357, | |
0.025145768000015778, | |
0.02805387400002246, | |
0.02464458599996533, | |
0.02492319899999984, | |
0.025136551000002783, | |
0.024650185999973928, | |
0.024965510000015456, | |
0.02464882399999624, | |
0.024851173000001836, | |
0.02487254399994754, | |
0.027001776000020072, | |
0.02439773100002185, | |
0.024364828999978272, | |
0.024488692000034007 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.8009179312242 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |