{ "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", "model": "openai-community/gpt2", "library": "transformers", "device": "cpu", "device_ids": null, "seed": 42, "inter_op_num_threads": null, "intra_op_num_threads": null, "hub_kwargs": { "revision": "main", "force_download": false, "local_files_only": false, "trust_remote_code": false }, "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", "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-1018-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.0", "optimum_benchmark_commit": "6d219cab8dced45685ef7bd31a9c5490c58b944d", "transformers_version": "4.40.2", "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": "0.9.16", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 947.744768, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6550434540000083, "mean": 0.04366956360000055, "stdev": 0.0009442459726971205, "p50": 0.043400093999991896, "p90": 0.044969158799989375, "p95": 0.04538049639999997, "p99": 0.045608600080012704, "values": [ 0.04525829799999315, 0.04428805899999588, 0.0428263849999837, 0.04390361200000825, 0.04338282200001231, 0.04297925999998142, 0.04453544999998371, 0.04566562600001589, 0.04285856500001728, 0.043400093999991896, 0.04267416100000787, 0.04332208899998591, 0.04397669900001233, 0.04386326700000609, 0.0421090670000126 ] }, "throughput": { "unit": "tokens/s", "value": 45.79848835494145 }, "energy": { "unit": "kWh", "cpu": 1.6926123324223765e-06, "ram": 7.073598642250544e-08, "gpu": 0.0, "total": 1.763348318844882e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1134205.862010372 } }, "decode": { "memory": { "unit": "MB", "max_ram": 947.744768, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.40758571699998924, "mean": 0.027172381133332615, "stdev": 0.0007936533300877572, "p50": 0.027156305000005432, "p90": 0.027633397600010313, "p95": 0.02823210800000595, "p99": 0.02923892080000485, "values": [ 0.0273950090000028, 0.02769274400000654, 0.026746371000001545, 0.027282119999995302, 0.026782006999980013, 0.027544378000015968, 0.02733710100000053, 0.02697282299999415, 0.02730594399997699, 0.027156305000005432, 0.02711542899999131, 0.0269145940000044, 0.029490624000004573, 0.025966307000004463, 0.02588396100000523 ] }, "throughput": { "unit": "tokens/s", "value": 36.802074690954875 }, "energy": { "unit": "kWh", "cpu": 1.069803164968936e-06, "ram": 4.4709171178965335e-08, "gpu": 0.0, "total": 1.1145123361479018e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 897253.4152975895 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.9902306230000022, "mean": 0.07073075878571444, "stdev": 0.0013561517202880726, "p50": 0.07039625000000171, "p90": 0.07246276519998958, "p95": 0.07294918259999009, "p99": 0.07338348452000332, "values": [ 0.07200986800000919, 0.06957833599997798, 0.07116524400001367, 0.07022016299998768, 0.07051648399999522, 0.07190438100002439, 0.07265686399998117, 0.07019123899999613, 0.07054194200000552, 0.06980548999999314, 0.07027601600000821, 0.07349206000000663, 0.0698707119999824, 0.06800182400002086 ] }, "throughput": { "unit": "tokens/s", "value": 14.138120630510908 }, "energy": null, "efficiency": null } } }