{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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": {}, "hub_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, "latency": true, "memory": 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.354496, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.1", "optimum_benchmark_commit": "d8da484bc148044dec1ba23c2d50d43cabd271ad", "transformers_version": "4.41.0", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 945.061888, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6519099269999629, "mean": 0.04656499478571163, "stdev": 0.002765383484319678, "p50": 0.04775103949999959, "p90": 0.04896224939998319, "p95": 0.04930760169998081, "p99": 0.04977713153998621, "values": [ 0.048886216999989074, 0.04899157199997717, 0.049894513999987566, 0.04795314099999359, 0.04754893800000559, 0.04744637799998941, 0.04819367799998986, 0.04859280100001229, 0.04889382999999725, 0.04569204200001309, 0.04248319500001685, 0.04283991899998796, 0.04259950200000162, 0.04189420000000155 ] }, "throughput": { "unit": "tokens/s", "value": 42.95071886518702 }, "energy": { "unit": "kWh", "cpu": 1.698895007515875e-06, "ram": 7.099820193668224e-08, "gpu": 0.0, "total": 1.7698932094525572e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1130011.6805457526 } }, "decode": { "memory": { "unit": "MB", "max_ram": 945.19296, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3999875909999844, "mean": 0.028570542214284598, "stdev": 0.0018862821001296897, "p50": 0.02978528549999737, "p90": 0.03031676139999604, "p95": 0.030422032949994106, "p99": 0.030529879389992517, "values": [ 0.030349443999995174, 0.02902939000000515, 0.029903025000010075, 0.02987463099998422, 0.029775187000012693, 0.03024050199999806, 0.03055684099999212, 0.02979538399998205, 0.03002091400000495, 0.026415576999994528, 0.026288911999984066, 0.025862888000006024, 0.026187493000009, 0.02568740300000627 ] }, "throughput": { "unit": "tokens/s", "value": 35.00108582118626 }, "energy": { "unit": "kWh", "cpu": 1.038653432075145e-06, "ram": 4.341018088819451e-08, "gpu": 0.0, "total": 1.0820636129633396e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 924160.08450871 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.9730459999999823, "mean": 0.07484969230769095, "stdev": 0.004581415225946937, "p50": 0.07766217399998254, "p90": 0.07892092519999779, "p95": 0.07930507919999172, "p99": 0.07971779423998442, "values": [ 0.07804298199999948, 0.07982097299998259, 0.07784869000002459, 0.07732594899999867, 0.07766217399998254, 0.07876002599999765, 0.07842195700001753, 0.07896114999999782, 0.07228907699999354, 0.06878141499998947, 0.0687213920000147, 0.06880570900000293, 0.0676045059999808 ] }, "throughput": { "unit": "tokens/s", "value": 13.360108360756055 }, "energy": null, "efficiency": null } } }