{ "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.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": "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": 1132.253184, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7633688570000459 ], "count": 1, "total": 1.7633688570000459, "mean": 1.7633688570000459, "p50": 1.7633688570000459, "p90": 1.7633688570000459, "p95": 1.7633688570000459, "p99": 1.7633688570000459, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": { "unit": "kWh", "cpu": 0.00020333595080555575, "ram": 8.499551895701189e-06, "gpu": 0, "total": 0.00021183550270125693 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1021.231104, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.10872928000003412, 0.11279372699999612, 0.11755242200001703, 0.1154944550000323, 0.11518291200002295, 0.11021567199998117, 0.10519553500000711 ], "count": 7, "total": 0.7851640030000908, "mean": 0.11216628614287012, "p50": 0.11279372699999612, "p90": 0.1163176418000262, "p95": 0.11693503190002161, "p99": 0.11742894398001795, "stdev": 0.004031840403245834, "stdev_": 3.5945207262281453 }, "throughput": { "unit": "samples/s", "value": 17.830669702770848 }, "energy": { "unit": "kWh", "cpu": 4.0741476494445e-06, "ram": 1.7026792161365232e-07, "gpu": 0.0, "total": 4.2444155710581524e-06 }, "efficiency": { "unit": "samples/kWh", "value": 471207.3939313607 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1024.126976, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04536926699995547, 0.05231780499997285, 0.05053115499998739, 0.05161912900001653, 0.05131364799996163, 0.04513170400002764, 0.04445532599999069 ], "count": 7, "total": 0.3407380339999122, "mean": 0.048676861999987456, "p50": 0.05053115499998739, "p90": 0.05189859939999906, "p95": 0.05210820219998595, "p99": 0.05227588443997547, "stdev": 0.0032433258964987438, "stdev_": 6.662972433390591 }, "throughput": { "unit": "tokens/s", "value": 41.0872829066203 }, "energy": { "unit": "kWh", "cpu": 1.4831469061111357e-06, "ram": 6.199018601175616e-08, "gpu": 0.0, "total": 1.5451370921228927e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1294383.5276468333 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04442657499998859, 0.05129787900000338, 0.049500448000003416, 0.050602609000009124, 0.05027633899999273, 0.04427969099998563, 0.04365898800000423 ], "count": 7, "total": 0.3340425289999871, "mean": 0.04772036128571244, "p50": 0.049500448000003416, "p90": 0.05088071700000683, "p95": 0.0510892980000051, "p99": 0.051256162800003724, "stdev": 0.003162045195888638, "stdev_": 6.626197100555816 }, "throughput": null, "energy": null, "efficiency": null } } }