{ "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.763008, "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.5.0", "optimum_benchmark_commit": "da7a7adc61c6bf2e65157851160ed1216b6a5c9b", "transformers_version": "4.45.0", "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": 1109.44256, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.9045782789999635, "mean": 4.9045782789999635, "stdev": 0.0, "p50": 4.9045782789999635, "p90": 4.9045782789999635, "p95": 4.9045782789999635, "p99": 4.9045782789999635, "values": [ 4.9045782789999635 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.703045471111044e-05, "ram": 2.8032750428208035e-06, "gpu": 0, "total": 6.983372975393124e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.821568, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6533408679998729, "mean": 0.04666720485713378, "stdev": 0.0015023983518580556, "p50": 0.04710267400000134, "p90": 0.047820239400004995, "p95": 0.047897802099996056, "p99": 0.047986330019986666, "values": [ 0.04594734199997674, 0.04690933000000541, 0.04800846199998432, 0.04599828699997488, 0.047733169999958136, 0.04763161199997512, 0.04615570900000421, 0.04663590199999135, 0.0477782940000111, 0.047616704000006393, 0.047838216000002376, 0.047296017999997275, 0.045791393999991215, 0.04200042799999437 ] }, "throughput": { "unit": "tokens/s", "value": 42.85664860629145 }, "energy": { "unit": "kWh", "cpu": 1.621846059490769e-06, "ram": 6.781794450849603e-08, "gpu": 0.0, "total": 1.689664003999265e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1183667.2825284796 } }, "decode": { "memory": { "unit": "MB", "max_ram": 963.95264, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.40584190900011663, "mean": 0.028988707785722618, "stdev": 0.001554949526314386, "p50": 0.029322011000004977, "p90": 0.030106717599988998, "p95": 0.030433541499985495, "p99": 0.03079731790001233, "values": [ 0.029877023000040026, 0.029252251000002616, 0.02922538100000338, 0.03088826200001904, 0.029915444000039315, 0.029004621000012776, 0.02939177100000734, 0.02944511999999122, 0.029239858999972057, 0.030188691999967432, 0.028982921000022088, 0.02968013700001393, 0.025347116000034475, 0.025403310999990936 ] }, "throughput": { "unit": "tokens/s", "value": 34.49619097863049 }, "energy": { "unit": "kWh", "cpu": 9.833084764351698e-07, "ram": 4.111468785605305e-08, "gpu": 0.0, "total": 1.0244231642912233e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 976159.1057850383 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.39874235600001384, "mean": 0.028481596857143847, "stdev": 0.0015028055095494223, "p50": 0.02883113900000467, "p90": 0.02955454660000214, "p95": 0.029878894099994113, "p99": 0.030241514020013936, "values": [ 0.0293509950000157, 0.02870461399999158, 0.02875435600003584, 0.030332169000018894, 0.029367235000052005, 0.028507456999989245, 0.028907921999973496, 0.028931254999974954, 0.02871173699998053, 0.02963482299998077, 0.028421578000006775, 0.02913131700000804, 0.024967150000009042, 0.02501974799997697 ] }, "throughput": { "unit": "tokens/s", "value": 35.110390931229574 }, "energy": null, "efficiency": null } } }