{ "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": {}, "hub_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, "latency": true, "memory": 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": "402644384abc46743e46dac65be6512bc68c9d92", "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": { "prefill": { "memory": { "unit": "MB", "max_ram": 958.521344, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6492260389998705, "mean": 0.043281735933324704, "stdev": 0.0031079231381562398, "p50": 0.0412588659999642, "p90": 0.04721052060000375, "p95": 0.04774936790000765, "p99": 0.047909406379997105, "values": [ 0.047663633000013306, 0.04653085199998941, 0.04794941599999447, 0.045464217000017015, 0.04615094199999703, 0.046105225999951926, 0.04577523900002234, 0.0412588659999642, 0.04001042999999527, 0.04014367899998206, 0.0411057000000028, 0.03982140599998729, 0.04035695800001804, 0.040724245999967934, 0.04016522899996744 ] }, "throughput": { "unit": "tokens/s", "value": 46.20886747890588 }, "energy": { "unit": "kWh", "cpu": 1.600299941168891e-06, "ram": 6.687847729458553e-08, "gpu": 0.0, "total": 1.6671784184634767e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1199631.6518080062 } }, "decode": { "memory": { "unit": "MB", "max_ram": 958.521344, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.40746452299998737, "mean": 0.02716430153333249, "stdev": 0.0024496243438844713, "p50": 0.02551993100001937, "p90": 0.030082074999972973, "p95": 0.0306673562999606, "p99": 0.031544356059968096, "values": [ 0.030197534999956588, 0.029908884999997554, 0.028831417999981568, 0.02918251500000224, 0.028979173999971408, 0.028825026000049547, 0.03176360599996997, 0.024657897999986744, 0.02489800699999023, 0.02551993100001937, 0.024732778000043254, 0.024578318000010313, 0.025177860999974655, 0.02530094100001179, 0.024910630000022138 ] }, "throughput": { "unit": "tokens/s", "value": 36.81302089703762 }, "energy": { "unit": "kWh", "cpu": 9.547856118943962e-07, "ram": 3.99040916730172e-08, "gpu": 0.0, "total": 9.94689703567413e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1005338.646226599 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.40153535700005705, "mean": 0.026769023800003802, "stdev": 0.002365268592983841, "p50": 0.025195664000023044, "p90": 0.029590286799998467, "p95": 0.030177723599985027, "p99": 0.031049157519963726, "values": [ 0.02971088399999644, 0.029409391000001506, 0.02836319199997206, 0.02869021399999383, 0.028483186000016758, 0.028349066000032508, 0.0312670159999584, 0.02435206500001641, 0.024594798999999057, 0.025195664000023044, 0.024424681000027704, 0.024270462000004045, 0.024850689000004422, 0.024977255000010246, 0.024596793000000616 ] }, "throughput": { "unit": "tokens/s", "value": 37.35661066578969 }, "energy": null, "efficiency": null } } }