IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
df3e5fa verified
raw
history blame
9.65 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.338112,
"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": "b437841d8ac0f8671c66ca6a8aa4cc123563284f",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.2",
"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.224896,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.757583857999975,
"mean": 4.757583857999975,
"stdev": 0.0,
"p50": 4.757583857999975,
"p90": 4.757583857999975,
"p95": 4.757583857999975,
"p99": 4.757583857999975,
"values": [
4.757583857999975
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.773509221111091e-05,
"ram": 2.8311402128379698e-06,
"gpu": 0,
"total": 7.056623242394888e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 964.214784,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6538401179999482,
"mean": 0.04358934119999655,
"stdev": 0.00262161788721285,
"p50": 0.04507923799999958,
"p90": 0.04606214039999941,
"p95": 0.04630565539999907,
"p99": 0.04633789907999699,
"values": [
0.0453386920000014,
0.04628838200000018,
0.045544434999982286,
0.04572277799999824,
0.045279911999983824,
0.04534914200002049,
0.04634595999999647,
0.04506161499998029,
0.04507923799999958,
0.044065999999986616,
0.03998227799999654,
0.040062838000011425,
0.04010196100000485,
0.03975176800000213,
0.039865118999983906
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.882776498584896
},
"energy": {
"unit": "kWh",
"cpu": 1.5711135128888967e-06,
"ram": 6.565949491069262e-08,
"gpu": 0.0,
"total": 1.6367730077995891e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1221916.5336119016
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 964.608,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.40592432799996914,
"mean": 0.02706162186666461,
"stdev": 0.0013680433340447797,
"p50": 0.027795021000002862,
"p90": 0.02819457119999811,
"p95": 0.02823185780000017,
"p99": 0.028272763560006523,
"values": [
0.028123993999997765,
0.027845134000017424,
0.028282990000008112,
0.028209943999996767,
0.027795021000002862,
0.0281428189999815,
0.02817151200000012,
0.02814997199999425,
0.02774503800000616,
0.026310440000003155,
0.024827829999992446,
0.025220560999997588,
0.027414009999972677,
0.024924508999987438,
0.02476055400001087
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.95270020869786
},
"energy": {
"unit": "kWh",
"cpu": 9.526513666249369e-07,
"ram": 3.981441012785501e-08,
"gpu": 0.0,
"total": 9.924657767527927e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1007591.4186903837
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.39967528000002517,
"mean": 0.026645018666668345,
"stdev": 0.0012954846195563229,
"p50": 0.027320156000001816,
"p90": 0.027690716000012116,
"p95": 0.027737239600023146,
"p99": 0.02780388632002257,
"values": [
0.027633238999982268,
0.027379616000018814,
0.027820548000022427,
0.027701536000023452,
0.027320156000001816,
0.027668003999991697,
0.02765154300001882,
0.027674485999995113,
0.027267848999997568,
0.02598114599999235,
0.024522179999991067,
0.024896206999983406,
0.027104301999997915,
0.024598983000004182,
0.024455485000004273
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.53046723329763
},
"energy": null,
"efficiency": null
}
}
}