IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
03a745e verified
raw
history blame
9.52 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": "0bd7e1264053df25f4ad4ebdeb2790e945a18460",
"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": 1120.907264,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.782739115999988,
"mean": 4.782739115999988,
"stdev": 0.0,
"p50": 4.782739115999988,
"p90": 4.782739115999988,
"p95": 4.782739115999988,
"p99": 4.782739115999988,
"values": [
4.782739115999988
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.78892278166684e-05,
"ram": 2.8375824401579073e-06,
"gpu": 0,
"total": 7.072681025682631e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.385152,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6465721070000541,
"mean": 0.04618372192857529,
"stdev": 0.0015293022451373824,
"p50": 0.04667357849999121,
"p90": 0.047230577899995296,
"p95": 0.04743670289999784,
"p99": 0.04760781098000791,
"values": [
0.04509228000000576,
0.04677770799997916,
0.04701834700000518,
0.04561765099998638,
0.04765058800001043,
0.04650047000001223,
0.04598808299999746,
0.046807212000032905,
0.04732153399999106,
0.04656944900000326,
0.046276060000025154,
0.04695505900002672,
0.04681913499996426,
0.04117853100001412
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.30530144567102
},
"energy": {
"unit": "kWh",
"cpu": 1.5949666755555353e-06,
"ram": 6.665628811678165e-08,
"gpu": 0.0,
"total": 1.661622963672317e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1203642.489135949
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 975.171584,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.40196467399999847,
"mean": 0.02871176242857132,
"stdev": 0.0011201846448847682,
"p50": 0.029102794500005302,
"p90": 0.029391434200010735,
"p95": 0.029648422600004665,
"p99": 0.029995322919998558,
"values": [
0.03008204799999703,
0.029414932000008776,
0.02854409700000815,
0.028739380999979858,
0.02933660600001531,
0.029283087000010255,
0.028325417999951696,
0.029274921999956405,
0.029163362000019788,
0.028228888000001007,
0.02922002899998688,
0.029042226999990817,
0.028190516000051957,
0.02511916100002054
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.828931260760626
},
"energy": {
"unit": "kWh",
"cpu": 9.627006744445053e-07,
"ram": 4.0234325284323645e-08,
"gpu": 0.0,
"total": 1.0029349997288288e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 997073.5892858237
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3953495719999296,
"mean": 0.028239255142852113,
"stdev": 0.0010779164768213174,
"p50": 0.028621525499971767,
"p90": 0.02890632860001574,
"p95": 0.02916293720001306,
"p99": 0.02950882663999721,
"values": [
0.029595298999993247,
0.02893012700002373,
0.028051145999995697,
0.02823951800002078,
0.028850798999997096,
0.028800425999975232,
0.027809534999960306,
0.028779557000007117,
0.028683114999978443,
0.02776991100000714,
0.028731566999965708,
0.02855993599996509,
0.027734655000017483,
0.024813981000022522
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.41169889012171
},
"energy": null,
"efficiency": null
}
}
}