{ "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.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.14", "optimum_benchmark_version": "0.4.0", "optimum_benchmark_commit": "7a3decba3b6b5d01db9128cdaf155313faf6d8f5", "transformers_version": "4.44.1", "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": 1109.413888, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 1, "total": 4.8515568980000126, "mean": 4.8515568980000126, "stdev": 0.0, "p50": 4.8515568980000126, "p90": 4.8515568980000126, "p95": 4.8515568980000126, "p99": 4.8515568980000126, "values": [ 4.8515568980000126 ] }, "throughput": null, "energy": { "unit": "kWh", "cpu": 6.955292166666805e-05, "ram": 2.9071348583149905e-06, "gpu": 0, "total": 7.246005652498304e-05 }, "efficiency": null }, "prefill": { "memory": { "unit": "MB", "max_ram": 963.141632, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.6252155999998763, "mean": 0.04465825714284831, "stdev": 0.0024828866924349624, "p50": 0.046184466499994414, "p90": 0.046819627899998294, "p95": 0.04711412459999451, "p99": 0.047241584919980824, "values": [ 0.04633264699998563, 0.04623508499997797, 0.046015075000013894, 0.0472734499999774, 0.04630831099996158, 0.04619497099997716, 0.047028334000003724, 0.04617396200001167, 0.046201472000007016, 0.043709046999993006, 0.04137834099998372, 0.041268407000018215, 0.040651787000001605, 0.04044471099996372 ] }, "throughput": { "unit": "tokens/s", "value": 44.784551121254076 }, "energy": { "unit": "kWh", "cpu": 1.626039450000005e-06, "ram": 6.795593812968018e-08, "gpu": 0.0, "total": 1.6939953881296852e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 1180640.7585372294 } }, "decode": { "memory": { "unit": "MB", "max_ram": 963.796992, "max_global_vram": null, "max_process_vram": null, "max_reserved": null, "max_allocated": null }, "latency": { "unit": "s", "count": 14, "total": 0.3837472559999924, "mean": 0.027410518285713743, "stdev": 0.001554590909355862, "p50": 0.028328631000022142, "p90": 0.028942000499984032, "p95": 0.029000058899976013, "p99": 0.0290037373799737, "values": [ 0.02848209199999019, 0.02836802000001626, 0.028997582999977567, 0.029004656999973122, 0.02881230799999912, 0.028553714999986823, 0.028462916000023597, 0.028289242000028025, 0.027995454999995673, 0.025292245999992247, 0.02512406299996428, 0.025566276000006383, 0.02546933700000409, 0.025329346000035002 ] }, "throughput": { "unit": "tokens/s", "value": 36.48234555715045 }, "energy": { "unit": "kWh", "cpu": 9.711308314814908e-07, "ram": 4.058594380950855e-08, "gpu": 0.0, "total": 1.0117167752909996e-06 }, "efficiency": { "unit": "tokens/kWh", "value": 988418.9176485391 } }, "per_token": { "memory": null, "latency": { "unit": "s", "count": 14, "total": 0.3777063940000289, "mean": 0.02697902814285921, "stdev": 0.0014727034382746636, "p50": 0.027830657500004463, "p90": 0.02843873039998357, "p95": 0.028484430999981214, "p99": 0.0284872805999953, "values": [ 0.027995013999998264, 0.027883906999988994, 0.028482512999971732, 0.028487992999998824, 0.02833657100001119, 0.028075344000001223, 0.027976039000009223, 0.027777408000019932, 0.027516552000008687, 0.02496368300000995, 0.024806259999991198, 0.025239456999997856, 0.025155251000001044, 0.025010402000020804 ] }, "throughput": { "unit": "tokens/s", "value": 37.065827379133346 }, "energy": null, "efficiency": null } } }