{ "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": "a074a05b924b05dffbc3b2f3392d72d3b68c22b7", "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.725888, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.886941481000008, "mean": 4.886941481000008, "stdev": 0.0, "p50": 4.886941481000008, "p90": 4.886941481000008, "p95": 4.886941481000008, "p99": 4.886941481000008, "values": [ 4.886941481000008 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.755317204999851e-05, "ram": 2.8235476365189747e-06, "gpu": 0, "total": 7.037671968651749e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 976.457728, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6280945659999588, "mean": 0.04486389757142563, "stdev": 0.002332736467434012, "p50": 0.04629916199999684, "p90": 0.04686159890001136, "p95": 0.046977388450011405, "p99": 0.04709305048997294, "values": [ 0.04334069699996235, 0.04676969500002315, 0.046371297000007417, 0.046773071999950844, 0.046899539000037294, 0.04712196599996332, 0.04637030499998218, 0.046727065000027324, 0.0462280190000115, 0.045682905999967716, 0.04124715800003287, 0.041271543999982896, 0.0414233500000023, 0.041867953000007674 ] }, "throughput": { "unit": "tokens/s", "value": 44.57927438907637 }, "energy": { "unit": "kWh", "cpu": 1.628489344675925e-06, "ram": 6.805610619806887e-08, "gpu": 0.0, "total": 1.6965454508739939e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1178866.1476588666 } }, "decode": { "memory": { "unit": "MB", "max_ram": 977.24416, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3907546469999943, "mean": 0.027911046214285307, "stdev": 0.0017654796369530356, "p50": 0.02889477549999242, "p90": 0.029489239900021856, "p95": 0.029551854600018145, "p99": 0.029600410119986122, "values": [ 0.02936267900003031, 0.029612548999978117, 0.02887819000000036, 0.0295191730000397, 0.029334004999952867, 0.02922322800003485, 0.029419395999980225, 0.02891136099998448, 0.028606799999977284, 0.02597441800003253, 0.025248946999965938, 0.02556058100003611, 0.025787476999994396, 0.025315842999987126 ] }, "throughput": { "unit": "tokens/s", "value": 35.82810878254304 }, "energy": { "unit": "kWh", "cpu": 9.711495827314961e-07, "ram": 4.058670627872069e-08, "gpu": 0.0, "total": 1.011736289010216e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 988399.8536597934 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.38438483000004453, "mean": 0.027456059285717465, "stdev": 0.0016889575274665418, "p50": 0.02838800399999286, "p90": 0.02897082880002131, "p95": 0.029038257400009114, "p99": 0.029094741879982847, "values": [ 0.0288274240000419, 0.02910886299997628, 0.02836966500001381, 0.029000239000026795, 0.02880805799998143, 0.028718871000023682, 0.028902205000008507, 0.028406342999971912, 0.02811318400000573, 0.02562545300003194, 0.02491061199998512, 0.02520466400000032, 0.025447960000008152, 0.024941288999968947 ] }, "throughput": { "unit": "tokens/s", "value": 36.42183277627886 }, "energy": null, "efficiency": null } } }