{ "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-1024-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "7c1c92eb7fe6a1466152b84a3e74c940c2382134", "transformers_version": "4.43.3", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "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.681984, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 5.044209439999975, "mean": 5.044209439999975, "stdev": 0.0, "p50": 5.044209439999975, "p90": 5.044209439999975, "p95": 5.044209439999975, "p99": 5.044209439999975, "values": [ 5.044209439999975 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.815271510018243e-05, "ram": 2.848605699913378e-06, "gpu": 0, "total": 7.10013208000958e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 974.5408, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.659082404000003, "mean": 0.05069864646153869, "stdev": 0.0015120916347909467, "p50": 0.050683096000000205, "p90": 0.052170833999991825, "p95": 0.05294591179998633, "p99": 0.053845723159981845, "values": [ 0.04801982899999757, 0.05018590999998196, 0.050683096000000205, 0.04906860500000221, 0.051036715999998705, 0.0509066430000189, 0.049850673999969786, 0.05206989399999884, 0.05407067599998072, 0.052196068999990075, 0.04976481400001376, 0.05170362000001205, 0.04952585800003817 ] }, "throughput": { "unit": "tokens/s", "value": 39.44878492007182 }, "energy": { "unit": "kWh", "cpu": 1.7122484635615695e-06, "ram": 7.155560741693988e-08, "gpu": 0.0, "total": 1.7838040709785095e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1121199.369672307 } }, "decode": { "memory": { "unit": "MB", "max_ram": 975.327232, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 13, "total": 0.4068396160001271, "mean": 0.03129535507693285, "stdev": 0.0006850312819588125, "p50": 0.03121537999999191, "p90": 0.032150184200031615, "p95": 0.032333698400032064, "p99": 0.03253732448003348, "values": [ 0.03129894599999261, 0.031515699999999924, 0.031128038000019842, 0.030637111000032746, 0.031601130000012745, 0.03071895499999755, 0.02992712700000766, 0.03121537999999191, 0.03258823100003383, 0.03209488100003455, 0.032164010000030885, 0.031064329000003, 0.030885777999969832 ] }, "throughput": { "unit": "tokens/s", "value": 31.953623710027145 }, "energy": { "unit": "kWh", "cpu": 9.872996749509359e-07, "ram": 4.1263411741056194e-08, "gpu": 0.0, "total": 1.028563086691993e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 972230.1071644949 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.3999893390001148, "mean": 0.030768410692316523, "stdev": 0.000691611168624315, "p50": 0.03068358799998805, "p90": 0.03161811780001926, "p95": 0.03180583780001598, "p99": 0.03202266916001008, "values": [ 0.03079084899997042, 0.03100569900004757, 0.030645608000043012, 0.030019670000001497, 0.031070089000024836, 0.030218482000009317, 0.029423187000020334, 0.03068358799998805, 0.03207687700000861, 0.03159000900001274, 0.03162514500002089, 0.03049654000000146, 0.030343595999966055 ] }, "throughput": { "unit": "tokens/s", "value": 32.50086622932785 }, "energy": null, "efficiency": null } } }