{ "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": "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-1022-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.3.0", "optimum_benchmark_commit": "748abd0c7ac21cfb1798768cad39007b466ce8e8", "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "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": 946.008064, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6320337770000322, "mean": 0.045145269785716584, "stdev": 0.0014335878462813504, "p50": 0.045125155500002734, "p90": 0.046902648500014264, "p95": 0.047197662400014904, "p99": 0.04754591888000277, "values": [ 0.04763298299999974, 0.0456690849999859, 0.04418219400000112, 0.04440058899999144, 0.04660881200001654, 0.04483366400000932, 0.04438437900000736, 0.04546087900001794, 0.04384111000001667, 0.04696325900002307, 0.045416646999996146, 0.04676122399999372, 0.042445647999983294, 0.0434333039999899 ] }, "throughput": { "unit": "tokens/s", "value": 44.3014297952601 }, "energy": { "unit": "kWh", "cpu": 1.7341009660619469e-06, "ram": 7.246936256592562e-08, "gpu": 0.0, "total": 1.8065703286278726e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1107070.103115798 } }, "decode": { "memory": { "unit": "MB", "max_ram": 946.008064, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3873856239999611, "mean": 0.02767040171428294, "stdev": 0.0010203383328073155, "p50": 0.02784932599999479, "p90": 0.028944621900009793, "p95": 0.029149170250011024, "p99": 0.029290524449999678, "values": [ 0.02905402800001866, 0.027074623000004294, 0.028120855999986816, 0.029325862999996843, 0.0286893409999891, 0.02792931999999837, 0.026574162999992268, 0.02688786499999196, 0.02776933199999121, 0.028617707999984532, 0.02826093600000945, 0.026421650000003183, 0.02646082300000785, 0.02619911599998659 ] }, "throughput": { "unit": "tokens/s", "value": 36.139699391636185 }, "energy": { "unit": "kWh", "cpu": 1.0917386858935517e-06, "ram": 4.5625750047650256e-08, "gpu": 0.0, "total": 1.1373644359412024e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 879225.662768742 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.9429658930000073, "mean": 0.07253583792307748, "stdev": 0.0018882593808772102, "p50": 0.0727285290000168, "p90": 0.07499621619999175, "p95": 0.07549775339998632, "p99": 0.07572449387998859, "values": [ 0.0727393500000062, 0.07234661999999048, 0.073745869000021, 0.07530880299998444, 0.0727285290000168, 0.07103981299999873, 0.07236192899998173, 0.07143181100002494, 0.07578117899998915, 0.07351227499998458, 0.07339514800000302, 0.06892229000001748, 0.06965227699998877 ] }, "throughput": { "unit": "tokens/s", "value": 13.786288662722502 }, "energy": null, "efficiency": null } } }