{ "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": "3f7b9d2c002cca7024cac52f3c7535f2a03b7b03", "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.044032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.936803760999965, "mean": 4.936803760999965, "stdev": 0.0, "p50": 4.936803760999965, "p90": 4.936803760999965, "p95": 4.936803760999965, "p99": 4.936803760999965, "values": [ 4.936803760999965 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.771559450361464e-05, "ram": 2.8302408442471006e-06, "gpu": 0, "total": 7.054583534786175e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 957.27616, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6552342240001394, "mean": 0.04680244457143853, "stdev": 0.0024023932275525823, "p50": 0.04711709800000108, "p90": 0.04977291200000877, "p95": 0.05024814835001621, "p99": 0.05052083687001982, "values": [ 0.050589009000020724, 0.04848956900002577, 0.04707821499999909, 0.0490922879999971, 0.05006460800001378, 0.04715598100000307, 0.04727819000004274, 0.048784079000029124, 0.045359033000011095, 0.04376980000000685, 0.04382255900003429, 0.043357057999969584, 0.043437529000016184, 0.04695630599997003 ] }, "throughput": { "unit": "tokens/s", "value": 42.7328106109336 }, "energy": { "unit": "kWh", "cpu": 1.75898858314551e-06, "ram": 7.351141046797237e-08, "gpu": 0.0, "total": 1.8324999936134826e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1091405.1879783238 } }, "decode": { "memory": { "unit": "MB", "max_ram": 958.193664, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.40391200299995944, "mean": 0.02885085735713996, "stdev": 0.0015551682606210855, "p50": 0.028984333500005732, "p90": 0.030256682200001706, "p95": 0.030879474849996313, "p99": 0.031796157369979025, "values": [ 0.029773771999998644, 0.030262477000007948, 0.03024316099998714, 0.029031742000029226, 0.029638267999985146, 0.032025327999974706, 0.02893692499998224, 0.030006608999997297, 0.02832313599998315, 0.026986844000020938, 0.026156197999966935, 0.02803332199999886, 0.027544567000006737, 0.026949654000020473 ] }, "throughput": { "unit": "tokens/s", "value": 34.66101501321664 }, "energy": { "unit": "kWh", "cpu": 9.97930571268914e-07, "ram": 4.1706411858285725e-08, "gpu": 0.0, "total": 1.0396369831271993e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 961874.2082375981 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3979374259998849, "mean": 0.028424101857134638, "stdev": 0.0014790520041296558, "p50": 0.02850717500001565, "p90": 0.029767586399992753, "p95": 0.030379720099998054, "p99": 0.031250692020017255, "values": [ 0.029254329999957918, 0.02979348899998513, 0.029707147000010536, 0.02856500800004369, 0.029172084999970593, 0.031468435000022055, 0.02844934199998761, 0.02954054599996425, 0.027995111999985056, 0.02666716499999211, 0.025835977999975057, 0.0277031539999939, 0.027159806999975444, 0.026625828000021556 ] }, "throughput": { "unit": "tokens/s", "value": 35.18141065727266 }, "energy": null, "efficiency": null } } }