{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.3.1+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.342208, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1022-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.14", "optimum_benchmark_version": "0.2.1", "optimum_benchmark_commit": "dd02f26cb819965cbf86e16d9ce013cddc3b86af", "transformers_version": "4.42.3", "transformers_commit": null, "accelerate_version": "0.31.0", "accelerate_commit": null, "diffusers_version": "0.29.2", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.7", "timm_commit": null, "peft_version": null, "peft_commit": null } }, "report": { "prefill": { "memory": { "unit": "MB", "max_ram": 956.801024, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6290416850000611, "mean": 0.041936112333337404, "stdev": 0.0012957450877051008, "p50": 0.041890797999997176, "p90": 0.043101457600005236, "p95": 0.044134031600000866, "p99": 0.04527483671999277, "values": [ 0.042049416000025985, 0.04233840999998506, 0.0423214780000194, 0.041686834000017825, 0.04143483100000367, 0.04246931500000528, 0.042102306000003864, 0.041890797999997176, 0.045560037999990755, 0.04142576200001713, 0.041303500999987364, 0.0435228860000052, 0.040254883000017117, 0.040292483000001766, 0.04038874399998349 ] }, "throughput": { "unit": "tokens/s", "value": 47.691592966525086 }, "energy": { "unit": "kWh", "cpu": 1.5999743143717447e-06, "ram": 6.686529918702034e-08, "gpu": 0.0, "total": 1.666839613558765e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1199875.4911577394 } }, "decode": { "memory": { "unit": "MB", "max_ram": 956.801024, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.37784210599997436, "mean": 0.025189473733331625, "stdev": 0.0006067848580807377, "p50": 0.025192691000000877, "p90": 0.026014862199986055, "p95": 0.026322753399981025, "p99": 0.026394471479986237, "values": [ 0.026284332999978233, 0.025215023000015435, 0.025192691000000877, 0.025406091999997216, 0.025021909000003006, 0.02491641200001027, 0.024999065999992354, 0.025362900999994054, 0.02561065599999779, 0.02524689399999147, 0.024794496999987814, 0.025129563999996662, 0.024075917000004665, 0.02641240099998754, 0.02417375000001698 ] }, "throughput": { "unit": "tokens/s", "value": 39.699122363035464 }, "energy": { "unit": "kWh", "cpu": 9.175052609708579e-07, "ram": 3.8345683555584745e-08, "gpu": 0.0, "total": 9.558509445264424e-07 }, "efficiency": { "unit": "tokens/kWh", "value": 1046188.2218418798 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.9388101939999842, "mean": 0.06705787099999887, "stdev": 0.0015814750352863723, "p50": 0.06710167800001443, "p90": 0.0683765029, "p95": 0.06956377279999941, "p99": 0.07083567615999385, "values": [ 0.06760374699999261, 0.06752976799998578, 0.0670973650000235, 0.0664847239999915, 0.067391678000007, 0.06710599100000536, 0.06729777199998921, 0.07115365199999246, 0.06667176600001312, 0.06612524899998107, 0.06870768400000316, 0.06436498300001858, 0.06668491799999288, 0.06459089699998799 ] }, "throughput": { "unit": "tokens/s", "value": 14.912492524554155 }, "energy": null, "efficiency": null } } }