IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6bdaae5 verified
raw
history blame
9.64 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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "12035129458b49eb93fa8919571e0352f4f4cb1e",
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"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.411648,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.82811973500003,
"mean": 4.82811973500003,
"stdev": 0.0,
"p50": 4.82811973500003,
"p90": 4.82811973500003,
"p95": 4.82811973500003,
"p99": 4.82811973500003,
"values": [
4.82811973500003
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.849867850000035e-05,
"ram": 2.863070808590611e-06,
"gpu": 0,
"total": 7.136174930859096e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.66368,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6524574820000453,
"mean": 0.043497165466669686,
"stdev": 0.0007601177212210676,
"p50": 0.04370410399997127,
"p90": 0.04449147760001324,
"p95": 0.04458540460001359,
"p99": 0.04471870812000134,
"values": [
0.0438589830000069,
0.04445770600000287,
0.04381840700000339,
0.04451399200002015,
0.04370410399997127,
0.043935825999994904,
0.04395567300002767,
0.043157739000037054,
0.044752033999998275,
0.0434085950000167,
0.04237378099998068,
0.04277460600002314,
0.042658099999982824,
0.04242672999998831,
0.042661205999991125
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.98000762906098
},
"energy": {
"unit": "kWh",
"cpu": 1.6774146537037562e-06,
"ram": 7.01021695401417e-08,
"gpu": 0.0,
"total": 1.7475168232438978e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1144481.1136567031
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.794752,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4013189429999784,
"mean": 0.026754596199998558,
"stdev": 0.0005661821501752777,
"p50": 0.026675707999970655,
"p90": 0.02744623279999132,
"p95": 0.027648370999992268,
"p99": 0.02772353980000048,
"values": [
0.027742332000002534,
0.027203428999996504,
0.02716073999999935,
0.026500501999976223,
0.027105919999996786,
0.026633419000006597,
0.026732112999980018,
0.027608101999987866,
0.026939990000016678,
0.026675707999970655,
0.026649339000016425,
0.02543400899998005,
0.026355092000017066,
0.026559492000046703,
0.026018755999984933
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.37675547501083
},
"energy": {
"unit": "kWh",
"cpu": 1.0058456696295233e-06,
"ram": 4.203647038784293e-08,
"gpu": 0.0,
"total": 1.0478821400173663e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 954305.7962448213
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.39588075900002195,
"mean": 0.026392050600001462,
"stdev": 0.0005413578875974941,
"p50": 0.026329223999994156,
"p90": 0.02704548359997716,
"p95": 0.027243609099980404,
"p99": 0.027312028219969305,
"values": [
0.027329132999966532,
0.026768730000014784,
0.026803274999963378,
0.026151171999970302,
0.02675965600002428,
0.02627747700000782,
0.026366052000014406,
0.02720695599998635,
0.026584629000012683,
0.026329223999994156,
0.026231412000015553,
0.025116357999991124,
0.02603189100000236,
0.02622953900004177,
0.02569525500001646
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.890197133827286
},
"energy": null,
"efficiency": null
}
}
}