{ "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": 1, "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": null, "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.15", "optimum_benchmark_version": "0.5.0.dev0", "optimum_benchmark_commit": "6807ba28334c8c98abf72a03d78f86133328d180", "transformers_version": "4.46.3", "transformers_commit": null, "accelerate_version": "1.1.1", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.11", "timm_commit": null, "peft_version": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1130.385408, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7419912789999898 ], "count": 1, "total": 1.7419912789999898, "mean": 1.7419912789999898, "p50": 1.7419912789999898, "p90": 1.7419912789999898, "p95": 1.7419912789999898, "p99": 1.7419912789999898, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 985.68192, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.047665391999998974, 0.049731436999991274, 0.04895271399999501, 0.04833657500000754, 0.04391997499999434, 0.043644501000017044, 0.04382332400001587, 0.04319213599995919, 0.04416296799996644, 0.044141969000008885, 0.04314894600003072, 0.04354990399997405, 0.043227575999992496, 0.04241360399998939 ], "count": 14, "total": 0.6299110209999412, "mean": 0.04499364435713866, "p50": 0.043871649500005105, "p90": 0.04876787229999877, "p95": 0.04922526704999371, "p99": 0.04963020300999176, "stdev": 0.0024009023029775032, "stdev_": 5.336092102076141 }, "throughput": { "unit": "tokens/s", "value": 44.45072250927105 }, "energy": { "unit": "kWh", "cpu": 1.6854151983796455e-06, "ram": 7.043250781543132e-08, "gpu": 0.0, "total": 1.7558477061950768e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1139050.9512547653 } }, "decode": { "memory": { "unit": "MB", "max_ram": 985.68192, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.030765811999970083, 0.030026732999999695, 0.03023100500001874, 0.02618368299999929, 0.026192708999985825, 0.026696138000033898, 0.026371824000023025, 0.026651877000006152, 0.026894829000013942, 0.026896673000010196, 0.027024220999976478, 0.02588880300004348, 0.026431090000016866, 0.025466253999979926 ], "count": 14, "total": 0.3817216510000776, "mean": 0.02726583221429126, "p50": 0.026674007500020025, "p90": 0.030169723400013025, "p95": 0.03041818745000171, "p99": 0.030696287089976407, "stdev": 0.0016615794659438356, "stdev_": 6.093998719294277 }, "throughput": { "unit": "tokens/s", "value": 36.67593903390393 }, "energy": { "unit": "kWh", "cpu": 1.0257383568054851e-06, "ram": 4.287120110748343e-08, "gpu": 0.0, "total": 1.068609557912968e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 935795.4854465602 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.030299631999980647, 0.029594156000030125, 0.029819386999974995, 0.02586457799998243, 0.025855570000032913, 0.02636103300000059, 0.026048771000034776, 0.02631907600004979, 0.02656132700002445, 0.02656453299999839, 0.02669703099996923, 0.02555920800000422, 0.026109781000002386, 0.02515429199996788 ], "count": 14, "total": 0.3768083750000528, "mean": 0.0269148839285752, "p50": 0.02634005450002519, "p90": 0.029751817699991533, "p95": 0.029987472749976974, "p99": 0.030237200149979913, "stdev": 0.001616638367978842, "stdev_": 6.006484636043616 }, "throughput": { "unit": "tokens/s", "value": 37.154163571863386 }, "energy": null, "efficiency": null } } }