{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.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": 2, "sequence_length": 16, "num_choices": 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": null, "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16766.779392, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1017-azure-x86_64-with-glibc2.39", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0.dev0", "optimum_benchmark_commit": "4a05fc1f3a5421f19d020d997dbccbd6448c5dee", "transformers_version": "4.47.0", "transformers_commit": null, "accelerate_version": "1.2.0", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.12", "timm_commit": null, "peft_version": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load_model": { "memory": { "unit": "MB", "max_ram": 1126.715392, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7138858110000115 ], "count": 1, "total": 1.7138858110000115, "mean": 1.7138858110000115, "p50": 1.7138858110000115, "p90": 1.7138858110000115, "p95": 1.7138858110000115, "p99": 1.7138858110000115, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00019157595103888857, "ram": 8.012532621784283e-06, "gpu": 0, "total": 0.00019958848366067285 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1013.297152, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.104281866000008, 0.10487269699999047, 0.10490686099998925, 0.10538877900000898, 0.10406506100000001, 0.10212442299999225, 0.09980218300000843 ], "count": 7, "total": 0.7254418699999974, "mean": 0.10363455285714249, "p50": 0.104281866000008, "p90": 0.10509962819999714, "p95": 0.10524420360000306, "p99": 0.10535986392000779, "stdev": 0.0018439468834331035, "stdev_": 1.7792780810999744 }, "throughput": { "unit": "samples/s", "value": 19.298582807193153 }, "energy": { "unit": "kWh", "cpu": 4.133436296111074e-06, "ram": 1.7283165547536226e-07, "gpu": 0.0, "total": 4.306267951586436e-06 }, "efficiency": { "unit": "samples/kWh", "value": 464439.28303699655 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1013.297152, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.041980412999976124, 0.04185708399998589, 0.041968992000022354, 0.0422357090000105, 0.043004201999991665, 0.0428736289999847, 0.04143774099998154 ], "count": 7, "total": 0.2953577699999528, "mean": 0.0421939671428504, "p50": 0.041980412999976124, "p90": 0.04292585819998749, "p95": 0.04296503009998957, "p99": 0.042996367619991246, "stdev": 0.0005212280230849062, "stdev_": 1.2353140943591654 }, "throughput": { "unit": "tokens/s", "value": 47.40014119148529 }, "energy": { "unit": "kWh", "cpu": 1.318784949027789e-06, "ram": 5.515564374390001e-08, "gpu": 0.0, "total": 1.3739405927716906e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1455667.0139320518 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04157869399998049, 0.04157869399998049, 0.10529549500000712, 0.04145267900000249, 0.04157869399998049, 0.10529549500000712, 0.04145267900000249, 0.10533240499998442, 0.04157776200000285, 0.04157869399998049, 0.10529549500000712, 0.04145267900000249, 0.10533240499998442, 0.04157776200000285, 0.10580203000000665, 0.04179874400000472, 0.04157869399998049, 0.10529549500000712, 0.04145267900000249, 0.10533240499998442, 0.04157776200000285, 0.10580203000000665, 0.04179874400000472, 0.10452300500000433, 0.04252590100000475, 0.04157869399998049, 0.10529549500000712, 0.04145267900000249, 0.10533240499998442, 0.04157776200000285, 0.10580203000000665, 0.04179874400000472, 0.10452300500000433, 0.04252590100000475, 0.10262688899999262, 0.04250829800000133, 0.04157869399998049, 0.10529549500000712, 0.04145267900000249, 0.10533240499998442, 0.04157776200000285, 0.10580203000000665, 0.04179874400000472, 0.10452300500000433, 0.04252590100000475, 0.10262688899999262, 0.04250829800000133, 0.1001884030000042, 0.041088399999978265 ], "count": 49, "total": 3.3691877279999005, "mean": 0.06875893322448777, "p50": 0.04250829800000133, "p90": 0.10533240499998442, "p95": 0.10580203000000665, "p99": 0.10580203000000665, "stdev": 0.03122024324078239, "stdev_": 45.40536302221691 }, "throughput": null, "energy": null, "efficiency": null } } }