{ "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": {}, "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-1023-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.1", "optimum_benchmark_commit": "1173614d292a81ced361d45dc81b00032c019f3c", "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": { "load": { "memory": { "unit": "MB", "max_ram": 1116.340224, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.0248727290000375, "mean": 5.0248727290000375, "stdev": 0.0, "p50": 5.0248727290000375, "p90": 5.0248727290000375, "p95": 5.0248727290000375, "p99": 5.0248727290000375, "values": [ 5.0248727290000375 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.807063155704076e-05, "ram": 2.8451762912152387e-06, "gpu": 0, "total": 7.091580784825599e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 969.306112, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.624979089000135, "mean": 0.04464136350000964, "stdev": 0.0015173809616206501, "p50": 0.044089302499997984, "p90": 0.047075238900043816, "p95": 0.04793749375004097, "p99": 0.04795506195002588, "values": [ 0.044076959999983956, 0.04792566900005113, 0.04508502000004455, 0.04382615200000828, 0.045090902000026745, 0.04278222499999629, 0.04334518500002105, 0.04329944900001692, 0.04503970600001139, 0.04395354899997983, 0.04410164500001201, 0.047959454000022106, 0.04491135600000007, 0.043581816999960665 ] }, "throughput": { "unit": "tokens/s", "value": 44.801498950621614 }, "energy": { "unit": "kWh", "cpu": 1.68240859552666e-06, "ram": 7.03115183701186e-08, "gpu": 0.0, "total": 1.7527201138967787e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1141083.4988100012 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.223616, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3806027890000223, "mean": 0.027185913500001595, "stdev": 0.0008057230272299232, "p50": 0.027119201999994402, "p90": 0.028209839000010107, "p95": 0.028514932399994565, "p99": 0.02868876007997471, "values": [ 0.027722062000009373, 0.027730526999960148, 0.026567507999970985, 0.028397933000007924, 0.02694522199999483, 0.026879178999990927, 0.027336433000016314, 0.026469098000006852, 0.027770953000015197, 0.026506324000024506, 0.026631789000020945, 0.02873221699996975, 0.027293181999993976, 0.025620362000040586 ] }, "throughput": { "unit": "tokens/s", "value": 36.78375567552443 }, "energy": { "unit": "kWh", "cpu": 9.480019520830229e-07, "ram": 3.961258062892626e-08, "gpu": 0.0, "total": 9.87614532711949e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1012540.7908428008 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.37522119299995893, "mean": 0.026801513785711353, "stdev": 0.0007856195669143645, "p50": 0.026749176999999236, "p90": 0.027837106599980645, "p95": 0.028099661049964197, "p99": 0.028220250609956567, "values": [ 0.027307018000044536, 0.027349035999975513, 0.0262106629999721, 0.028018494999969334, 0.026590139999996154, 0.026500934000011966, 0.026908214000002317, 0.026084050000008574, 0.02741386700000703, 0.026128579999976864, 0.026230290000000878, 0.028250397999954657, 0.026950663000036457, 0.025278845000002548 ] }, "throughput": { "unit": "tokens/s", "value": 37.31132532271847 }, "energy": null, "efficiency": null } } }