{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.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, "num_choices": 2, "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": 16766.7712, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "4f377554af3ee54c159bc072e03cb9d8efa78a7b", "transformers_version": "4.44.2", "transformers_commit": null, "accelerate_version": "0.34.2", "accelerate_commit": null, "diffusers_version": "0.30.3", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.9", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1115.672576, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.755313047000016, "mean": 4.755313047000016, "stdev": 0.0, "p50": 4.755313047000016, "p90": 4.755313047000016, "p95": 4.755313047000016, "p99": 4.755313047000016, "values": [ 4.755313047000016 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.79598255777781e-05, "ram": 2.8421035338385383e-06, "gpu": 0, "total": 7.080192911161664e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 970.051584, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6307635870000468, "mean": 0.04205090580000312, "stdev": 0.0025033151698148097, "p50": 0.04100441799999999, "p90": 0.04599941259999696, "p95": 0.04622696749999591, "p99": 0.046354734299997064, "values": [ 0.04484991299995045, 0.04615852099999529, 0.04638667599999735, 0.043949987000019064, 0.04576074999999946, 0.04021579999999858, 0.040394321999997373, 0.040151360000038494, 0.04100441799999999, 0.040670826999985366, 0.04041587300002902, 0.041247251000015694, 0.03911778399998411, 0.041162694000036026, 0.039277411000000484 ] }, "throughput": { "unit": "tokens/s", "value": 47.56140116248939 }, "energy": { "unit": "kWh", "cpu": 1.5488118916666773e-06, "ram": 6.476492172611593e-08, "gpu": 0.0, "total": 1.613576813392793e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1239482.3620418124 } }, "decode": { "memory": { "unit": "MB", "max_ram": 970.4448, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.3921833779999133, "mean": 0.026145558533327555, "stdev": 0.001869344261274655, "p50": 0.02518389599998727, "p90": 0.029072989399969627, "p95": 0.029178627099975075, "p99": 0.02925584382000352, "values": [ 0.02927514800001063, 0.029137260999959835, 0.028634142999976575, 0.02897658199998432, 0.025669510999989598, 0.024784102000012354, 0.02518389599998727, 0.02478116599996838, 0.025273574000038934, 0.024823866000019734, 0.024845796999954928, 0.02745920499995691, 0.02446558800005505, 0.02451836599999524, 0.02435517300000356 ] }, "throughput": { "unit": "tokens/s", "value": 38.24741394318684 }, "energy": { "unit": "kWh", "cpu": 9.212472281250786e-07, "ram": 3.8522976760535676e-08, "gpu": 0.0, "total": 9.59770204885614e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1041916.0700234288 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3861146730000087, "mean": 0.02574097820000058, "stdev": 0.0018090967332659393, "p50": 0.024814138000010644, "p90": 0.028558418199986592, "p95": 0.028655398200010042, "p99": 0.0287312804400176, "values": [ 0.02875025100001949, 0.02861474700000599, 0.028144370999996227, 0.02847392499995749, 0.025298439999971833, 0.02440363300001991, 0.024814138000010644, 0.02442866899997398, 0.02486547400002337, 0.024456732000032844, 0.02447937399995226, 0.027096518999996988, 0.024076854000043113, 0.024157473999991907, 0.02405407200001264 ] }, "throughput": { "unit": "tokens/s", "value": 38.84856248392213 }, "energy": null, "efficiency": null } } }