{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "3ac13a44411184d8baf45b9f8b15966e5656c113", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.1", "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": 1122.148352, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.894135535999993, "mean": 4.894135535999993, "stdev": 0.0, "p50": 4.894135535999993, "p90": 4.894135535999993, "p95": 4.894135535999993, "p99": 4.894135535999993, "values": [ 4.894135535999993 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.832572599999955e-05, "ram": 2.8558321522464967e-06, "gpu": 0, "total": 7.118155815224604e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 975.70816, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.6375469630000623, "mean": 0.04904207407692787, "stdev": 0.002208376671507145, "p50": 0.04897309000000405, "p90": 0.05080112520000739, "p95": 0.05172624120000364, "p99": 0.052777193040001294, "values": [ 0.04883092299999703, 0.05060383400001456, 0.04897309000000405, 0.04781321099997626, 0.04883021200001281, 0.04985987700001715, 0.0508504480000056, 0.053039931000000706, 0.04863065800000754, 0.0467965419999814, 0.05045270100001176, 0.04948369000001662, 0.04338184600001682 ] }, "throughput": { "unit": "tokens/s", "value": 40.781309470369884 }, "energy": { "unit": "kWh", "cpu": 1.675082660416682e-06, "ram": 7.000415190262039e-08, "gpu": 0.0, "total": 1.7450868123193022e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1146074.788876495 } }, "decode": { "memory": { "unit": "MB", "max_ram": 976.494592, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.39395273599996017, "mean": 0.03030405661538155, "stdev": 0.0014487202565201843, "p50": 0.030373666000002686, "p90": 0.03188089020000007, "p95": 0.03200102519999746, "p99": 0.03202772903999176, "values": [ 0.03141779800000677, 0.0314893629999915, 0.030635166999985586, 0.030373666000002686, 0.03203440499999033, 0.03032411199998819, 0.03197877200000221, 0.030723563000009335, 0.029759933000008232, 0.029823592000013832, 0.030176474999990432, 0.028924764999999297, 0.02629112499997177 ] }, "throughput": { "unit": "tokens/s", "value": 32.998882383701265 }, "energy": { "unit": "kWh", "cpu": 1.0014990173611202e-06, "ram": 4.185473137664746e-08, "gpu": 0.0, "total": 1.0433537487377682e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 958447.6992676579 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.3877791769999135, "mean": 0.029829167461531806, "stdev": 0.001396737750490972, "p50": 0.02984643600001391, "p90": 0.03138455739998562, "p95": 0.03150376099998766, "p99": 0.031521856999991084, "values": [ 0.030886299000002282, 0.030968062999988888, 0.030168631000009327, 0.02984643600001391, 0.03152638099999194, 0.029833570999983294, 0.03148868099998481, 0.03024940299999912, 0.0292928449999863, 0.029295770000004495, 0.029663860999988856, 0.028587330999982896, 0.02597190499997737 ] }, "throughput": { "unit": "tokens/s", "value": 33.52423433505534 }, "energy": null, "efficiency": null } } }