{ "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": "f837debaab7bc93d6490c10e065312a52e57b795", "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": 958.619648, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6482270169999822, "mean": 0.046301929785713014, "stdev": 0.004546878962071299, "p50": 0.04411083949999295, "p90": 0.05217969889999097, "p95": 0.05523648269998631, "p99": 0.058336858939984776, "values": [ 0.04501018000001977, 0.04491730399999483, 0.059111952999984396, 0.04744947999998317, 0.044143773999991254, 0.04390131900001393, 0.04354293000000098, 0.05314969099998734, 0.049916383999999425, 0.044077904999994644, 0.04356663100000446, 0.04301663399999711, 0.04346193300000323, 0.04296089900000766 ] }, "throughput": { "unit": "tokens/s", "value": 43.19474391793326 }, "energy": { "unit": "kWh", "cpu": 1.868257699189363e-06, "ram": 7.807683591457655e-08, "gpu": 0.0, "total": 1.9463345351039398e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1027572.580113107 } }, "decode": { "memory": { "unit": "MB", "max_ram": 958.619648, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.4167471049999847, "mean": 0.029767650357141764, "stdev": 0.003983805536416375, "p50": 0.02779229149999196, "p90": 0.03572732599998574, "p95": 0.03726574339999473, "p99": 0.03854114948001296, "values": [ 0.028787558000004765, 0.036407296999982464, 0.03293798400000014, 0.03886000100001752, 0.02699971699999537, 0.026944831999998087, 0.034140726999993376, 0.029912273999997296, 0.027663182999987157, 0.027921399999996765, 0.02672232800000529, 0.02680142799999885, 0.026216204000007792, 0.02643217199999981 ] }, "throughput": { "unit": "tokens/s", "value": 33.59351470480044 }, "energy": { "unit": "kWh", "cpu": 1.2666384039441406e-06, "ram": 5.293570562251581e-08, "gpu": 0.0, "total": 1.3195741095666566e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 757820.2639398528 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.41132615199995826, "mean": 0.029380439428568446, "stdev": 0.003971546727600507, "p50": 0.027399070000001302, "p90": 0.03530498859998943, "p95": 0.03685198904999538, "p99": 0.038154673810007575, "values": [ 0.02824434299998302, 0.03597518199998717, 0.03255706499999178, 0.03848034500001063, 0.02663903699999537, 0.026591725999992377, 0.033741203999994696, 0.02954118499999936, 0.02727188500000466, 0.027526254999997946, 0.026380122999995592, 0.026414748999997073, 0.025873738000001367, 0.026089315000007218 ] }, "throughput": { "unit": "tokens/s", "value": 34.03625062964978 }, "energy": null, "efficiency": null } } }