{ "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": "c594845efb520077430f4fe3f536bc1756e2b290", "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": 945.963008, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.6279437600001074, "mean": 0.041862917333340494, "stdev": 0.0006129532426794385, "p50": 0.04169695899997805, "p90": 0.04260120740000275, "p95": 0.0428040264999936, "p99": 0.04312844849998783, "values": [ 0.04255767500001184, 0.0414916390000144, 0.04263022899999669, 0.042312660999982654, 0.040951126000038585, 0.04156189899998708, 0.0418386919999989, 0.04150027299999692, 0.04169695899997805, 0.04320955399998638, 0.04135009600003059, 0.04186981999998807, 0.04242118200005507, 0.0410951910000108, 0.0414567640000314 ] }, "throughput": { "unit": "tokens/s", "value": 47.774979084105986 }, "energy": { "unit": "kWh", "cpu": 1.5992889404296875e-06, "ram": 6.683649339424846e-08, "gpu": 0.0, "total": 1.666125433823936e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1200389.8142349261 } }, "decode": { "memory": { "unit": "MB", "max_ram": 945.963008, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 15, "total": 0.39003121299992927, "mean": 0.02600208086666195, "stdev": 0.0009001867213492776, "p50": 0.025773655000023155, "p90": 0.02726734360002183, "p95": 0.02810104910003588, "p99": 0.028233319420031648, "values": [ 0.025800435999997262, 0.026041652999992948, 0.026045811000017238, 0.025717951999979505, 0.02598309499995821, 0.025773655000023155, 0.025626923999993778, 0.025347597000006772, 0.028030190000038147, 0.02612307399999736, 0.02573717799998576, 0.02826638700003059, 0.02518580599996767, 0.025015419999988353, 0.025336034999952517 ] }, "throughput": { "unit": "tokens/s", "value": 38.45846050275653 }, "energy": { "unit": "kWh", "cpu": 9.636857840749947e-07, "ram": 4.027562516033357e-08, "gpu": 0.0, "total": 1.0039614092353288e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 996054.2216076353 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.949856417000035, "mean": 0.06784688692857392, "stdev": 0.001138837022341767, "p50": 0.06750848549998523, "p90": 0.06955277480003019, "p95": 0.06971698425003581, "p99": 0.06994560485002524, "values": [ 0.06752601800002367, 0.06870441299997765, 0.06805578900002729, 0.06693884999998545, 0.06735868700002356, 0.06749095299994678, 0.06685787899999696, 0.06956310500004292, 0.06952867100000049, 0.0670783069999743, 0.07000276000002259, 0.0678079509999634, 0.06607747000003883, 0.06686556400001109 ] }, "throughput": { "unit": "tokens/s", "value": 14.739069768267392 }, "energy": null, "efficiency": null } } }