{ "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": "748f9b438ee8e37818f442e8e398fa1beb7f763c", "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": 1110.351872, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.85981049099999, "mean": 4.85981049099999, "stdev": 0.0, "p50": 4.85981049099999, "p90": 4.85981049099999, "p95": 4.85981049099999, "p99": 4.85981049099999, "values": [ 4.85981049099999 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.798406082222279e-05, "ram": 2.841549132243888e-06, "gpu": 0, "total": 7.082560995446668e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.56352, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6302801280000097, "mean": 0.042018675200000646, "stdev": 0.0009838084281744758, "p50": 0.042025209999991375, "p90": 0.04328708560000223, "p95": 0.04334019419999606, "p99": 0.04334119883998767, "values": [ 0.040671220000007224, 0.04320823000000473, 0.04334144999998557, 0.042025209999991375, 0.04133756699999935, 0.04333965600000056, 0.0423583820000033, 0.04104511799999955, 0.04287748200002284, 0.042465303000000176, 0.042732692000015504, 0.04164718399999856, 0.04196144099998378, 0.03998415600000271, 0.04128503699999442 ] }, "throughput": { "unit": "tokens/s", "value": 47.59788333355092 }, "energy": { "unit": "kWh", "cpu": 1.6253265696759362e-06, "ram": 6.792584632215686e-08, "gpu": 0.0, "total": 1.693252415998093e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1181158.8048560931 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.481024, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3820304650000139, "mean": 0.025468697666667595, "stdev": 0.0013697928086738207, "p50": 0.02520158699999797, "p90": 0.027042102999996587, "p95": 0.02793062009999687, "p99": 0.028939581620000467, "values": [ 0.027390104999994946, 0.025599741000007725, 0.024220664000011993, 0.026520099999999047, 0.024953402000022606, 0.02484396900001684, 0.02612800800000059, 0.02520158699999797, 0.024713343999991366, 0.02551475100000289, 0.029191822000001366, 0.02385595199999102, 0.024355305999989696, 0.025596153999998705, 0.023945559999987154 ] }, "throughput": { "unit": "tokens/s", "value": 39.26388436063457 }, "energy": { "unit": "kWh", "cpu": 9.758483883101689e-07, "ram": 4.0782491978599804e-08, "gpu": 0.0, "total": 1.0166308802887691e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 983641.181267241 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.37658748900000205, "mean": 0.025105832600000138, "stdev": 0.0013212215938691449, "p50": 0.02481452300000342, "p90": 0.026681645999985903, "p95": 0.02749965729998678, "p99": 0.028393009059994367, "values": [ 0.027021075999982713, 0.025235350000002654, 0.023890567000023566, 0.02617250099999069, 0.024589663000000428, 0.02447736400000622, 0.02576322699999878, 0.02481452300000342, 0.024376855999975078, 0.0251778619999925, 0.028616346999996267, 0.023538408999996818, 0.024026482000010674, 0.025264374000016687, 0.02362288800000556 ] }, "throughput": { "unit": "tokens/s", "value": 39.83138165272378 }, "energy": null, "efficiency": null } } }