IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
bc8a3a5 verified
raw
history blame
8.39 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+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.354496,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": "fb780fc73efc41258966d25b08045708166d6309",
"transformers_version": "4.41.0",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 955.609088,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6568934770000112,
"mean": 0.046920962642857944,
"stdev": 0.00291470175286872,
"p50": 0.047999748999998815,
"p90": 0.049666115000005104,
"p95": 0.04995117180000506,
"p99": 0.05021896556000087,
"values": [
0.05028591399999982,
0.049770926000007876,
0.04935885500000836,
0.049421555999998645,
0.04672440900000652,
0.048284819999992123,
0.04850916099999836,
0.047714678000005506,
0.04896046600001114,
0.04714902699998902,
0.04480134700000349,
0.0418790169999852,
0.04193266799998696,
0.042100633000018206
]
},
"throughput": {
"unit": "tokens/s",
"value": 42.6248714294959
},
"energy": {
"unit": "kWh",
"cpu": 1.6682385294525713e-06,
"ram": 6.971953978246384e-08,
"gpu": 0.0,
"total": 1.737958069235035e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1150775.749659083
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 955.609088,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.41085716500006697,
"mean": 0.02934694035714764,
"stdev": 0.0020885360810368914,
"p50": 0.030347200000008456,
"p90": 0.03102598829999579,
"p95": 0.03105067890000015,
"p99": 0.03108493338000045,
"values": [
0.03100264100001482,
0.030052694999994856,
0.03062715100000446,
0.03102762299999995,
0.031093497000000525,
0.030398692000005667,
0.030992498000017576,
0.03102217399998608,
0.030295708000011246,
0.029926605000014206,
0.0258641329999989,
0.02650028900001189,
0.02572954100000402,
0.026323918000002777
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.07510247508454
},
"energy": {
"unit": "kWh",
"cpu": 1.0060438624134773e-06,
"ram": 4.20459328730563e-08,
"gpu": 0.0,
"total": 1.048089795286534e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 954116.72215224
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9868696359999944,
"mean": 0.0759130489230765,
"stdev": 0.004838589831538048,
"p50": 0.07867717999999968,
"p90": 0.08000163979999683,
"p95": 0.08021635200000218,
"p99": 0.08042279520000647,
"values": [
0.07983093499998972,
0.08004431599999862,
0.08047440600000755,
0.07782312599999841,
0.07867717999999968,
0.0795747370000015,
0.07870047299999783,
0.0792604130000143,
0.077128340999991,
0.07085760100000016,
0.0683909290000031,
0.06766509400000587,
0.06844208499998672
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.172965836391457
},
"energy": null,
"efficiency": null
}
}
}