IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9de11c6 verified
raw
history blame
9.77 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": "55e3b6a6531cdb8b0211e8ce38d37aaae85b9b71",
"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.99616,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.812324961000002,
"mean": 4.812324961000002,
"stdev": 0.0,
"p50": 4.812324961000002,
"p90": 4.812324961000002,
"p95": 4.812324961000002,
"p99": 4.812324961000002,
"values": [
4.812324961000002
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.815565104444501e-05,
"ram": 2.8503553139945944e-06,
"gpu": 0,
"total": 7.10060063584396e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.940992,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 16,
"total": 0.6524601799999346,
"mean": 0.04077876124999591,
"stdev": 0.0008251244616897824,
"p50": 0.04078900400000407,
"p90": 0.04146902200000113,
"p95": 0.04187391224999715,
"p99": 0.04278384165001512,
"values": [
0.04120290999998133,
0.040611517000002095,
0.041443269000012606,
0.04070497200001455,
0.04301132400001961,
0.040883305000022574,
0.04070411999998669,
0.04087303599999359,
0.04149477499998966,
0.04103692099999989,
0.04054512400000476,
0.04089046799998641,
0.0395915639999771,
0.03991998699996202,
0.039318455000000085,
0.04022843299998158
]
},
"throughput": {
"unit": "tokens/s",
"value": 49.045138662719935
},
"energy": {
"unit": "kWh",
"cpu": 1.5662406868888437e-06,
"ram": 6.549337366375165e-08,
"gpu": 0.0,
"total": 1.6317340605525953e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1225689.9260426601
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.334208,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 16,
"total": 0.39835974500010707,
"mean": 0.024897484062506692,
"stdev": 0.0005444153567798453,
"p50": 0.024883202500006973,
"p90": 0.025608790500001533,
"p95": 0.02567826775000981,
"p99": 0.025750180749997752,
"values": [
0.02489688300005355,
0.02576815899999474,
0.024949331000016173,
0.025569276999988233,
0.02492018699996379,
0.024869521999960398,
0.02536604800002351,
0.024573720000034882,
0.024823205000018334,
0.024697801999991498,
0.02484097799998608,
0.025648304000014832,
0.023958603000039602,
0.023613208000028862,
0.024760689000004277,
0.02510382899998831
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.16470087858827
},
"energy": {
"unit": "kWh",
"cpu": 9.590299776946003e-07,
"ram": 4.0104756814744636e-08,
"gpu": 0.0,
"total": 9.99134734509345e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1000866.0148233961
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 16,
"total": 0.3927354110000465,
"mean": 0.024545963187502906,
"stdev": 0.0005163492505966173,
"p50": 0.024540703500008476,
"p90": 0.025196722000004,
"p95": 0.025335595750036077,
"p99": 0.02538511675003008,
"values": [
0.02454706100002113,
0.02539749700002858,
0.024636967999981607,
0.025078481999969426,
0.024580352999976185,
0.02453434599999582,
0.024999274000037985,
0.024224498000023686,
0.024463954999987436,
0.02435167599998067,
0.024530077999997957,
0.025314962000038577,
0.02366814100003012,
0.023315773000035733,
0.024449417999960588,
0.024642928999980995
]
},
"throughput": {
"unit": "tokens/s",
"value": 40.739896510116594
},
"energy": null,
"efficiency": null
}
}
}