{ "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": "4f83ff1670dec8f273c8beb893e9243ca1209582", "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": 961.970176, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6281763009999395, "mean": 0.04486973578570996, "stdev": 0.0007107499136287721, "p50": 0.04480706999999029, "p90": 0.045821137499999054, "p95": 0.04597427304999542, "p99": 0.046066543409987164, "values": [ 0.0460896109999851, 0.044436222000001635, 0.04530898299998398, 0.0452456639999923, 0.044727555999998, 0.04488658399998258, 0.04439754000000562, 0.04462246099998879, 0.044084506000018564, 0.044999555000003966, 0.045912168000000975, 0.04452786400000264, 0.04560873299999457, 0.043328853999980765 ] }, "throughput": { "unit": "tokens/s", "value": 44.57347396810294 }, "energy": { "unit": "kWh", "cpu": 1.7387622796394976e-06, "ram": 7.266438844681034e-08, "gpu": 0.0, "total": 1.811426668086308e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1104102.106497588 } }, "decode": { "memory": { "unit": "MB", "max_ram": 961.970176, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.38396165699995777, "mean": 0.027425832642854125, "stdev": 0.0007352998775288754, "p50": 0.02731566999999302, "p90": 0.028309482199998116, "p95": 0.028747917999997697, "p99": 0.0290540420000022, "values": [ 0.02706296100001282, 0.027073289999975714, 0.02773456500000293, 0.027767237000006162, 0.027402034999994385, 0.027203744000019014, 0.029130573000003324, 0.026431651999985206, 0.027199194999980136, 0.027229304999991655, 0.02755747599999836, 0.027540241999986392, 0.028541872999994666, 0.026087509000007003 ] }, "throughput": { "unit": "tokens/s", "value": 36.461974118424905 }, "energy": { "unit": "kWh", "cpu": 9.89037754071124e-07, "ram": 4.133575090099837e-08, "gpu": 0.0, "total": 1.0303735049721216e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 970521.8497704447 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3789960939999162, "mean": 0.027071149571422586, "stdev": 0.000703221778495897, "p50": 0.026973488999985307, "p90": 0.027971441800002595, "p95": 0.02835305064999858, "p99": 0.0285585229300014, "values": [ 0.026718358000010767, 0.026739355999978898, 0.027364022999989857, 0.027403718000016397, 0.027070224999988568, 0.026845895999997538, 0.028609891000002108, 0.026091646999987006, 0.026876752999982045, 0.026860505999991346, 0.02723100599999384, 0.027196229999987054, 0.02821475199999668, 0.02577373299999408 ] }, "throughput": { "unit": "tokens/s", "value": 36.9396946872046 }, "energy": null, "efficiency": null } } }