{ "config": { "name": "cpu_inference_transformers_text-generation_openai-community/gpt2", "backend": { "name": "pytorch", "version": "2.5.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": 2, "sequence_length": 16 }, "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": 16757.342208, "system": "Linux", "machine": "x86_64", "platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35", "processor": "x86_64", "python_version": "3.10.15", "optimum_benchmark_version": "0.5.0.dev0", "optimum_benchmark_commit": "6ccc9c44187835220f844c26c6056f5580ee256e", "transformers_version": "4.46.3", "transformers_commit": null, "accelerate_version": "1.1.1", "accelerate_commit": null, "diffusers_version": "0.31.0", "diffusers_commit": null, "optimum_version": null, "optimum_commit": null, "timm_version": "1.0.11", "timm_commit": null, "peft_version": null, "peft_commit": null }, "print_report": true, "log_report": true }, "report": { "load": { "memory": { "unit": "MB", "max_ram": 1130.672128, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 1.7350888779999991 ], "count": 1, "total": 1.7350888779999991, "mean": 1.7350888779999991, "p50": 1.7350888779999991, "p90": 1.7350888779999991, "p95": 1.7350888779999991, "p99": 1.7350888779999991, "stdev": 0, "stdev_": 0 }, "throughput": null, "energy": null, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 1013.137408, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.11321007400002259, 0.11454035799999929, 0.11019313899998906, 0.11325281400002041, 0.11391088300001684, 0.11417847300000972, 0.10855614200002606 ], "count": 7, "total": 0.787841883000084, "mean": 0.11254884042858342, "p50": 0.11325281400002041, "p90": 0.11432322700000555, "p95": 0.11443179250000242, "p99": 0.11451864489999991, "stdev": 0.0021010467836252646, "stdev_": 1.8667866995559674 }, "throughput": { "unit": "tokens/s", "value": 284.32101013342054 }, "energy": { "unit": "kWh", "cpu": 4.175212700555544e-06, "ram": 1.7448955044604168e-07, "gpu": 0.0, "total": 4.3497022510015855e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 7356825.399400962 } }, "decode": { "memory": { "unit": "MB", "max_ram": 1021.489152, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "values": [ 0.04587651899998946, 0.048402236000015364, 0.04627089400000273, 0.051025675999994746, 0.052254140999991705, 0.05497587400000725, 0.0501967169999773 ], "count": 7, "total": 0.34900205699997855, "mean": 0.04985743671428265, "p50": 0.0501967169999773, "p90": 0.05334283419999793, "p95": 0.05415935410000259, "p99": 0.05481257002000632, "stdev": 0.003029641408061967, "stdev_": 6.076608842576269 }, "throughput": { "unit": "tokens/s", "value": 40.11437674707132 }, "energy": { "unit": "kWh", "cpu": 1.787639543888765e-06, "ram": 7.469978976232367e-08, "gpu": 0.0, "total": 1.862339333651089e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1073918.1436280087 } }, "per_token": { "memory": null, "latency": { "unit": "s", "values": [ 0.04496598800000129, 0.047466858999996475, 0.04533363400000212, 0.04989605599999436, 0.051173681999983955, 0.054082214999993994, 0.0493074659999877 ], "count": 7, "total": 0.3422258999999599, "mean": 0.04888941428570855, "p50": 0.0493074659999877, "p90": 0.05233709519998797, "p95": 0.05320965509999098, "p99": 0.05390770301999339, "stdev": 0.0030102601649791227, "stdev_": 6.157284166644409 }, "throughput": { "unit": "tokens/s", "value": 40.908651273914806 }, "energy": null, "efficiency": null } } }