{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.4.0+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": "error", "numactl": false, "numactl_kwargs": {}, "start_method": "spawn" }, "environment": { "cpu": " AMD EPYC 7763 64-Core Processor", "cpu_count": 4, "cpu_ram_mb": 16757.346304, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "bf12ccfcd7efa011d0d69377131432e9b545fd5a", "transformers_version": "4.44.0", "transformers_commit": null, "accelerate_version": "0.33.0", "accelerate_commit": null, "diffusers_version": "0.30.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.8", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1111.425024, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.772872422000006, "mean": 4.772872422000006, "stdev": 0.0, "p50": 4.772872422000006, "p90": 4.772872422000006, "p95": 4.772872422000006, "p99": 4.772872422000006, "values": [ 4.772872422000006 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.735453931111156e-05, "ram": 2.815250172888916e-06, "gpu": 0, "total": 7.016978948400048e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 964.780032, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6524966390000202, "mean": 0.04349977593333468, "stdev": 0.003092447535758227, "p50": 0.04202730299999757, "p90": 0.04676372739999692, "p95": 0.04819776710000098, "p99": 0.05069141742001932, "values": [ 0.04202730299999757, 0.042146134999995866, 0.04105536399998755, 0.041839120999981105, 0.042114695000009306, 0.04161800700001095, 0.041527145999992854, 0.04661649400000556, 0.04633848500000681, 0.0513148300000239, 0.04686188299999117, 0.04658133999998881, 0.040574024000022746, 0.04076550299998871, 0.04111630900001728 ] }, "throughput": { "unit": "tokens/s", "value": 45.977248321119816 }, "energy": { "unit": "kWh", "cpu": 1.6238961780092531e-06, "ram": 6.786528290139388e-08, "gpu": 0.0, "total": 1.691761460910647e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1182199.7640987951 } }, "decode": { "memory": { "unit": "MB", "max_ram": 965.566464, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.4009177750000674, "mean": 0.026727851666671163, "stdev": 0.0014981515497945964, "p50": 0.02587805300001378, "p90": 0.028940147599996635, "p95": 0.029004117099995598, "p99": 0.029009312220013614, "values": [ 0.025842947000001004, 0.025634147000005214, 0.025819885000004206, 0.025968282000008003, 0.02587805300001378, 0.02534497599998531, 0.02816048100001467, 0.02884836800001267, 0.028450514000013527, 0.029001333999985945, 0.029010611000018116, 0.02741643000001659, 0.024998498999991625, 0.025428913000013154, 0.025114334999983612 ] }, "throughput": { "unit": "tokens/s", "value": 37.41415555844955 }, "energy": { "unit": "kWh", "cpu": 9.603270865741055e-07, "ram": 4.0131232652662614e-08, "gpu": 0.0, "total": 1.000458319226768e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 999541.8907335168 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 15, "total": 0.3951591370000358, "mean": 0.026343942466669053, "stdev": 0.0014385261068004369, "p50": 0.025548127000007526, "p90": 0.028464105599994127, "p95": 0.028529594799988445, "p99": 0.028549797359996774, "values": [ 0.02549763100000746, 0.025263805000008688, 0.025493063999988408, 0.02564271300002474, 0.025548127000007526, 0.024992056000002094, 0.027657360000006292, 0.028382106000009344, 0.027959916000014573, 0.028518771999983983, 0.028554847999998856, 0.02709951799999999, 0.024645648999978675, 0.02509488800001236, 0.02480868399999281 ] }, "throughput": { "unit": "tokens/s", "value": 37.95939052270641 }, "energy": null, "efficiency": null } } }