IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9d47d2e verified
raw
history blame
9.53 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": "a05e8061e1f1403da4692a0464652cfdbef09161",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"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": 1110.212608,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.82042266800002,
"mean": 4.82042266800002,
"stdev": 0.0,
"p50": 4.82042266800002,
"p90": 4.82042266800002,
"p95": 4.82042266800002,
"p99": 4.82042266800002,
"values": [
4.82042266800002
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.77513626611113e-05,
"ram": 2.8318229133917952e-06,
"gpu": 0,
"total": 7.05831855745031e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 963.678208,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6232042680000518,
"mean": 0.04451459057143227,
"stdev": 0.0020593992183096195,
"p50": 0.04351459450001016,
"p90": 0.04776838980000946,
"p95": 0.04818934675000577,
"p99": 0.04843027574999013,
"values": [
0.04716453899999351,
0.04849050799998622,
0.04332306099999528,
0.044114993000022196,
0.043169263000010005,
0.04322850500000186,
0.043223815000004606,
0.04308768100000293,
0.043706128000025046,
0.04395623599998544,
0.048027183000016294,
0.04687868299998854,
0.04218625500001849,
0.04264741800000138
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.929088964451175
},
"energy": {
"unit": "kWh",
"cpu": 1.8392862497474633e-06,
"ram": 7.686709252222757e-08,
"gpu": 0.0,
"total": 1.916153342269691e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1043757.8015708243
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 964.46464,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.38375185299994996,
"mean": 0.027410846642853568,
"stdev": 0.0012902155108051314,
"p50": 0.027033625499996106,
"p90": 0.029186075899988853,
"p95": 0.03011720089998846,
"p99": 0.030677019380000843,
"values": [
0.03081697400000394,
0.027155824999994138,
0.027801884000012933,
0.026981648999992558,
0.026641603000001624,
0.02674257099999977,
0.026738413999993327,
0.02680102099998294,
0.027085601999999653,
0.027892653000009204,
0.029740399999980127,
0.027159681000000546,
0.025816057999975328,
0.026377518000003874
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.481908531662064
},
"energy": {
"unit": "kWh",
"cpu": 9.929703002525076e-07,
"ram": 4.149843942257956e-08,
"gpu": 0.0,
"total": 1.0344687396750872e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 966679.7667700299
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3785721129999047,
"mean": 0.027040865214278904,
"stdev": 0.0012365455211701835,
"p50": 0.026687482999989243,
"p90": 0.028707110899989632,
"p95": 0.029601981649993548,
"p99": 0.030177049129998464,
"values": [
0.030320815999999695,
0.026806842000013376,
0.027455745999986902,
0.02663853699999663,
0.026294041999989304,
0.026398016999991114,
0.026395873999973674,
0.026417793999996775,
0.026736428999981854,
0.027522229999988213,
0.029214916999990237,
0.026830686000010928,
0.025487462999990385,
0.02605271999999559
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.981065216506124
},
"energy": null,
"efficiency": null
}
}
}