IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1aa708d verified
raw
history blame
9.64 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.7712,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "b502dde12931cbe71b3c4aa53e3850ce968529c8",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.9",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1115.881472,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.816558217000022,
"mean": 4.816558217000022,
"stdev": 0.0,
"p50": 4.816558217000022,
"p90": 4.816558217000022,
"p95": 4.816558217000022,
"p99": 4.816558217000022,
"values": [
4.816558217000022
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.751605536666669e-05,
"ram": 2.823601067370677e-06,
"gpu": 0,
"total": 7.033965643403737e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.60512,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.62706866700006,
"mean": 0.041804577800004,
"stdev": 0.0018672870149065333,
"p50": 0.04131955400001175,
"p90": 0.043925792199991064,
"p95": 0.04504702159998714,
"p99": 0.046744203520004246,
"values": [
0.043607755000010684,
0.047168499000008524,
0.04126036299999214,
0.040671080999999276,
0.04187938200001895,
0.04230000900000164,
0.04131955400001175,
0.04095524199999545,
0.041893297999990864,
0.04134349900002121,
0.040816793000004736,
0.044137816999977986,
0.03978123600001027,
0.03993041600000424,
0.040003723000012315
]
},
"throughput": {
"unit": "tokens/s",
"value": 47.84165049024388
},
"energy": {
"unit": "kWh",
"cpu": 1.5583160428888683e-06,
"ram": 6.516165309434823e-08,
"gpu": 0.0,
"total": 1.6234776959832164e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1231923.2995614102
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.26048,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.382433892000023,
"mean": 0.02549559280000153,
"stdev": 0.0006915158498669752,
"p50": 0.025427973000006432,
"p90": 0.025796574399993232,
"p95": 0.02638101779998294,
"p99": 0.027424648359992147,
"values": [
0.02768555599999445,
0.02539945899999907,
0.025672520999989956,
0.02529400200000964,
0.025677199000000428,
0.025758541000016066,
0.02513978400000383,
0.0254758830000128,
0.025427973000006432,
0.02582192999997801,
0.02506472400000348,
0.02575604700001577,
0.024820336999994197,
0.024573394000015014,
0.024866541999983838
]
},
"throughput": {
"unit": "tokens/s",
"value": 39.22246514699356
},
"energy": {
"unit": "kWh",
"cpu": 9.581821730833548e-07,
"ram": 4.006802150795202e-08,
"gpu": 0.0,
"total": 9.98250194591307e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1001752.8725946399
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.37746382400004563,
"mean": 0.025164254933336374,
"stdev": 0.0006814558728387349,
"p50": 0.02509231500002329,
"p90": 0.025466727599996374,
"p95": 0.0260363048999892,
"p99": 0.027060938580004287,
"values": [
0.02731709700000806,
0.025070314000004146,
0.025349465999994436,
0.024967972000013106,
0.025337734000004275,
0.025426069000019424,
0.024806259999991198,
0.025140225000001237,
0.02509231500002329,
0.025487393999981123,
0.02473415500000442,
0.025435728000019253,
0.024488896999997678,
0.02425518800001214,
0.024555009999971844
]
},
"throughput": {
"unit": "tokens/s",
"value": 39.7389075356747
},
"energy": null,
"efficiency": null
}
}
}