{ "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.7712, "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": "f54839c0f9c801552aeae3c1c611287092f83ba2", "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.62688, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 1.7317675379999855, "mean": 1.7317675379999855, "stdev": 0.0, "p50": 1.7317675379999855, "p90": 1.7317675379999855, "p95": 1.7317675379999855, "p99": 1.7317675379999855, "values": [ 1.7317675379999855 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.731383524444538e-05, "ram": 2.81513502940977e-06, "gpu": 0, "total": 7.012897027385515e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.088384, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6167551280000794, "mean": 0.044053937714291384, "stdev": 0.0008953289963424618, "p50": 0.04388817400001699, "p90": 0.04543834450000759, "p95": 0.04587163499999747, "p99": 0.045882731799991916, "values": [ 0.04347733800000242, 0.0435664540000289, 0.04362671600000567, 0.04444476100002248, 0.04413219799999979, 0.04369555499999933, 0.04413413300000002, 0.04397634800000105, 0.043800000000032924, 0.04379219500003728, 0.04588550599999053, 0.045864166000001205, 0.042210937999982434, 0.04414881999997533 ] }, "throughput": { "unit": "tokens/s", "value": 45.39889289740351 }, "energy": { "unit": "kWh", "cpu": 1.7535880630434543e-06, "ram": 7.332600993361387e-08, "gpu": 0.0, "total": 1.826914072977068e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1094742.2375157897 } }, "decode": { "memory": { "unit": "MB", "max_ram": 963.874816, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3872841689998836, "mean": 0.027663154928563114, "stdev": 0.0005244259988089204, "p50": 0.027645277499999565, "p90": 0.02836397299998339, "p95": 0.028556880499988325, "p99": 0.028637704099991765, "values": [ 0.027335746000005656, 0.027846988999954192, 0.027727274999961082, 0.028040789999977278, 0.02756328000003805, 0.0270349749999923, 0.027988241000002745, 0.028657909999992626, 0.02750364799999261, 0.02800101499997254, 0.028502479999986008, 0.02700319500002024, 0.026990130999990924, 0.027088493999997354 ] }, "throughput": { "unit": "tokens/s", "value": 36.14916673757509 }, "energy": { "unit": "kWh", "cpu": 1.0433915341787898e-06, "ram": 4.3630584686326976e-08, "gpu": 0.0, "total": 1.0870221188651168e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 919944.4819430441 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3821129599999722, "mean": 0.02729378285714087, "stdev": 0.0004913372624730068, "p50": 0.027285547000019506, "p90": 0.027887130199997046, "p95": 0.028070499800008974, "p99": 0.028212359959997, "values": [ 0.02696601700000656, 0.0274906849999752, 0.02735383899999988, 0.02768206099995041, 0.02721725500003913, 0.026664724999989176, 0.027627869000014016, 0.02824782499999401, 0.02713719499996614, 0.0276392199999691, 0.027975017000017033, 0.026694210000016483, 0.02666761000000406, 0.026749432000030993 ] }, "throughput": { "unit": "tokens/s", "value": 36.63838044122089 }, "energy": null, "efficiency": null } } }