IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
af626b5 verified
raw
history blame
9.67 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": {},
"hub_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.338112,
"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": "e291e9b18cfb323457af60f15f2bb33803718668",
"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": 1100.304384,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.784537400999994,
"mean": 4.784537400999994,
"stdev": 0.0,
"p50": 4.784537400999994,
"p90": 4.784537400999994,
"p95": 4.784537400999994,
"p99": 4.784537400999994,
"values": [
4.784537400999994
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.693736314773561e-05,
"ram": 2.7978084500688283e-06,
"gpu": 0,
"total": 6.973517159780444e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 953.6512,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.656243229000097,
"mean": 0.04374954860000647,
"stdev": 0.0025362129480982565,
"p50": 0.04492262899998423,
"p90": 0.04624755280000272,
"p95": 0.04641132950001179,
"p99": 0.04650895150003748,
"values": [
0.045489153000005444,
0.04608033400000977,
0.046359031999998024,
0.04429219700000431,
0.04653335700004391,
0.04582230300002266,
0.04500222600000825,
0.04492262899998423,
0.045415055000034954,
0.04484773999996605,
0.04163934899997912,
0.04003310900003498,
0.039949914999965586,
0.03977409800000942,
0.04008273200003032
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.71475738608431
},
"energy": {
"unit": "kWh",
"cpu": 1.5652943187289769e-06,
"ram": 6.541671460632113e-08,
"gpu": 0.0,
"total": 1.6307110333352982e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1226458.8631067234
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 954.175488,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.40230517999998483,
"mean": 0.026820345333332322,
"stdev": 0.0020225671425659945,
"p50": 0.0280357430000322,
"p90": 0.02849404940002387,
"p95": 0.028596213800028636,
"p99": 0.028691176360007377,
"values": [
0.02871491700000206,
0.02816016399998489,
0.02822515600001907,
0.028417111999999634,
0.02832290699996065,
0.02813829399997303,
0.027916531000016676,
0.0280357430000322,
0.02794563599996991,
0.028545341000040025,
0.02397132999999485,
0.02377297099997122,
0.024218388999997842,
0.024014410000006592,
0.023906279000016184
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.28512767347556
},
"energy": {
"unit": "kWh",
"cpu": 9.297068549527061e-07,
"ram": 3.88559080964446e-08,
"gpu": 0.0,
"total": 9.685627630491506e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1032457.6146742223
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.39576201799991395,
"mean": 0.026384134533327597,
"stdev": 0.0019399339816412783,
"p50": 0.027521897000042372,
"p90": 0.028002591400002073,
"p95": 0.02810830439999563,
"p99": 0.028191743279987806,
"values": [
0.028212602999985847,
0.027651427999956013,
0.027733370000021296,
0.02791107100000545,
0.0278014769999686,
0.027684198999963883,
0.027455093000014585,
0.027521897000042372,
0.0274413779999918,
0.028063604999999825,
0.023627299999986917,
0.023475307000012435,
0.02387945899999977,
0.023702579999962836,
0.02360125100000232
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.901565379634945
},
"energy": null,
"efficiency": null
}
}
}