IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
52b3867 verified
raw
history blame
9.52 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": "a2f76ceb4d3497d8b655e86e8345771442b69562",
"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": 1106.563072,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 5.082109225000011,
"mean": 5.082109225000011,
"stdev": 0.0,
"p50": 5.082109225000011,
"p90": 5.082109225000011,
"p95": 5.082109225000011,
"p99": 5.082109225000011,
"values": [
5.082109225000011
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.817737776111036e-05,
"ram": 2.8512028426702977e-06,
"gpu": 0,
"total": 7.102858060378067e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 960.94208,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6541126449999979,
"mean": 0.04672233178571413,
"stdev": 0.001858142273444628,
"p50": 0.045965348500004666,
"p90": 0.04851806430001489,
"p95": 0.049861705650016575,
"p99": 0.05166514833002793,
"values": [
0.04667451299997083,
0.04614601600002288,
0.04578468099998645,
0.04630099500002416,
0.047755902999995214,
0.04572649099998216,
0.04864785000000893,
0.05211600900003077,
0.04535132299997713,
0.04545136900003399,
0.045772698000007495,
0.04821523100002878,
0.044862837999971816,
0.045306727999957275
]
},
"throughput": {
"unit": "tokens/s",
"value": 42.80608273518408
},
"energy": {
"unit": "kWh",
"cpu": 1.7392360729468295e-06,
"ram": 7.272669230887096e-08,
"gpu": 0.0,
"total": 1.8119627652557003e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1103775.4408368124
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 961.073152,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39867777900002466,
"mean": 0.028476984214287477,
"stdev": 0.0013310001456017717,
"p50": 0.027941463999979987,
"p90": 0.030627278099984778,
"p95": 0.031232470349979734,
"p99": 0.03152248526998335,
"values": [
0.028172506000032627,
0.02779127299999118,
0.027832850999971015,
0.029089058000010937,
0.02814000500001157,
0.02805007699998896,
0.031037267999977303,
0.03159498899998425,
0.02744939400002977,
0.02772007900000517,
0.02967063500000222,
0.027036732999988544,
0.027638266999986172,
0.027454644000044937
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.11607803955167
},
"energy": {
"unit": "kWh",
"cpu": 1.0245216189050748e-06,
"ram": 4.283976097041204e-08,
"gpu": 0.0,
"total": 1.0673613798754872e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 936889.8096319118
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.39271511899994493,
"mean": 0.028051079928567497,
"stdev": 0.001291999558084156,
"p50": 0.027533757500009415,
"p90": 0.030031401099984124,
"p95": 0.030709561299988763,
"p99": 0.031112581060003777,
"values": [
0.02775873299998466,
0.027389191999986906,
0.02742449800001623,
0.028659726000000774,
0.027735468999992463,
0.0276430170000026,
0.03043829799997866,
0.03121333600000753,
0.027065046000018356,
0.027351530999965235,
0.029081974999996874,
0.026649579999968864,
0.027236877000007098,
0.02706784100001869
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.64925138520568
},
"energy": null,
"efficiency": null
}
}
}