IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
37338e6
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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.7712, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "90b9d6a064a5ab3f3d10643e55c9c7af485f9e6c", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"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": 1105.26464, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.645852631999986, | |
"mean": 4.645852631999986, | |
"stdev": 0.0, | |
"p50": 4.645852631999986, | |
"p90": 4.645852631999986, | |
"p95": 4.645852631999986, | |
"p99": 4.645852631999986, | |
"values": [ | |
4.645852631999986 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.617358700555593e-05, | |
"ram": 2.767425757216743e-06, | |
"gpu": 0, | |
"total": 6.894101276277268e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.77472, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6249881040000389, | |
"mean": 0.041665873600002595, | |
"stdev": 0.0010758572912257383, | |
"p50": 0.041541249999994534, | |
"p90": 0.042055888799984585, | |
"p95": 0.04303735949998781, | |
"p99": 0.04476753829999552, | |
"values": [ | |
0.04194250599999805, | |
0.04197400499998594, | |
0.04181098199998701, | |
0.041541249999994534, | |
0.040924162000010256, | |
0.04147199100000876, | |
0.04092121700000462, | |
0.04520008299999745, | |
0.04185042500000691, | |
0.04196413600001847, | |
0.04124792400000388, | |
0.042110477999983686, | |
0.0404621039999995, | |
0.040881443000017725, | |
0.04068539800002213 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 48.00091363018668 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5827714124444458e-06, | |
"ram": 6.618293850284879e-08, | |
"gpu": 0.0, | |
"total": 1.6489543509472946e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1212889.852803406 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 959.905792, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3809219299999711, | |
"mean": 0.025394795333331405, | |
"stdev": 0.0005679228940908295, | |
"p50": 0.025256861000002573, | |
"p90": 0.02628667239999345, | |
"p95": 0.026475408099989294, | |
"p99": 0.02653491761999305, | |
"values": [ | |
0.0260513890000027, | |
0.02579371000001629, | |
0.0253640710000127, | |
0.026443527999987282, | |
0.025078379999996514, | |
0.02498344299999644, | |
0.026549794999993992, | |
0.025308357000000115, | |
0.025256861000002573, | |
0.025656945999998015, | |
0.02515256800000998, | |
0.0246250170000053, | |
0.025001635999984728, | |
0.02484186999998883, | |
0.02481435899997564 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.37814764301215 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.433701129027967e-07, | |
"ram": 3.945158877667318e-08, | |
"gpu": 0.0, | |
"total": 9.828217016794703e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1017478.5500678048 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3757448340000167, | |
"mean": 0.025049655600001112, | |
"stdev": 0.000540970085283527, | |
"p50": 0.024875050999980886, | |
"p90": 0.02592688500000122, | |
"p95": 0.026084945000002337, | |
"p99": 0.02609682820000671, | |
"values": [ | |
0.025699344000003066, | |
0.02545050200001242, | |
0.02502907800001708, | |
0.026099799000007806, | |
0.02476945499998351, | |
0.024621680999985074, | |
0.02607857899999999, | |
0.024962404000007155, | |
0.024875050999980886, | |
0.02529026400000589, | |
0.024813558000005287, | |
0.02429861000001665, | |
0.024703031000001374, | |
0.024543144999995548, | |
0.024510332999994944 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.92070853061771 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |