IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c5d0317
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.783488, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1015-azure-x86_64-with-glibc2.39", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "08c9f59440cf4e5a5d6711ec19e8329ab2de652d", | |
"transformers_version": "4.45.2", | |
"transformers_commit": null, | |
"accelerate_version": "1.0.1", | |
"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 | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1110.257664, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7425936460000173 | |
], | |
"count": 1, | |
"total": 1.7425936460000173, | |
"mean": 1.7425936460000173, | |
"p50": 1.7425936460000173, | |
"p90": 1.7425936460000173, | |
"p95": 1.7425936460000173, | |
"p99": 1.7425936460000173, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.029888, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04430770499999426, | |
0.044662174000023924, | |
0.04438492799999949, | |
0.04513291000000663, | |
0.04388426599999207, | |
0.04501013199998738, | |
0.043271607000008316, | |
0.04593856899998627, | |
0.04445945699998788, | |
0.04549320000000989, | |
0.04522682600000394, | |
0.04396325400000478, | |
0.05160017400001493, | |
0.04461852299999691 | |
], | |
"count": 14, | |
"total": 0.6319537250000167, | |
"mean": 0.04513955178571548, | |
"p50": 0.04464034850001042, | |
"p90": 0.045804958299993356, | |
"p95": 0.0479201307499963, | |
"p99": 0.0508641653500112, | |
"stdev": 0.0019123563914344559, | |
"stdev_": 4.236542712060393 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.307041627136954 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6903743775462637e-06, | |
"ram": 7.068260530580505e-08, | |
"gpu": 0.0, | |
"total": 1.7610569828520685e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1135681.5931991923 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 965.029888, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.026748040999990508, | |
0.027266394999998056, | |
0.02669170599997983, | |
0.02635608200000661, | |
0.02731354400000896, | |
0.026307622000018682, | |
0.026464943999997104, | |
0.027463052000001653, | |
0.026757067999994888, | |
0.02786880700000438, | |
0.027078445000000784, | |
0.027976015999996662, | |
0.030265255999978535, | |
0.02609252099998116 | |
], | |
"count": 14, | |
"total": 0.3806494989999578, | |
"mean": 0.027189249928568415, | |
"p50": 0.026917756499997836, | |
"p90": 0.027943853299998978, | |
"p95": 0.028777249999990318, | |
"p99": 0.02996765479998089, | |
"stdev": 0.0010169676291400635, | |
"stdev_": 3.740329842904237 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.77924189255678 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.907546506018636e-07, | |
"ram": 4.143080206427035e-08, | |
"gpu": 0.0, | |
"total": 1.0321854526661349e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 968818.149313188 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.02635161300000277, | |
0.0268744560000016, | |
0.0263060289999828, | |
0.025976455999995096, | |
0.026922485999989476, | |
0.025946228999998766, | |
0.02607662100001562, | |
0.027069519000008313, | |
0.026305487999991328, | |
0.027467559999990954, | |
0.02668399099999874, | |
0.02753880299999878, | |
0.029855863999983967, | |
0.025728733999983433 | |
], | |
"count": 14, | |
"total": 0.37510384899994165, | |
"mean": 0.026793132071424402, | |
"p50": 0.026517802000000756, | |
"p90": 0.02751743009999643, | |
"p95": 0.028349774349993594, | |
"p99": 0.029554646069985892, | |
"stdev": 0.0010072378701798744, | |
"stdev_": 3.7593136461045584 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.3229974507731 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |