{ "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": "1d3ac8856ad0ec2784b68a0c854b7df5e86f1ef5", "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1120.505856, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.8224950190000015, "mean": 4.8224950190000015, "stdev": 0.0, "p50": 4.8224950190000015, "p90": 4.8224950190000015, "p95": 4.8224950190000015, "p99": 4.8224950190000015, "values": [ 4.8224950190000015 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.878521739444401e-05, "ram": 2.875041393674834e-06, "gpu": 0, "total": 7.166025878811885e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.102528, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6190903350000099, "mean": 0.04422073821428642, "stdev": 0.002642202978011774, "p50": 0.04597633800000267, "p90": 0.0468703808999976, "p95": 0.04694549744999108, "p99": 0.046983481889991484, "values": [ 0.04691993099999081, 0.04623744599999213, 0.045915604000015264, 0.04675476400001344, 0.046037071999990076, 0.04699297799999158, 0.04646115500000292, 0.046557034000016984, 0.04153265400000805, 0.040980732999997826, 0.04084917700001256, 0.041816514999993615, 0.041362384999985125, 0.04067288699999949 ] }, "throughput": { "unit": "tokens/s", "value": 45.22764840126208 }, "energy": { "unit": "kWh", "cpu": 1.6173950535555265e-06, "ram": 6.75931094267271e-08, "gpu": 0.0, "total": 1.6849881629822535e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1186951.9584399979 } }, "decode": { "memory": { "unit": "MB", "max_ram": 974.88896, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3836815839999872, "mean": 0.027405827428570513, "stdev": 0.001762013043066934, "p50": 0.02842836549999106, "p90": 0.02912232140000981, "p95": 0.029208668550012362, "p99": 0.029315088109996168, "values": [ 0.029137040000023262, 0.02885828899999865, 0.02908797799997842, 0.028989493999972638, 0.02934169299999212, 0.028920195000011972, 0.028927478000014162, 0.02799844199998347, 0.02528127499999755, 0.02515417699999034, 0.02580805899998495, 0.02537878600000454, 0.025489852000021074, 0.02530882600001405 ] }, "throughput": { "unit": "tokens/s", "value": 36.48858997621441 }, "energy": { "unit": "kWh", "cpu": 9.745823395000647e-07, "ram": 4.07312968990675e-08, "gpu": 0.0, "total": 1.015313636399133e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 984917.3340629566 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3778481430000227, "mean": 0.02698915307143019, "stdev": 0.001678304338788466, "p50": 0.028022992999993335, "p90": 0.028579809799995814, "p95": 0.028682761300005667, "p99": 0.028815609860012897, "values": [ 0.028593344000000798, 0.028373092000009592, 0.028548229999984187, 0.028502793999990672, 0.028848822000014707, 0.028416022000016028, 0.028428756000010935, 0.027672893999977077, 0.024938483999989103, 0.02483587200001125, 0.02548516600000994, 0.02504972200000566, 0.02516341200001193, 0.024991532999990795 ] }, "throughput": { "unit": "tokens/s", "value": 37.05192220568664 }, "energy": null, "efficiency": null } } }