IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
56c4fc7
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": 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": "6dfec54249df6146b470c4c2e4a34c46355d4cd9", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.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": 1120.800768, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.758584584999994, | |
"mean": 4.758584584999994, | |
"stdev": 0.0, | |
"p50": 4.758584584999994, | |
"p90": 4.758584584999994, | |
"p95": 4.758584584999994, | |
"p99": 4.758584584999994, | |
"values": [ | |
4.758584584999994 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.756841073888878e-05, | |
"ram": 2.824199662711287e-06, | |
"gpu": 0, | |
"total": 7.039261040160007e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.405632, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.6373065170000984, | |
"mean": 0.03983165731250615, | |
"stdev": 0.0020486161385208893, | |
"p50": 0.039444269500009455, | |
"p90": 0.04006763650001233, | |
"p95": 0.04199377650000713, | |
"p99": 0.04643474490000869, | |
"values": [ | |
0.039399341000006416, | |
0.0393914759999916, | |
0.03927578900001549, | |
0.038946312999996735, | |
0.03964549100001591, | |
0.03999190000001818, | |
0.03958799400001567, | |
0.03956940000000486, | |
0.04014337300000648, | |
0.03948919800001249, | |
0.0397273250000012, | |
0.04754498700000909, | |
0.03898251999999047, | |
0.0385408239999947, | |
0.038440185000013116, | |
0.03863040100000603 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 50.21131770412299 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.515995019658103e-06, | |
"ram": 6.335674967741167e-08, | |
"gpu": 0.0, | |
"total": 1.5793517693355148e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1266342.330335607 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.798848, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.4150322769999093, | |
"mean": 0.02593951731249433, | |
"stdev": 0.0049262152988844695, | |
"p50": 0.024633463000000688, | |
"p90": 0.026409326499987174, | |
"p95": 0.03192531874999105, | |
"p99": 0.04216657655000659, | |
"values": [ | |
0.02495928799999092, | |
0.024756609000007757, | |
0.024326212999994823, | |
0.024089659999987134, | |
0.024817452999997158, | |
0.02451031699999362, | |
0.024447579999986147, | |
0.024845954999989317, | |
0.025160524999989775, | |
0.024786245000001372, | |
0.04472689100001048, | |
0.027658127999984572, | |
0.024053452999993397, | |
0.023765604000004714, | |
0.024048663999991504, | |
0.024079691999986608 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.55121851162313 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.268916775641518e-07, | |
"ram": 3.8736577417162865e-08, | |
"gpu": 0.0, | |
"total": 9.656282549813147e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1035595.2146608949 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 16, | |
"total": 0.4095880379999528, | |
"mean": 0.02559925237499705, | |
"stdev": 0.004867283338378145, | |
"p50": 0.024301761999993232, | |
"p90": 0.0260320454999885, | |
"p95": 0.03149872824999278, | |
"p99": 0.04163514325000932, | |
"values": [ | |
0.02461727700000438, | |
0.024424366999994618, | |
0.023994872999992367, | |
0.023756435999985115, | |
0.02449077099998931, | |
0.024179156999991847, | |
0.024128163000000313, | |
0.024547396999992088, | |
0.02478886899999111, | |
0.024425339000003987, | |
0.044169247000013456, | |
0.027275221999985888, | |
0.023757539999991195, | |
0.023478246000024683, | |
0.023760315000004084, | |
0.023794818999988365 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.06364081853837 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |