{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.0+cpu", "_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", "task": "text-generation", "library": "transformers", "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.354496, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.1", "optimum_benchmark_commit": "dc29eecfd7850e87154a5a92442eb64d237d0070", "transformers_version": "4.41.0", "transformers_commit": null, "accelerate_version": "0.30.1", "accelerate_commit": null, "diffusers_version": "0.27.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.3", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 955.850752, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.642288832000304, "mean": 0.04587777371430742, "stdev": 0.0026652482306491745, "p50": 0.04753164800001741, "p90": 0.048335841400012215, "p95": 0.04841972610000198, "p99": 0.04844371162001721, "values": [ 0.04844970800002102, 0.04719118700006675, 0.04777281400004085, 0.04770874400003322, 0.04840358199999173, 0.047768906999976934, 0.047734512000033646, 0.047354552000001604, 0.04817778000006001, 0.04214464000006046, 0.0416372519999868, 0.042871478000051866, 0.042459889000042494, 0.042613786999936565 ] }, "throughput": { "unit": "tokens/s", "value": 43.59409444003341 }, "energy": { "unit": "kWh", "cpu": 1.6558019099412143e-06, "ram": 6.919851966233163e-08, "gpu": 0.0, "total": 1.7250004296035459e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1159420.0011066992 } }, "decode": { "memory": { "unit": "MB", "max_ram": 955.850752, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3904323019999083, "mean": 0.027888021571422023, "stdev": 0.0018241385071575303, "p50": 0.02903332699997918, "p90": 0.029760366699940734, "p95": 0.029885467899941887, "p99": 0.029975476779966356, "values": [ 0.02960982399997647, 0.029824884999925416, 0.028997970999967038, 0.029997978999972474, 0.029391446000090582, 0.029226827999991656, 0.029390634000037608, 0.029068682999991324, 0.02630639300002713, 0.025849989999983336, 0.025198823999971864, 0.026018334000013965, 0.025483625999981996, 0.026066884999977447 ] }, "throughput": { "unit": "tokens/s", "value": 35.85768884461636 }, "energy": { "unit": "kWh", "cpu": 9.77455090593409e-07, "ram": 4.0850206070544455e-08, "gpu": 0.0, "total": 1.018305296663953e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 982023.7636748797 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 13, "total": 0.9550844099999267, "mean": 0.07346803153845591, "stdev": 0.004336851837404147, "p50": 0.0764177149999341, "p90": 0.0775804911999785, "p95": 0.07775825339999756, "p99": 0.07783815948002484, "values": [ 0.07706154799996057, 0.0767649330000495, 0.07769166499997482, 0.07785813600003166, 0.07703740199997355, 0.0771357959999932, 0.0764177149999341, 0.07467578099999628, 0.06803187000002708, 0.06685551100008524, 0.06890060299997458, 0.06796914199992443, 0.06868430800000169 ] }, "throughput": { "unit": "tokens/s", "value": 13.611362371626395 }, "energy": null, "efficiency": null } } }