{ "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": 16757.334016, "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": "abe76ffe762e9c1733304501bfa77d8641c7629d", "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_model": { "memory": { "unit": "MB", "max_ram": 1133.514752, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7216726959999846 ], "count": 1, "total": 1.7216726959999846, "mean": 1.7216726959999846, "p50": 1.7216726959999846, "p90": 1.7216726959999846, "p95": 1.7216726959999846, "p99": 1.7216726959999846, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.0002021148421444445, "ram": 8.448559944807712e-06, "gpu": 0, "total": 0.0002105634020892522 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1023.070208, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.10755843000004006, 0.10798819500001855, 0.10973262300001352, 0.10789251500000319, 0.10812174500000538, 0.11216669300000603, 0.10028882900002145 ], "count": 7, "total": 0.7537490300001082, "mean": 0.10767843285715831, "p50": 0.10798819500001855, "p90": 0.11070625100001052, "p95": 0.11143647200000828, "p99": 0.11202064880000648, "stdev": 0.0033662851824916, "stdev_": 3.126239018501665 }, "throughput": { "unit": "samples/s", "value": 18.573821580902056 }, "energy": { "unit": "kWh", "cpu": 4.12285111388886e-06, "ram": 1.7229664464845002e-07, "gpu": 0.0, "total": 4.29514775853731e-06 }, "efficiency": { "unit": "samples/kWh", "value": 465641.7223423041 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1025.691648, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04255087199999252, 0.04339335999998184, 0.04292823999998063, 0.04345016700000315, 0.04338767300004065, 0.04162938600001098, 0.0422318049999717 ], "count": 7, "total": 0.2995715029999815, "mean": 0.04279592899999735, "p50": 0.04292823999998063, "p90": 0.04341608279999036, "p95": 0.043433124899996754, "p99": 0.04344675858000187, "stdev": 0.0006427318607954837, "stdev_": 1.5018528065964487 }, "throughput": { "unit": "tokens/s", "value": 46.73341709675525 }, "energy": { "unit": "kWh", "cpu": 1.5547321305553876e-06, "ram": 6.497812513099422e-08, "gpu": 0.0, "total": 1.6197102556863842e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1234788.7487768363 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.041684207999992395, 0.042513501999962955, 0.04200473899999224, 0.04255395799998496, 0.04254738899999211, 0.04075596999996378, 0.041355722999981026 ], "count": 7, "total": 0.29341548899986947, "mean": 0.04191649842855278, "p50": 0.04200473899999224, "p90": 0.04255001659998925, "p95": 0.042551987299987104, "p99": 0.04255356385998539, "stdev": 0.0006418535034369334, "stdev_": 1.5312669891331239 }, "throughput": null, "energy": null, "efficiency": null } } }