IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3fb0e1e verified
raw
history blame
9.65 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": "51302c583941415719dd441fb25f9836c4254fcb",
"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.9552,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.8020152290000055,
"mean": 4.8020152290000055,
"stdev": 0.0,
"p50": 4.8020152290000055,
"p90": 4.8020152290000055,
"p95": 4.8020152290000055,
"p99": 4.8020152290000055,
"values": [
4.8020152290000055
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.793940342777822e-05,
"ram": 2.841308451332861e-06,
"gpu": 0,
"total": 7.078071187911108e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.547776,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6475142679999806,
"mean": 0.04316761786666537,
"stdev": 0.0021306496084466625,
"p50": 0.04227796199998579,
"p90": 0.04662443039999289,
"p95": 0.047326530899997006,
"p99": 0.0478202733800066,
"values": [
0.04596803699999441,
0.047943709000008994,
0.047062025999991874,
0.041674888999978066,
0.04227796199998579,
0.04196454899999935,
0.041651345000019546,
0.04472498100000166,
0.0424713630000042,
0.04179989099998238,
0.042550820999991856,
0.04207469300001776,
0.04328986799998802,
0.041023765000005596,
0.041036369000011064
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.33102540375358
},
"energy": {
"unit": "kWh",
"cpu": 1.616592617111116e-06,
"ram": 6.759902478145709e-08,
"gpu": 0.0,
"total": 1.6841916418925732e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1187513.3151430108
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.203136,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.39479328899994925,
"mean": 0.026319552599996618,
"stdev": 0.0015013526220651228,
"p50": 0.025826189999975213,
"p90": 0.029026622999987237,
"p95": 0.029621940899991726,
"p99": 0.029749426579989517,
"values": [
0.029553644999992912,
0.029781297999988965,
0.025773861000004672,
0.025833804000001237,
0.02598411400001055,
0.025724660000008726,
0.025826189999975213,
0.025458032999978286,
0.02602880599999935,
0.02590338300001349,
0.025412447999997312,
0.02823608999997873,
0.02536265599999865,
0.024972568999999112,
0.024941732000002048
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.99456682254274
},
"energy": {
"unit": "kWh",
"cpu": 9.434224308054995e-07,
"ram": 3.945211595477764e-08,
"gpu": 0.0,
"total": 9.82874546760277e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1017423.8444735103
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3889997929999822,
"mean": 0.02593331953333215,
"stdev": 0.0014258268142485339,
"p50": 0.025445720999982768,
"p90": 0.028486884600005168,
"p95": 0.02908975480000322,
"p99": 0.029220842959990705,
"values": [
0.029019529000009925,
0.029253614999987576,
0.025393943000011632,
0.025471008000010897,
0.02562840100000585,
0.025382291999989093,
0.025445720999982768,
0.025103592999982993,
0.02565106200000855,
0.02553435600000853,
0.025064730999986296,
0.027687917999998035,
0.025058849000004102,
0.02465692100000183,
0.02464785399999414
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.56043183036009
},
"energy": null,
"efficiency": null
}
}
}