IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d0a4df2 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.342208,
"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.3.1",
"optimum_benchmark_commit": "aa06eb5e1bf688ecb03b7568e9e816d4af962b61",
"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": 1120.99328,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 5.014989597999971,
"mean": 5.014989597999971,
"stdev": 0.0,
"p50": 5.014989597999971,
"p90": 5.014989597999971,
"p95": 5.014989597999971,
"p99": 5.014989597999971,
"values": [
5.014989597999971
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.870255337821114e-05,
"ram": 2.8716022727974175e-06,
"gpu": 0,
"total": 7.157415565100856e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.60224,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6458194669999102,
"mean": 0.046129961928565014,
"stdev": 0.0028092406532758524,
"p50": 0.04698546999998143,
"p90": 0.04877918139999906,
"p95": 0.04953689095000584,
"p99": 0.05063987179003618,
"values": [
0.0479781529999741,
0.047369211999978234,
0.05091561700004377,
0.04879449999998542,
0.047212054999988595,
0.04874343800003089,
0.04813083899995263,
0.046578597000006994,
0.04675888499997427,
0.044078967999951146,
0.042132046000006085,
0.042204540999989604,
0.04200663000000304,
0.04291598600002544
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.3557695776363
},
"energy": {
"unit": "kWh",
"cpu": 1.702615028418205e-06,
"ram": 7.115261347280466e-08,
"gpu": 0.0,
"total": 1.7737676418910097e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1127543.4012697428
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 975.388672,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39060622799996736,
"mean": 0.027900444857140525,
"stdev": 0.0020616288386043876,
"p50": 0.028512847000001784,
"p90": 0.029800191999999014,
"p95": 0.03035627884998746,
"p99": 0.031153694169974527,
"values": [
0.02967502600000671,
0.029755007000005662,
0.031353047999971295,
0.029819556999996166,
0.02807330300004196,
0.028856071000006978,
0.02942939600001182,
0.028427496999995583,
0.028598197000007985,
0.025407813000015267,
0.02518738899999562,
0.025331910999966567,
0.02549665899999809,
0.025195353999947656
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.84172242128503
},
"energy": {
"unit": "kWh",
"cpu": 9.836156663879289e-07,
"ram": 4.1110056991101373e-08,
"gpu": 0.0,
"total": 1.0247257233790307e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 975870.8864090015
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.38435844399998587,
"mean": 0.027454174571427563,
"stdev": 0.0019837660194492674,
"p50": 0.02800148250000234,
"p90": 0.029305778000014014,
"p95": 0.029840619749998607,
"p99": 0.030610763149964554,
"values": [
0.029147528999999395,
0.02926733399999648,
0.03080329899995604,
0.02932225400002153,
0.0276128799999924,
0.028361883999991733,
0.02892372800005205,
0.027887183000018467,
0.02811578199998621,
0.025071722000006957,
0.02484659899999997,
0.024972295999987182,
0.02516324399999803,
0.024862709999979415
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.42433311547206
},
"energy": null,
"efficiency": null
}
}
}