IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
69a248e verified
raw
history blame
9.64 kB
{
"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_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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "c45aecda12da41e3b6f6ac9537d2f41a72709a5a",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"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": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1115.467776,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.737969369999973,
"mean": 4.737969369999973,
"stdev": 0.0,
"p50": 4.737969369999973,
"p90": 4.737969369999973,
"p95": 4.737969369999973,
"p99": 4.737969369999973,
"values": [
4.737969369999973
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.675349341498482e-05,
"ram": 2.7901162198509156e-06,
"gpu": 0,
"total": 6.954360963483573e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 968.871936,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6586129639998717,
"mean": 0.04390753093332478,
"stdev": 0.0022582729693766093,
"p50": 0.04320217899999079,
"p90": 0.04698112419998779,
"p95": 0.04766783000000032,
"p99": 0.04829455400001279,
"values": [
0.04320217899999079,
0.044030057999975725,
0.04559184900000446,
0.04238470000001371,
0.042684955999959584,
0.04303212899998243,
0.04645468299997901,
0.04278509400000985,
0.04339955099999315,
0.04733208499999364,
0.04845123500001591,
0.0459877849999657,
0.040945399999998244,
0.04132536600002368,
0.04100589399996579
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.55027252698574
},
"energy": {
"unit": "kWh",
"cpu": 1.6842517587873671e-06,
"ram": 7.03839818120855e-08,
"gpu": 0.0,
"total": 1.7546357405994526e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1139837.7188627888
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 969.658368,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4076114330001701,
"mean": 0.027174095533344673,
"stdev": 0.0015729939720465255,
"p50": 0.026621250999994572,
"p90": 0.02914057100001628,
"p95": 0.030075935700023135,
"p99": 0.031018622340010325,
"values": [
0.027152722000039375,
0.028304359999992812,
0.02612432500001205,
0.02654275399999051,
0.026027964000036263,
0.027006978000031268,
0.02741259100002935,
0.02590654599998743,
0.02957092500003,
0.03125429400000712,
0.028495039999995697,
0.026311367999994673,
0.026621250999994572,
0.025184957000021768,
0.025695358000007218
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.79975286658296
},
"energy": {
"unit": "kWh",
"cpu": 9.973152037020084e-07,
"ram": 4.168502214946555e-08,
"gpu": 0.0,
"total": 1.0390002258514744e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 962463.6983889843
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.4023580830001947,
"mean": 0.02682387220001298,
"stdev": 0.0015245783670795408,
"p50": 0.02627002000002676,
"p90": 0.028733680400011962,
"p95": 0.029601294400021058,
"p99": 0.03051677568001537,
"values": [
0.02681538699999919,
0.027960221999990154,
0.02580280000000812,
0.026197744000000966,
0.02569766200002732,
0.026655837000021165,
0.02708553600001551,
0.02555484399999841,
0.02911085800002411,
0.03074564600001395,
0.028167913999993743,
0.02600285700003724,
0.02627002000002676,
0.024889400999995814,
0.02540135500004226
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.280225335979495
},
"energy": null,
"efficiency": null
}
}
}