{ "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": "f58a585c7841c260a82e0bd723177e7f242fbb1f", "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": 1110.07744, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.862402599000006, "mean": 4.862402599000006, "stdev": 0.0, "p50": 4.862402599000006, "p90": 4.862402599000006, "p95": 4.862402599000006, "p99": 4.862402599000006, "values": [ 4.862402599000006 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.773698827777806e-05, "ram": 2.831238047132861e-06, "gpu": 0, "total": 7.056822632491091e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.325376, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6391127380000512, "mean": 0.04260751586667008, "stdev": 0.0009177252782698322, "p50": 0.04254126600000063, "p90": 0.04369277380000085, "p95": 0.043895584400007695, "p99": 0.044131343280029114, "values": [ 0.04152347999996664, 0.04174332200000208, 0.04300071500000513, 0.04122218599997041, 0.04254126600000063, 0.04177763699999559, 0.04211932500004423, 0.043769284999996216, 0.043229785999983505, 0.04323428300000387, 0.0435780070000078, 0.04419028300003447, 0.0435227940000118, 0.042034116000024824, 0.041626253000004 ] }, "throughput": { "unit": "tokens/s", "value": 46.94007522659891 }, "energy": { "unit": "kWh", "cpu": 1.6117472964444282e-06, "ram": 6.735831796170563e-08, "gpu": 0.0, "total": 1.6791056144061339e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1191110.304700732 } }, "decode": { "memory": { "unit": "MB", "max_ram": 964.456448, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3911993439999719, "mean": 0.026079956266664796, "stdev": 0.0008335735037314156, "p50": 0.025980460999960542, "p90": 0.026357909200021366, "p95": 0.027171231400012628, "p99": 0.028561497480005756, "values": [ 0.025656644000036977, 0.025452702999984922, 0.025980460999960542, 0.026426446000016313, 0.026168832999985625, 0.026249955000025693, 0.026062193999962346, 0.02575798399999485, 0.02625510400002895, 0.026195432999998047, 0.025900090999982694, 0.028909064000004037, 0.025430309999990186, 0.025587916000006317, 0.025166205999994418 ] }, "throughput": { "unit": "tokens/s", "value": 38.34362258031055 }, "energy": { "unit": "kWh", "cpu": 9.7153864869444e-07, "ram": 4.0603574164445095e-08, "gpu": 0.0, "total": 1.012142222858885e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 988003.442021628 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.38552679499997566, "mean": 0.02570178633333171, "stdev": 0.0007887428868169774, "p50": 0.025601801999982854, "p90": 0.025965702600024086, "p95": 0.026717194900021467, "p99": 0.02803989977999322, "values": [ 0.02528916700003947, 0.025110541999993075, 0.025601801999982854, 0.0260086030000366, 0.025808468999969136, 0.025901352000005318, 0.025707750999970358, 0.02539750900001536, 0.0258218129999932, 0.02583245400001033, 0.025545475999990686, 0.02837057599998616, 0.025057592999985445, 0.025244583000016974, 0.0248291049999807 ] }, "throughput": { "unit": "tokens/s", "value": 38.907801466823976 }, "energy": null, "efficiency": null } } }