IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3ee3702 verified
raw
history blame
9.52 kB
{
"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.346304,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1024-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "fb03e751b0ef40eab5568ec0cda0e97fe4e0c070",
"transformers_version": "4.43.3",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"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": 1122.340864,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.849138271000015,
"mean": 4.849138271000015,
"stdev": 0.0,
"p50": 4.849138271000015,
"p90": 4.849138271000015,
"p95": 4.849138271000015,
"p99": 4.849138271000015,
"values": [
4.849138271000015
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.830480098724366e-05,
"ram": 2.8549702609338584e-06,
"gpu": 0,
"total": 7.115977124817752e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 975.958016,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.626336302000027,
"mean": 0.04473830728571621,
"stdev": 0.0017030963191234769,
"p50": 0.04428298100000916,
"p90": 0.047516017699999226,
"p95": 0.047955820950002705,
"p99": 0.04798593778999873,
"values": [
0.046537108999984866,
0.04369990200001439,
0.044545732000017324,
0.04388409699998874,
0.04468959100000802,
0.04547829199998432,
0.04330727000001389,
0.04352706700001363,
0.04402023000000099,
0.045546218999987786,
0.047993466999997736,
0.04793555000000538,
0.0422624189999965,
0.042909357000013415
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.70441823440532
},
"energy": {
"unit": "kWh",
"cpu": 1.689084702067905e-06,
"ram": 7.058942250772304e-08,
"gpu": 0.0,
"total": 1.7596741245756281e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1136574.0804322676
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 976.482304,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3865601379999646,
"mean": 0.027611438428568898,
"stdev": 0.0010747101999272074,
"p50": 0.027265136500005838,
"p90": 0.029225498999988987,
"p95": 0.02989900399999641,
"p99": 0.030119140800009915,
"values": [
0.02727136000001451,
0.027928272999986348,
0.027467351999973744,
0.0279705910000132,
0.027999714999992875,
0.026870679000012387,
0.02700543000000266,
0.02692427799999564,
0.027258912999997165,
0.030174175000013292,
0.02975083499998732,
0.0269243779999897,
0.026713405000009516,
0.026300753999976223
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.216874487977556
},
"energy": {
"unit": "kWh",
"cpu": 1.0252557198206584e-06,
"ram": 4.284617893541387e-08,
"gpu": 0.0,
"total": 1.0681018987560727e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 936240.2605637297
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.38149037199994495,
"mean": 0.027249312285710352,
"stdev": 0.001020494663139093,
"p50": 0.02691246800000613,
"p90": 0.02878126249999298,
"p95": 0.02939940484999255,
"p99": 0.029600390570001026,
"values": [
0.026959778000019696,
0.027577517999986867,
0.027135832999988452,
0.027639302000011412,
0.027654581000007283,
0.026496460000004163,
0.02666673699999933,
0.02658647799998448,
0.02686515799999256,
0.029650637000003144,
0.029264125999986845,
0.026623075999992807,
0.026390040999984876,
0.025980646999983037
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.69817386636961
},
"energy": null,
"efficiency": null
}
}
}