IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c37aeed
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "0fe64c9dadf839c1f16495afd4c4cbc98fcfce05", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1104.990208, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.811734929000011, | |
"mean": 4.811734929000011, | |
"stdev": 0.0, | |
"p50": 4.811734929000011, | |
"p90": 4.811734929000011, | |
"p95": 4.811734929000011, | |
"p99": 4.811734929000011, | |
"values": [ | |
4.811734929000011 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.812843216790093e-05, | |
"ram": 2.84760571410402e-06, | |
"gpu": 0, | |
"total": 7.097603788200495e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.8736, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6393599250000648, | |
"mean": 0.04262399500000432, | |
"stdev": 0.0012298620796097255, | |
"p50": 0.04239876999997705, | |
"p90": 0.04452597939998668, | |
"p95": 0.04529399550000903, | |
"p99": 0.045427328700033055, | |
"values": [ | |
0.04217897000000903, | |
0.042275109000001976, | |
0.04239876999997705, | |
0.041976913999974386, | |
0.04522256699999616, | |
0.04241660399998182, | |
0.042488386000002265, | |
0.04314526300004218, | |
0.04348109799997246, | |
0.04269515400000046, | |
0.04158361899999363, | |
0.045460662000039065, | |
0.041178494000007504, | |
0.04143104500002437, | |
0.04142727000004243 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.9219274260847 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.624093784226312e-06, | |
"ram": 6.787266409062908e-08, | |
"gpu": 0.0, | |
"total": 1.6919664483169412e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1182056.536634914 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.8736, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3903646769998659, | |
"mean": 0.026024311799991057, | |
"stdev": 0.0008471399373053249, | |
"p50": 0.026045625000051587, | |
"p90": 0.026397876200030625, | |
"p95": 0.027122197900018817, | |
"p99": 0.02836909557998524, | |
"values": [ | |
0.02573327199996811, | |
0.026045625000051587, | |
0.02628119399997786, | |
0.028680819999976848, | |
0.02625342199996794, | |
0.026116267000020343, | |
0.02631336500002135, | |
0.026143226999977287, | |
0.02603591700000152, | |
0.026454217000036806, | |
0.02547345799996492, | |
0.025480720999951245, | |
0.025363522000020566, | |
0.024825037999960387, | |
0.02516461199996911 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.425607857970085 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.786242688143692e-07, | |
"ram": 4.089943575237955e-08, | |
"gpu": 0.0, | |
"total": 1.0195237045667484e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 980850.1710364398 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3851863999998386, | |
"mean": 0.025679093333322574, | |
"stdev": 0.0007970970318750041, | |
"p50": 0.02572179200001301, | |
"p90": 0.026055984200013427, | |
"p95": 0.026726106900036937, | |
"p99": 0.02785577978002493, | |
"values": [ | |
0.025404779999973925, | |
0.02572179200001301, | |
0.025954585000022234, | |
0.02813819800002193, | |
0.025921903999972074, | |
0.025753329999986363, | |
0.02595857299996851, | |
0.02579107999997632, | |
0.025696924999977, | |
0.02612092500004337, | |
0.02511090199999444, | |
0.025173798999958308, | |
0.025064182999983586, | |
0.024517874999958167, | |
0.024857548999989376 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.94218487466402 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |